mirror of https://github.com/digint/btrbk
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
parent
ac0f7e3b91
commit
443cb1891b
9
btrbk
9
btrbk
|
@ -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"),
|
||||
clone_src => \$clone_src,
|
||||
target_parent_node => \$target_parent_node);
|
||||
strict_related => ((config_key($droot, "incremental") // "") eq "strict") && !$action_archive,
|
||||
clone_src => \$clone_src,
|
||||
target_parent_node => \$target_parent_node,
|
||||
);
|
||||
if(macro_send_receive(source => $snapshot,
|
||||
target => $droot,
|
||||
parent => $parent, # this is <undef> if no suitable parent found
|
||||
|
|
Loading…
Reference in New Issue