From 5625b1d252a48a2395c7a2ddbee05d041e179d18 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Tue, 23 Jul 2024 21:05:52 +0200 Subject: [PATCH] Exclude the owncloud-backup folder from the nightly backup --- management/backup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/backup.py b/management/backup.py index aae6c00b..2c56a397 100755 --- a/management/backup.py +++ b/management/backup.py @@ -320,6 +320,7 @@ def perform_backup(full_backup): "--verbosity", "warning", "--no-print-statistics", "--archive-dir", backup_cache_dir, "--exclude", backup_root, + "--exclude", os.path.join(env["STORAGE_ROOT"], "owncloud-backup"), "--volsize", "250", "--gpg-options", "'--cipher-algo=AES256'", "--allow-source-mismatch", @@ -399,6 +400,7 @@ def run_duplicity_verification(): "--compare-data", "--archive-dir", backup_cache_dir, "--exclude", backup_root, + "--exclude", os.path.join(env["STORAGE_ROOT"], "owncloud-backup"), *get_duplicity_additional_args(env), get_duplicity_target_url(config), env["STORAGE_ROOT"],