From a32806da325b68fae782ae47f16786e1374208b4 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Mon, 25 Aug 2014 23:29:00 +0000 Subject: [PATCH] create STORAGE_ROOT/backup/duplicity if it doesn't exist fixes #158 --- management/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index 567c7efc..816de358 100755 --- a/management/backup.py +++ b/management/backup.py @@ -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.