Use BorgMate

Retention and maintenance

Retention decides which archives survive over time. Prune removes archives outside the policy; compact reclaims the storage they no longer reference.

Prune and archive deletion are destructive.

Confirm that recent backups and a test restore work before removing archives. A pruned archive cannot be recovered through BorgMate.

Build a retention policy

Enable only the rules you need. Borg keeps an archive when it is selected by any enabled rule; overlapping rules do not create extra copies.

7dailyrecent working days
4weeklyroughly one month
12monthlyone year of history
3yearlylong-term milestones

This is a reasonable example, not a universal policy. Increase the counts when files change frequently or when long discovery delays matter. Storage growth depends on changed data because Borg deduplicates content.

Available rules

RuleWhat it preserves
Keep lastThe newest N archives regardless of calendar interval.
HourlyOne archive for each of the newest N hourly intervals.
DailyOne archive for each of the newest N daily intervals.
WeeklyOne archive for each of the newest N weekly intervals.
MonthlyOne archive for each of the newest N monthly intervals.
YearlyOne archive for each of the newest N yearly intervals.

At least one rule must be enabled before Prune is available. Compact repository after prune is enabled by default and should normally remain enabled.

Recommended maintenance workflow

  1. Complete a fresh backup.
  2. Restore and open a representative test file.
  3. Review the retention rules and archive dates.
  4. Run Prune.
  5. Let the configured compact step finish.
  6. Run Check periodically and after storage or transport problems.

Maintenance actions

ActionEffectRepository data
Delete archiveRemoves one selected archive.Destructive
PruneRemoves archives not retained by the configured rules.Destructive
CompactReclaims unused repository segments after archive removal.Changes storage layout
CheckVerifies repository integrity and reports problems.Verification
Change PassphraseChanges the passphrase protecting the Borg encryption key and updates the OS keychain.Credentials change
DuplicateCopies the BorgMate configuration under a new name.No change
RemoveRemoves the entry from BorgMate.No change

Change a passphrase

  1. Select the repository and choose More → Change Passphrase.
  2. Enter the new passphrase twice.
  3. Keep saving to the system keychain enabled unless you prefer a prompt for every operation.
  4. After completion, update the separate disaster-recovery copy of the passphrase.

The action is unavailable for unencrypted repositories. Changing the passphrase does not turn an unencrypted repository into an encrypted one.