diff options
Diffstat (limited to 'lib/MDV/Snapshot')
-rw-r--r-- | lib/MDV/Snapshot/Common.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MDV/Snapshot/Common.pm b/lib/MDV/Snapshot/Common.pm index f041f66..f26c664 100644 --- a/lib/MDV/Snapshot/Common.pm +++ b/lib/MDV/Snapshot/Common.pm @@ -35,6 +35,7 @@ sub init { $config_file = "$::prefix/etc/rsnapshot.conf"; $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix/$1" : ''; + $backup_directory =~ s!/+!/!g; # normalize for glob(): chomp($backup_directory); |