diff options
| author | St33v <github@f3rr3t.com> | 2021-05-13 10:07:17 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2021-05-13 10:07:17 +1000 |
| commit | 535f2a1c86663be3b0668a364abe1c3c240c5518 (patch) | |
| tree | 622aa57d5025625365158c9cd04737fa302462da /borgAuto.sh | |
| parent | 082b42bae500c9b9e83c75c50f1e9b97d1b1bf31 (diff) | |
exclude .git dirs; include /etc/fstab
Diffstat (limited to 'borgAuto.sh')
| -rwxr-xr-x | borgAuto.sh | 10 |
1 files changed, 7 insertions, 3 deletions
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 |
