diff --git a/borg/backup.sh b/borg/backup.sh index b669302..c226140 100755 --- a/borg/backup.sh +++ b/borg/backup.sh @@ -48,6 +48,7 @@ borg create --progress --stats --exclude-caches \ --exclude $HOME/.local/Steam \ --exclude $HOME/.local/share/Steam \ --exclude $HOME/Audio \ +--exclude $HOME/nas \ $ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi @@ -78,4 +79,11 @@ then cd / udisksctl unmount -b "/dev/disk/by-label/$DISK" udisksctl lock -b "/dev/disk/by-partlabel/$DISK" +else + echo "Backing up Audo archive..." + cd "$HOME/Audio" + git annex copy --to origin > /dev/null + echo "Backing up Photo archive..." + cd "$HOME/Photos" + git annex copy --to origin > /dev/null fi