From e76ad88d65a99bc26f77fb21a1f94bf40771fbe5 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sun, 25 Jan 2015 17:59:55 +0100 Subject: [PATCH] btrbk: print different prefix for incremental/non-incremental backups --- btrbk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/btrbk b/btrbk index b90e9f4..3e5151d 100755 --- a/btrbk +++ b/btrbk @@ -1354,6 +1354,7 @@ MAIN: } elsif($incremental ne "strict") { INFO "No common parent subvolume present, creating full backup"; + $config_target->{subvol_non_incremental} = 1; $success = btrfs_send_receive($snapshot, $droot, undef, $receive_log, $config_target); } else { @@ -1362,6 +1363,7 @@ MAIN: } else { INFO "Creating full backup (option \"incremental\" is not set)"; + $config_target->{subvol_non_incremental} = 1; $success = btrfs_send_receive($snapshot, $droot, undef, $receive_log, $config_target); } } @@ -1511,7 +1513,8 @@ MAIN: # print(($_->{preserve} ? "===" : "---") . " $_->{name}\n"); # } # } - print "+++ $config_target->{subvol_created}\n" if($config_target->{subvol_created}); + my $create_mode = ($config_target->{subvol_non_incremental} ? "***" : ">>>"); + print "$create_mode $config_target->{subvol_created}\n" if($config_target->{subvol_created}); if($config_target->{subvol_deleted}) { print "--- $_\n" foreach(sort { $b cmp $a} @{$config_target->{subvol_deleted}}); }