btrbk icon indicating copy to clipboard operation
btrbk copied to clipboard

Feature request - "force" option to override existing snapshots or backups in destination

Open gpacgpac opened this issue 3 years ago • 1 comments
trafficstars

In case an existing subvolume with similar name exists in backup or snapshot destination, btrbk fails claiming for stray subvolume.

As reported in https://github.com/digint/btrbk/issues/282 there are some use cases where btrbk clean will not clean those existing subvolumes.

Proposal is to add a "force" option that could override the existing stray subvolume (by issuing a btrfs subvolume delete before creating it).

gpacgpac avatar Aug 11 '22 07:08 gpacgpac

something like this might come in the future, but it might get hard to know what to do exactly: do you just want to "btrfs delete" it? what if it's a regular directory? The fact that if "btrbk clean" cannot remove it, manual action is probably the recommended next steps anyways. btrbk should give some meaningful errors in such cases, recent versions of btrbk have some improvements there as well.

digint avatar Sep 02 '22 10:09 digint