From 3945279862e6cbbcc0c41dd9da9a336196de1c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Violet=20Truchse=C3=9F?= Date: Tue, 6 Feb 2024 18:05:49 +0100 Subject: [PATCH] added home wifi check to backup script --- borg/backup.sh | 2 +- home.nix | 1 + private | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/borg/backup.sh b/borg/backup.sh index a101c65..f581c69 100755 --- a/borg/backup.sh +++ b/borg/backup.sh @@ -58,7 +58,7 @@ borg prune --stats --list --keep-within 1d --glob-archives "$HOSTNAME*" \ -y 3 \ $REPO -if $LOCAL && [ $HOSTNAME == "gridlock" ] +if $LOCAL && nmcli connection show --active | grep '^vt-net' > /dev/null then echo "backing up Photo archive..." cd "/run/media/$USER/$DISK/photos" diff --git a/home.nix b/home.nix index ebdc19d..1c9681f 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; [ + killall sshfs hledger extremetuxracer diff --git a/private b/private index 1074496..059a3ea 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 1074496cac34007a142be30e179a97c6b4b06391 +Subproject commit 059a3ea7b46274c57b50385cd9446e2e605b2df6