mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-23 03:02:32 +01:00
Merge branch 'master' into 'master'
Error out if cache directory does not exist when creating a fresh dup backup See merge request riseuplabs/backupninja!15
This commit is contained in:
commit
cc289f4c87
@ -225,6 +225,7 @@ fi
|
||||
# duplicity now enables the archive_dir by default, let's put it into /var/cache/backupninja/duplicity
|
||||
# unless the user has specified it.
|
||||
if echo "${options}" | grep -qv -- "--archive-dir" ; then
|
||||
[ -d "/var/cache/backupninja" ] || fatal "/var/cache/backupninja does not exist - create it"
|
||||
execstr_options="${execstr_options} --archive-dir /var/cache/backupninja/duplicity"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user