Backup Retention Policy Disk Full
Backup tools feel safe until every save creates another timestamped copy, every job leaves a directory behind, and the host silently runs out of disk. The fix is not just "delete old backups"; it is a retention policy that runs before the next write can fail.
Ask free AI judgment
Find what you can delete.
Leave your email now. The scan summary can follow after the first reply; we send the free SafeDisk AI deletion trial step only if deletion risk is still unclear.
Runbook: Retain Before The Disk Is Full
- Preserve one recent known-good backup and one failed backup sample before deleting bulk history.
- Measure the backup root by source path, not only total directory size. One large file saved 100 times can dominate everything.
- Add a prune-before-write step. If pruning only runs after a successful backup, the next write can fail before cleanup happens.
- Set both count and age limits: for example, keep the newest 5 per source and delete anything older than 30 days.
- Cap full-log reads and per-job logs. A backup job should not create a second unbounded log-growth problem.
- Fail with a useful message when reserve space is below threshold: backup root, free bytes, largest retained bucket, and recommended cleanup command.
Copy-ready issue reply
Use this when backups accumulate until the host is full.
This separates active backup safety from old-history retention, and avoids deleting the only good restore point.
I would make retention run before new writes, not only after successful backups.
Read-only evidence first:
BACKUP_ROOT=<backup-root>
df -h "$BACKUP_ROOT" .
du -h -d 2 "$BACKUP_ROOT" 2>/dev/null | sort -h | tail -40
find "$BACKUP_ROOT" -type f -size +100M -printf "%s %TY-%Tm-%Td %p\n" 2>/dev/null | sort -n | tail -40
Then split the policy:
- keep newest N per source file or job
- keep max age for old timestamped copies
- reserve free disk before starting a backup
- cap per-job logs and full-log reads
Do Not Delete First
- The newest known-good backup for each source or job.
- Metadata that proves which source generated the largest history bucket.
- Failed partial backups before recording size, timestamp, and error message.
- Only restore point for a database, project, or customer file before a separate backup exists.
Free AI deletion trial
Need a delete / confirm / protect answer?
Send the issue link, log excerpt, or storage summary first. We reply with the next safe move and offer the free SafeDisk AI deletion trial only if the incident still needs review.