added home wifi check to backup script
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user