diff options
author | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-29 22:32:38 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-10-03 23:44:04 +0300 |
commit | fa189986e55aef113fcb52b8d38436a72e5b2775 (patch) | |
tree | f9981b29771ef4f1eae4cf57cd75d7ccc3c17b1d | |
parent | 574bbcbf782e5fd55f254e335cf3d84bd3fce144 (diff) |
nc-backup: Exclude old (restored) data directories
-rw-r--r-- | bin/ncp/BACKUPS/nc-backup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ncp/BACKUPS/nc-backup.sh b/bin/ncp/BACKUPS/nc-backup.sh index 240ab409..b25c3318 100644 --- a/bin/ncp/BACKUPS/nc-backup.sh +++ b/bin/ncp/BACKUPS/nc-backup.sh @@ -114,6 +114,7 @@ tar $compress_arg -cf "$destfile" \ --exclude "nextcloud/data/*/files_versions/*" \ --exclude "nextcloud/data/ncp-update-backups" \ --exclude "nextcloud/data/__groupfolders" \ + --exclude "nextcloud/.data_*" \ -C $basedir nextcloud/ \ || { echo "error generating backup" |