Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-09-29 22:32:38 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-10-03 23:44:04 +0300
commitfa189986e55aef113fcb52b8d38436a72e5b2775 (patch)
treef9981b29771ef4f1eae4cf57cd75d7ccc3c17b1d
parent574bbcbf782e5fd55f254e335cf3d84bd3fce144 (diff)
nc-backup: Exclude old (restored) data directories
-rw-r--r--bin/ncp/BACKUPS/nc-backup.sh1
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"