From d4e70e33f5616d1f958f8dfb984ecc8fab3a0ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Violet=20Truchse=C3=9F?= Date: Mon, 12 Feb 2024 00:34:36 +0100 Subject: [PATCH] added audio repo in backup script --- borg/backup.sh | 10 ++++++++-- home.nix | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) 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