btrbk: action_archive: no strict_related parent search

strict_related parent search does not make much sense on archive: on
targets, parent_uuid chain is broken after first prune.

Ref: 318126b831
pull/542/head
Axel Burri 2022-06-19 00:42:30 +02:00
parent ac0f7e3b91
commit 443cb1891b
1 changed files with 6 additions and 3 deletions

7
btrbk
View File

@ -6842,11 +6842,14 @@ MAIN:
next;
}
# Note: strict_related does not make much sense on archive:
# on targets, parent_uuid chain is broken after first prune.
my ($clone_src, $target_parent_node);
my $parent = get_best_parent($snapshot, $snaproot, $droot,
strict_related => ((config_key($droot, "incremental") // "") eq "strict"),
strict_related => ((config_key($droot, "incremental") // "") eq "strict") && !$action_archive,
clone_src => \$clone_src,
target_parent_node => \$target_parent_node);
target_parent_node => \$target_parent_node,
);
if(macro_send_receive(source => $snapshot,
target => $droot,
parent => $parent, # this is <undef> if no suitable parent found