Changed Files backed up and frequency

This commit is contained in:
2022-12-19 12:59:12 -05:00
parent 41fddb14ad
commit e27734c3c6

View File

@@ -13,7 +13,7 @@ trap 'echo $( date ) Backup interrupted >&2; exit 2' INT TERM
info "Starting backup" info "Starting backup"
borg create -n \ borg create \
--verbose \ --verbose \
--filter AME \ --filter AME \
--list \ --list \
@@ -21,18 +21,11 @@ borg create -n \
--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 '/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}' \ ::'{hostname}-{now}' \
/etc \ /etc \
/home \ /home/jerick/Documents \
/root \ /root \
/var \ /var \
backup_exit=$? backup_exit=$?
@@ -49,7 +42,7 @@ borg prune \
--prefix '{hostname}-' \ --prefix '{hostname}-' \
--show-rc \ --show-rc \
--keep-daily 1 \ --keep-daily 1 \
--keep-weekly 1 \ --keep-weekly 2 \
--keep-monthly 4 \ --keep-monthly 4 \
prune_exit=$? prune_exit=$?