borg compact /backup/repo

Category: Backup & Restore

borg compact /backup/repo

Free space after pruning archives

Removes data segments no archive references anymore, reclaiming the disk space that borg prune or borg delete freed up. Run it after every prune for a tidy repository. It is safe, because data still used by any archive is never touched.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.