Fixed log cleanup. Added gitignore

main
capntack 1 year ago
parent b2458e2309
commit 0bfce5d0aa

5
.gitignore vendored

@ -0,0 +1,5 @@
*.log
.restic-password
backups.sh
restic-excludes.txt
rsync-manifest.conf

@ -1 +0,0 @@
Placeholder so `backup-logs` pushes to repo. Feel free to delete.

@ -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 \

Loading…
Cancel
Save