Improve backup script
This commit is contained in:
parent
0726d674cc
commit
229a6b13b5
@ -6,7 +6,10 @@ let
|
|||||||
echo "========== BACKUP HOME STARTING =========="
|
echo "========== BACKUP HOME STARTING =========="
|
||||||
export RESTIC_PASSWORD="gunter.home.2rjus.net"
|
export RESTIC_PASSWORD="gunter.home.2rjus.net"
|
||||||
export RESTIC_REPOSITORY="rest:http://10.69.12.52:8000/gunter.home.2rjus.net"
|
export RESTIC_REPOSITORY="rest:http://10.69.12.52:8000/gunter.home.2rjus.net"
|
||||||
GOTIFY_TOKEN=$(<"$XDG_RUNTIME_DIR/gotify_backup_home.txt")
|
GOTIFY_TOKEN=$(<"$XDG_RUNTIME_DIR/secrets/gotify_backup_home")
|
||||||
|
|
||||||
|
echo "DEBUG: GOTIFY_TOKEN=$GOTIFY_TOKEN"
|
||||||
|
echo "DEBUG: BUSADDR=$DBUS_SESSION_BUS_ADDRESS"
|
||||||
|
|
||||||
if [ -z "$GOTIFY_TOKEN" ]; then
|
if [ -z "$GOTIFY_TOKEN" ]; then
|
||||||
${pkgs.libnotify}/bin/notify-send -u critical "Backup issue" "No Gotify token found"
|
${pkgs.libnotify}/bin/notify-send -u critical "Backup issue" "No Gotify token found"
|
||||||
@ -93,7 +96,7 @@ in
|
|||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "timers.target" ];
|
WantedBy = [ "timers.target" "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user