Changed exclude to actually exclude (hopefully)

This commit is contained in:
2022-12-19 12:38:24 -05:00
parent ea31310b2c
commit 41fddb14ad

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Setting this, so the repo does not need to be given on the commandline:
export BORG_REPO="/home/jerick/NFSFolder/Desktop Backup"
export BORG_REPO="/home/jerick/NFSFolder/DesktopBackup"
# See the section "Passphrase notes" for more infos.
#This uses a custom environment variable to set the passphrase
@@ -13,7 +13,7 @@ trap 'echo $( date ) Backup interrupted >&2; exit 2' INT TERM
info "Starting backup"
borg create \
borg create -n \
--verbose \
--filter AME \
--list \
@@ -21,14 +21,14 @@ borg create \
--show-rc \
--compression lz4 \
--exclude-caches \
--exclude 'home/*/.cache/*' \
--exclude 'home/*/.cache/*' \
--exclude 'var/tmp/*' \
--exclude ~/.steam \
--exclude ~/VirtualBox\ VMs/ \
--exclude ~/Games \
--exclude ~/.cache \
--exclude ~/NFSFolder \
--exclude ~/Documents/Kingdom\ Hearts\ III\ and\ Re-Mind/ \
--exclude '/home/jerick/.steam/*' \
--exclude '~/VirtualBox\ VMs/* ' \
--exclude '/home/jerick/Games/* ' \
--exclude '/home/*/.cache/* ' \
--exclude '/home/jerick/NFSFolder/* ' \
--exclude '/home/jerick/Documents/Kingdom\ Hearts\ III\ and\ Re-Mind/*' \
\
::'{hostname}-{now}' \
/etc \
@@ -49,7 +49,7 @@ borg prune \
--prefix '{hostname}-' \
--show-rc \
--keep-daily 1 \
--keep-weekly 2 \
--keep-weekly 1 \
--keep-monthly 4 \
prune_exit=$?