From 535f2a1c86663be3b0668a364abe1c3c240c5518 Mon Sep 17 00:00:00 2001 From: St33v Date: Thu, 13 May 2021 10:07:17 +1000 Subject: exclude .git dirs; include /etc/fstab --- borgAuto.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'borgAuto.sh') diff --git a/borgAuto.sh b/borgAuto.sh index 46d4bc1..e7b0414 100755 --- a/borgAuto.sh +++ b/borgAuto.sh @@ -56,22 +56,26 @@ function Pruner { } # Backup all of /home except a few excluded directories and files -echo $'\nCreating St33v\'s archive' +echo $'\nCreating ${USER}\'s archive' borg create -v --stats --compression auto,lzma,6 \ ::'{hostname}-{user}-{now:%Y%m%dT%H%M}' \ /home/st33v \ /var/log/pacman.log \ + /etc/fstab \ /etc/systemd/system \ /boot/grub/*.cfg \ --exclude '/home/$USER/cargo' \ --exclude '/home/st33v/.*' \ --exclude '*.vdi' \ --exclude '*.img' \ - --exclude '*.iso' + --exclude '*.iso' \ + --exclude '.git/' Differ cr4y -# Backup olho +# Backup olho (Image store) +# don't compress image files; they are already compressed +# TODO but what about RAW image files (*.NEF etc) echo $'\nCreating Image archive' borg create -v --stats --compression none \ ::'olho-{now:%Y%m%dT%H%M}' /mnt/olho -- cgit v1.3