From 0bfce5d0aa37bbcb796ee0d7d00710750e5fd3b1 Mon Sep 17 00:00:00 2001 From: capntack Date: Tue, 22 Aug 2023 22:39:11 -0500 Subject: [PATCH] Fixed log cleanup. Added gitignore --- .gitignore | 5 +++++ backup-logs/logFilesGoHere.txt | 0 backup-logs/placeholder.md | 1 - templates/backups-template.sh | 4 ++-- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 backup-logs/logFilesGoHere.txt delete mode 100644 backup-logs/placeholder.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16f0df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.log +.restic-password +backups.sh +restic-excludes.txt +rsync-manifest.conf \ No newline at end of file diff --git a/backup-logs/logFilesGoHere.txt b/backup-logs/logFilesGoHere.txt new file mode 100644 index 0000000..e69de29 diff --git a/backup-logs/placeholder.md b/backup-logs/placeholder.md deleted file mode 100644 index 07a0eb7..0000000 --- a/backup-logs/placeholder.md +++ /dev/null @@ -1 +0,0 @@ -Placeholder so `backup-logs` pushes to repo. Feel free to delete. \ No newline at end of file diff --git a/templates/backups-template.sh b/templates/backups-template.sh index 1f6b21b..bff943d 100644 --- a/templates/backups-template.sh +++ b/templates/backups-template.sh @@ -116,7 +116,7 @@ restic backup --verbose \ -r "${RESTIC_REPO_01}" \ --tag "${RESTIC_TAG_01}" --tag "${RESTIC_TAG_02}" \ --exclude-caches \ - --exclude-file=$RESTIC_EXCLUDES_01 + --exclude-file="${RESTIC_EXCLUDES_01}" \ "${RESTIC_SOURCE_01}" # Now we forget snapshots and prune data for the same tags in the repo @@ -139,7 +139,7 @@ restic backup --verbose \ -r "${RESTIC_REPO_02}" \ --tag "${RESTIC_TAG_03}" --tag "${RESTIC_TAG_04}" \ --exclude-caches \ - --exclude-file=$RESTIC_EXCLUDES_02 + --exclude-file="${RESTIC_EXCLUDES_02}" \ "${RESTIC_SOURCE_02}" restic forget --prune --tag tag3,tag4 \