KenKundert / emborg

Interactive command line interface to Borg Backup
GNU General Public License v3.0
94 stars 8 forks source link

Support for 'borg compact' #59

Closed adhawkins closed 2 years ago

adhawkins commented 2 years ago

I understand that the next release of borg (1.2) separates the 'prune' and 'compact' operations into two commands (running 'prune' just marks which archives are to be deleted, but doesn't actually delete them until 'compact' is run).

Would be worth looking in to how this can be tied in with emborg I think. Presumably a new command that'd detect whether borg 1.2 is being used? Not sure whether it's the server's borg version or the client's that matters. They may well both have to match up.

https://github.com/borgbackup/borg/blob/1.2.0rc1/docs/changes.rst#version-120a2-and-earlier-2019-02-24

KenKundert commented 2 years ago

Thanks for the heads up and the link. I'll start preparing for the change.

KenKundert commented 2 years ago

I have added support for the compact command, and have added the compact_after_delete setting. If compact_after_delete is True, then the compact command is run after the delete and prune commands. The version on github currently supports these enhancements.

KenKundert commented 2 years ago

This feature has been released in v1.31.