Archived
1
0
Fork 0

borg: update patterns

This commit is contained in:
Casper V. Kristensen 2022-06-12 03:08:48 +02:00
parent e04683f26a
commit 1095d4d3bb

View file

@ -1,7 +1,5 @@
#!/bin/bash
set -e
# This script is based on the script at:
# https://borgbackup.readthedocs.io/en/stable/quickstart.html#automating-backups
@ -43,11 +41,17 @@ borg create
--pattern '! /var/cache' \
--pattern '! /**/found.000/*' \
--pattern '! /mnt' \
\
--pattern '! /var/lib/apport/coredump' \
--pattern '! /var/lib/docker' \
--pattern '! /var/lib/snapd/snaps' \
--pattern '! /**/.cache' \
--pattern '! /**/Cache' \
--pattern '! /**/cache' \
--pattern '- *.tmp' \
\
--pattern '! /home/*/.steam' \
--pattern '! /home/*/GOG Games' \
--pattern '! /home/*/.cache' \
--pattern '! /home/*/Downloads' \
--pattern '! /home/*/.local/share/Trash' \
--pattern '! /home/*/infrastructure/*/*/data' \
@ -56,7 +60,7 @@ borg create
--pattern '+ /media/caspervk/C/Users/Casper/Documents' \
--pattern '+ /media/caspervk/C/Program Files (x86)/World of Warcraft/_classic_' \
--pattern '+ /media/caspervk/Backup/borg' \
--pattern '! /media' \
--pattern '- /media' \
\
::'{hostname}-{utcnow}' \
/