Repository navigation
Cleaning Up
cuban8IO edited this page Nov 9, 2026
·
1 revision
Every backup adds an archive. Cleaning up deletes the archives you no longer need (borg prune) and then frees the
space they took (borg compact).
In the backup job editor, switch on Clean up after each backup and choose what to keep:
| Rule | Keeps |
|---|---|
| Last | the newest n archives |
| Within days | everything from the last n days |
| Hourly / daily / weekly / monthly / yearly | the newest archive of each of the last n hours, days, weeks, months, years |
When you switch it on, BorgStudio suggests 7 daily, 4 weekly, 6 monthly. New jobs keep everything until you switch cleaning up on.
Only the job's own archives from this computer are touched (<job>-<computer>-*): other jobs, other computers and
archives with a similar name stay.
- After each successful backup of the job (also when the backup had warnings).
- Clean up… in the Backup jobs tab runs it by hand. It first shows which archives would be deleted and which stay – and by which rule – and asks before deleting anything.
borg compact runs afterwards when something was deleted, with progress and Cancel.
Free space in the repository's Overview runs only borg compact. Useful after deleting archives with other
tools; it needs no passphrase.