Changed exclude to actually exclude (hopefully)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Setting this, so the repo does not need to be given on the commandline:
|
# 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.
|
# See the section "Passphrase notes" for more infos.
|
||||||
#This uses a custom environment variable to set the passphrase
|
#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"
|
info "Starting backup"
|
||||||
|
|
||||||
borg create \
|
borg create -n \
|
||||||
--verbose \
|
--verbose \
|
||||||
--filter AME \
|
--filter AME \
|
||||||
--list \
|
--list \
|
||||||
@@ -21,14 +21,14 @@ borg create \
|
|||||||
--show-rc \
|
--show-rc \
|
||||||
--compression lz4 \
|
--compression lz4 \
|
||||||
--exclude-caches \
|
--exclude-caches \
|
||||||
--exclude 'home/*/.cache/*' \
|
--exclude 'home/*/.cache/*' \
|
||||||
--exclude 'var/tmp/*' \
|
--exclude 'var/tmp/*' \
|
||||||
--exclude ~/.steam \
|
--exclude '/home/jerick/.steam/*' \
|
||||||
--exclude ~/VirtualBox\ VMs/ \
|
--exclude '~/VirtualBox\ VMs/* ' \
|
||||||
--exclude ~/Games \
|
--exclude '/home/jerick/Games/* ' \
|
||||||
--exclude ~/.cache \
|
--exclude '/home/*/.cache/* ' \
|
||||||
--exclude ~/NFSFolder \
|
--exclude '/home/jerick/NFSFolder/* ' \
|
||||||
--exclude ~/Documents/Kingdom\ Hearts\ III\ and\ Re-Mind/ \
|
--exclude '/home/jerick/Documents/Kingdom\ Hearts\ III\ and\ Re-Mind/*' \
|
||||||
\
|
\
|
||||||
::'{hostname}-{now}' \
|
::'{hostname}-{now}' \
|
||||||
/etc \
|
/etc \
|
||||||
@@ -49,7 +49,7 @@ borg prune \
|
|||||||
--prefix '{hostname}-' \
|
--prefix '{hostname}-' \
|
||||||
--show-rc \
|
--show-rc \
|
||||||
--keep-daily 1 \
|
--keep-daily 1 \
|
||||||
--keep-weekly 2 \
|
--keep-weekly 1 \
|
||||||
--keep-monthly 4 \
|
--keep-monthly 4 \
|
||||||
|
|
||||||
prune_exit=$?
|
prune_exit=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user