digint / digint/btrbk

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

Open
#489 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Perl
Stars
2.1k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

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](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).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the code path that reports a stray subvolume during backup or snapshot creation, then inspect how btrbk clean handles the cases discussed in issue #282. Define where the force option is accepted and ensure it deletes the existing destination subvolume before creation; done means the override works without force retaining the current safety behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
cli, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.