Mon Jun 10 01:21:53 PM UTC 2024

This commit is contained in:
Thomas Avé 2024-06-10 13:21:53 +00:00
parent e6b2252a83
commit f1a77181e7
1 changed files with 28 additions and 11 deletions

View File

@ -64,13 +64,34 @@ let
fi
'');
};
# backup = {
# when = "*-*-* 04:00:00";
# script = toString (pkgs.writeShellScript "script" ''
# ${./scripts/files/backup.sh}
# ${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/R6iJcWqGp0
# '');
# };
restic_etienne = {
when = "*-*-* 01:00:00";
script = toString (pkgs.writeShellScript "script" ''
/Backup/Restic/Etienne/run.sh
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/zGPrOi0NsJ
'');
};
restic_magda_and_etienne = {
when = "*-*-* 03:00:00";
script = toString (pkgs.writeShellScript "script" ''
/Backup/Restic/Magda\ and\ Etienne/run.sh
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/yvBuDgduDd
'');
};
restic_backblaze = {
when = "*-*-* 02:00:00";
script = toString (pkgs.writeShellScript "script" ''
/Backup/Restic/BackBlaze/run.sh
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/LVruVYTwTn
'');
};
mail_sync = {
when = "*-*-* 04:00:00";
script = toString (pkgs.writeShellScript "script" ''
cd /home/server/Containers/Mails && docker compose up sync-etienne sync-magda
${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/eEIPVGyrAx
'');
};
};
in {
home.username = "server";
@ -99,9 +120,5 @@ in {
systemd.user.timers = pkgs.lib.mapAttrs mkTimer scripts;
# Don't forget to enable these timers! Or reboot, after which it should also be activated automatically
# systemctl --user enable --now backup.timer
# systemctl --user enable --now sync_vault.timer
# systemctl --user enable --now mbsync.timer
# systemctl --user enable --now vdirsyncer.timer
# systemctl --user enable --now disk_check.timer
}