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"