added home wifi check to backup script

This commit is contained in:
2024-02-06 18:05:49 +01:00
parent c793bc5304
commit 3945279862
3 changed files with 3 additions and 2 deletions

View File

@@ -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"

View File

@@ -12,6 +12,7 @@
home.stateVersion = "23.11"; # Please read the comment before changing.
home.packages = with pkgs; [
killall
sshfs
hledger
extremetuxracer

Submodule private updated: 1074496cac...059a3ea7b4