diff --git a/management/backup.py b/management/backup.py index d6ffd9f7..d161719d 100755 --- a/management/backup.py +++ b/management/backup.py @@ -38,6 +38,7 @@ def backup_status(env): backups = { } basedir = os.path.join(env['STORAGE_ROOT'], 'backup/duplicity/') encdir = os.path.join(env['STORAGE_ROOT'], 'backup/encrypted/') + os.makedirs(basedir, exist_ok=True) # os.listdir fails if directory does not exist for fn in os.listdir(basedir): m = re.match(r"duplicity-(full|full-signatures|(inc|new-signatures)\.(?P\d+T\d+Z)\.to)\.(?P\d+T\d+Z)\.", fn) if not m: raise ValueError(fn) diff --git a/management/templates/system-backup.html b/management/templates/system-backup.html index 2b1ad465..aab39857 100644 --- a/management/templates/system-backup.html +++ b/management/templates/system-backup.html @@ -28,7 +28,7 @@ -

The size column in the table indicates the size of the encrpyted backup, but the total size on disk shown above includes storage for unencrpyted intermediate files.

+

The size column in the table indicates the size of the encrpyted backup, but the total size on disk shown above includes storage for unencrpyted intermediate files.