From 85c2d142870e5b45696b34a60aad264a1e6472ca Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Fri, 27 Aug 2021 16:44:05 +0200 Subject: [PATCH] btrbk: change incremental_prefs defaults New defaults gives the btrbk_direct_leaf snapshots higher preference than the global ones resolved by parent-uuid (which are best-guess). This way the parent has a higher chance of being a backup created by btrbk, which results in "btrfs receive" to start work on a snapshot of this (and preferably not on the "best-guess" ones). --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index e8fe5f7..372d254 100755 --- a/btrbk +++ b/btrbk @@ -74,7 +74,7 @@ my %day_of_week_map = ( sunday => 0, monday => 1, tuesday => 2, wednesday => 3, my @syslog_facilities = qw( user mail daemon auth lpr news cron authpriv local0 local1 local2 local3 local4 local5 local6 local7 ); my @incremental_prefs_avail = qw(sro srn sao san aro arn); -my @incremental_prefs_default = qw(sro:1 aro:1 arn:1 sao:1 san:1); +my @incremental_prefs_default = qw(sro:1 srn:1 sao:1 san:1 aro:1 arn:1); my $incremental_prefs_match = "(defaults|(" . join("|", @incremental_prefs_avail) . ")(:[0-9]+)?)"; my %config_options = (