diff --git a/borg/backup.sh b/borg/backup.sh index 8436c01..6d7d6cc 100755 --- a/borg/backup.sh +++ b/borg/backup.sh @@ -47,6 +47,7 @@ borg create --progress --stats --exclude-caches \ --exclude $HOME/tmp \ --exclude $HOME/.local/Steam \ --exclude $HOME/.local/share/Steam \ +--exclude $HOME/Audio \ $ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi @@ -63,9 +64,14 @@ then echo "backing up Photo archive..." cd "/run/media/$USER/$DISK/photos" git annex sync - set +e +# set +e + git annex mirror --from=origin +# set -e + git annex sync + echo "backing up Audio archive..." + cd "/run/media/$USER/$DISK/audio" + git annex sync git annex mirror --from=origin - set -e git annex sync cd / udisksctl unmount -b "/dev/disk/by-label/$DISK" diff --git a/home.nix b/home.nix index d642271..26169c3 100644 --- a/home.nix +++ b/home.nix @@ -12,6 +12,7 @@ home.stateVersion = "23.11"; # Please read the comment before changing. home.packages = with pkgs; [ + openssl feh killall sshfs