Commit a32806da authored by Joshua Tauberer's avatar Joshua Tauberer

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

fixes #158
parent 18f04065
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment