Don't prune non-borgmatic archives #44

Closed
opened 2018-01-05 05:34:44 +00:00 by import_bot · 1 comment
Collaborator

Perhaps borgmatic should identify its own backups within your repo. For example, default archive_name_format would be borgmatic-{hostname}-{now:...} and the corresponding default prune prefix would be borgmatic-{hostname}-. I realize this isn't incredibly robust but it would reduce the risk of collisions and pruning things you didn't want to prune.

Additional idea: Add a dry-run flag to the retention section of the yaml file, so the user can confirm with -v2 that their backups are going to be pruned properly. If I were writing borgmatic from scratch I'd default to dry-run=True, but in this case False would be less of a behavior change.

Ideas from Andrew.


Imported from Taiga issue 43 (to do). Created on 2017-10-30T03:24:41+0000 by Dan Helfman.

Perhaps borgmatic should identify its own backups within your repo. For example, default archive_name_format would be borgmatic-{hostname}-{now:...} and the corresponding default prune prefix would be borgmatic-{hostname}-. I realize this isn't incredibly robust but it would reduce the risk of collisions and pruning things you didn't want to prune. Additional idea: Add a dry-run flag to the retention section of the yaml file, so the user can confirm with -v2 that their backups are going to be pruned properly. If I were writing borgmatic from scratch I'd default to dry-run=True, but in this case False would be less of a behavior change. Ideas from Andrew. --- Imported from Taiga issue 43 (to do). Created on 2017-10-30T03:24:41+0000 by Dan Helfman.
Owner

Closing due to inactivity, but I'd be happy to reopen if there's still user interest.

Closing due to inactivity, but I'd be happy to reopen if there's still user interest.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#44
No description provided.