From 9d9594f998dc6b51c90eb2d49e0192555252c6bf Mon Sep 17 00:00:00 2001 From: capntack Date: Sat, 23 Mar 2024 15:31:56 -0500 Subject: [PATCH] Removed/changed/added some default excludes --- templates/resticExcludesTemplate | 6 +++++- templates/resticTemplate.sh | 8 ++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/resticExcludesTemplate b/templates/resticExcludesTemplate index 4fcf35c..409f06d 100644 --- a/templates/resticExcludesTemplate +++ b/templates/resticExcludesTemplate @@ -1,3 +1,7 @@ /home/**/.cache /home/**/.config/discord/Cache -/home**/.steam \ No newline at end of file +/home/**/.steam +/home/**/Games +/home/**/.local/share/Trash +**/backupVariables.sh +**/backupVariablesAWS.sh \ No newline at end of file diff --git a/templates/resticTemplate.sh b/templates/resticTemplate.sh index ae6ddc3..460c434 100644 --- a/templates/resticTemplate.sh +++ b/templates/resticTemplate.sh @@ -1,22 +1,18 @@ #!/bin/bash -if [ AWS_RESTIC_BACKUP = 'no' ]; then +if [ $AWS_RESTIC_BACKUP = 'no' ]; then restic backup --verbose \ --tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \ --exclude-caches \ --exclude-file="${RESTIC_EXCLUDES}" \ - --exclude "${SCRIPT_DIR}"/variables.sh \ - --exclude "${SCRIPT_DIR}"/variablesAWS.sh \ "${RESTIC_SOURCE}" fi -if [ AWS_RESTIC_BACKUP = 'yes' ]; then +if [ $AWS_RESTIC_BACKUP = 'yes' ]; then restic backup --verbose \ --tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \ --exclude-caches \ --exclude-file="${RESTIC_EXCLUDES}" \ - --exclude "${SCRIPT_DIR}"/variables.sh \ - --exclude "${SCRIPT_DIR}"/variablesAWS.sh \ -o s3.connections="${AWS_CONNECTIONS}" \ --limit-upload "${AWS_UPLOAD}" \ "${RESTIC_SOURCE}"