yodaHedgehog: backup service

This commit is contained in:
Daniel Langbein 2023-11-21 13:01:45 +01:00
parent 7f52e693a6
commit 9373c2c949
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -43,6 +43,11 @@ in
}; };
}; };
systemd.services."daily-backup-and-suspend" = { systemd.services."daily-backup-and-suspend" = {
# If the system wakes up at 00:05, it is not directly connected to the Internet.
# Thus, `btrbk` might fail with the following error while connecting to `rootNas`:
# ssh: Could not resolve hostname p1st.de: Name or service not known
# To avoid this, we depend on the `network-online` systemd target.
after = [ "network-online.target" ];
# Packages required for this script. # Packages required for this script.
# For `ssh` and `journalwatch`, there are assertions above. # For `ssh` and `journalwatch`, there are assertions above.
path = with pkgs; [ path = with pkgs; [