Skip to content

Commit

Permalink
nc-restic-s3-backup: exclude files (opcache)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheller committed Nov 1, 2021
1 parent f2b9fe7 commit d4814d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/ncp/BACKUPS/nc-restic-s3-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ configure()

echo "backing up from $DATADIR"

AWS_ACCESS_KEY_ID="$S3_KEY_ID" AWS_SECRET_ACCESS_KEY="$S3_SECRET_KEY" RESTIC_PASSWORD="$RESTIC_PASSWORD" restic -r "s3:$S3_BUCKET_URL/ncp-backup" --verbose backup . || {
AWS_ACCESS_KEY_ID="$S3_KEY_ID" AWS_SECRET_ACCESS_KEY="$S3_SECRET_KEY" RESTIC_PASSWORD="$RESTIC_PASSWORD" restic -r "s3:$S3_BUCKET_URL/ncp-backup" --verbose --exclude-file=/dev/stdin backup . <<EXCLUDES_LIST
.opcache
EXCLUDES_LIST
[[ $? -eq 0 ]] || {
echo "error: restic backup failed"
echo "notice: use nc-maintenance to disable maintenance mode anyway if desired"
return 9
Expand Down

0 comments on commit d4814d6

Please sign in to comment.