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 \
|
-y 3 \
|
||||||
$REPO
|
$REPO
|
||||||
|
|
||||||
if $LOCAL && [ $HOSTNAME == "gridlock" ]
|
if $LOCAL && nmcli connection show --active | grep '^vt-net' > /dev/null
|
||||||
then
|
then
|
||||||
echo "backing up Photo archive..."
|
echo "backing up Photo archive..."
|
||||||
cd "/run/media/$USER/$DISK/photos"
|
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.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
killall
|
||||||
sshfs
|
sshfs
|
||||||
hledger
|
hledger
|
||||||
extremetuxracer
|
extremetuxracer
|
||||||
|
|||||||
2
private
2
private
Submodule private updated: 1074496cac...059a3ea7b4
Reference in New Issue
Block a user