mirror of https://github.com/digint/btrbk
btrbk: it is now possible to back up a subvolume that is already mounted at /.
It works with the configuration snippet below:
```
volume /
subvolume .
snapshot_create ondemand
snapshot_name root
target send-receive /mnt/ext-backup/snapshots
```
pull/240/head
parent
2f95baf6f3
commit
3fe746ed64
5
btrbk
5
btrbk
|
|
@ -5303,7 +5303,10 @@ MAIN:
|
||||||
WARN "Skipping subvolume \"$svol->{PRINT}\": $abrt";
|
WARN "Skipping subvolume \"$svol->{PRINT}\": $abrt";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if($svol->{node}{uuid} && _is_child_of($sroot->{node}, $svol->{node}{uuid})) {
|
if($svol->{node}{uuid} &&
|
||||||
|
(_is_child_of($sroot->{node}, $svol->{node}{uuid}) ||
|
||||||
|
($svol->{node}{uuid} eq $sroot->{node}{uuid})))
|
||||||
|
{
|
||||||
DEBUG "Found \"$svol->{PRINT}\" (id=$svol->{node}{id}) in btrfs subtree of: $sroot->{PRINT}";
|
DEBUG "Found \"$svol->{PRINT}\" (id=$svol->{node}{id}) in btrfs subtree of: $sroot->{PRINT}";
|
||||||
} else {
|
} else {
|
||||||
ABORTED($svol, "Not a child subvolume of: $sroot->{PRINT}");
|
ABORTED($svol, "Not a child subvolume of: $sroot->{PRINT}");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue