borg: update patterns
This commit is contained in:
parent
e04683f26a
commit
1095d4d3bb
|
@ -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}' \
|
||||
/
|
||||
|
|
Reference in a new issue