Fix new option "timestamp_format long"

pull/57/head
Nicolas Porcel 2015-12-14 21:22:57 +01:00
parent a0670dcb5c
commit 443c000edf
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -3064,7 +3064,7 @@ MAIN:
# find unique snapshot name
my $timestamp = ((config_key($config_subvol, "timestamp_format") eq "short") ?
sprintf("%04d%02d%02d", @today) :
sprintf("%04d%02d%02dT%02d%02d", @today_and_now));
sprintf("%04d%02d%02dT%02d%02d", @today_and_now[0..4]));
my @unconfirmed_target_name;
my @lookup = keys %{vinfo_subvol_list($sroot)};
@lookup = grep s/^\Q$snapdir\E// , @lookup;