create STORAGE_ROOT/backup/duplicity if it doesn't exist

fixes #158
This commit is contained in:
Joshua Tauberer 2014-08-25 23:29:00 +00:00
parent 18f0406541
commit a32806da32
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ exclusive_process("backup")
# Ensure the backup directory exists.
backup_dir = os.path.join(env["STORAGE_ROOT"], 'backup')
backup_duplicity_dir = os.path.join(backup_dir, 'duplicity')
os.makedirs(backup_dir, exist_ok=True)
os.makedirs(backup_duplicity_dir, exist_ok=True)
# On the first run, always do a full backup. Incremental
# will fail.