Skip to content

Commit

Permalink
nc-backup: exclude ncp-update-nc backups
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 14, 2018
1 parent 8d01fc4 commit 5e3da08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/ncp-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 5e3da08

Please sign in to comment.