Mon Jun 10 01:21:53 PM UTC 2024
This commit is contained in:
parent
e6b2252a83
commit
f1a77181e7
|
@ -64,13 +64,34 @@ let
|
||||||
fi
|
fi
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
# backup = {
|
restic_etienne = {
|
||||||
# when = "*-*-* 04:00:00";
|
when = "*-*-* 01:00:00";
|
||||||
# script = toString (pkgs.writeShellScript "script" ''
|
script = toString (pkgs.writeShellScript "script" ''
|
||||||
# ${./scripts/files/backup.sh}
|
/Backup/Restic/Etienne/run.sh
|
||||||
# ${pkgs.curl}/bin/curl https://uptime.thomasave.be/api/push/R6iJcWqGp0
|
${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 {
|
in {
|
||||||
home.username = "server";
|
home.username = "server";
|
||||||
|
@ -99,9 +120,5 @@ in {
|
||||||
systemd.user.timers = pkgs.lib.mapAttrs mkTimer scripts;
|
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
|
# 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
|
# systemctl --user enable --now disk_check.timer
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue