Skip to content

Commit

Permalink
nc-backup: exclude opcachedir and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 31, 2017
1 parent a86efea commit cfc7599
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etc/nextcloudpi-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ configure()
[[ "$INCLUDEDATA_" == "yes" ]] && echo -e "backup datadir... "
echo -e "backup files..."
mkdir -p $DESTDIR_
tar -cf $DESTFILE $DATAFILE $DBBACKUP nextcloud/ --exclude "nextcloud/data/*/files/*" && \
tar -cf $DESTFILE $DATAFILE $DBBACKUP nextcloud/ \
--exclude "nextcloud/data/*/files/*" \
--exclude "nextcloud/data/.opcache" \
--exclude "nextcloud/data/{access,error,nextcloud}.log" \
&& \
echo -e "backup $DESTFILE generated" || \
echo -e "error generating backup"
rm $DBBACKUP
Expand Down

0 comments on commit cfc7599

Please sign in to comment.