From d4814d64d65c4a8fae55868900c13d9649c00bcf Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Mon, 1 Nov 2021 09:00:10 +0100 Subject: [PATCH] nc-restic-s3-backup: exclude files (opcache) --- bin/ncp/BACKUPS/nc-restic-s3-backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ncp/BACKUPS/nc-restic-s3-backup.sh b/bin/ncp/BACKUPS/nc-restic-s3-backup.sh index 18ba7adc0..379702446 100644 --- a/bin/ncp/BACKUPS/nc-restic-s3-backup.sh +++ b/bin/ncp/BACKUPS/nc-restic-s3-backup.sh @@ -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 . <