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"
|
||||
|
||||
1
home.nix
1
home.nix
@@ -12,6 +12,7 @@
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
home.packages = with pkgs; [
|
||||
killall
|
||||
sshfs
|
||||
hledger
|
||||
extremetuxracer
|
||||
|
||||
2
private
2
private
Submodule private updated: 1074496cac...059a3ea7b4
Reference in New Issue
Block a user