Skip to content
Snippets Groups Projects
Commit cc289f4c authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

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
parents 1b1a857c 4725d783
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment