diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-05-14 20:09:44 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-05-14 20:10:58 +0300 |
commit | 5e3da08c248c420fc9b934c867f57d70d7e1f856 (patch) | |
tree | 14eca819f2edaff88bec63aacfe8128e81b87e92 /etc | |
parent | 8d01fc476b371ff49d7555f6f737fe3ad712e084 (diff) |
nc-backup: exclude ncp-update-nc backupsv0.55.1
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-backup.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/ncp-config.d/nc-backup.sh b/etc/ncp-config.d/nc-backup.sh index f67cf00e..29c13c45 100644 --- a/etc/ncp-config.d/nc-backup.sh +++ b/etc/ncp-config.d/nc-backup.sh @@ -77,6 +77,7 @@ tar --exclude "nextcloud/data/*/files/*" \ --exclude "nextcloud/data/.opcache" \ --exclude "nextcloud/data/{access,error,nextcloud}.log" \ --exclude "nextcloud/data/access.log" \ + --exclude "nextcloud/data/ncp-update-backups/" \ -cf "$DESTFILE" "$DBBACKUP" nextcloud/ \ || { echo "error generating backup" @@ -89,6 +90,7 @@ rm "$DBBACKUP" tar --exclude "data/.opcache" \ --exclude "data/{access,error,nextcloud}.log" \ --exclude "data/access.log" \ + --exclude "data/ncp-update-backups/" \ -rf "$DESTFILE" -C "$DATADIR"/.. "$( basename "$DATADIR" )" \ || { echo "error generating backup" |