hotfix because the backup script kept starting and crashing everything before it had networkaccess or forgejo got closed

This commit is contained in:
Lyn 2024-02-20 22:15:27 +01:00
parent 180a04e787
commit c8ec74feca
2 changed files with 6 additions and 1 deletions

View file

@ -42,6 +42,9 @@ let
ExecStart = "${forgejo-borgbackup}/bin/forgejo-borgbackup";
User = "root";
};
requires= ["mysql.service"];
after = ["forgejo.service" "mysql.service" "network-online.target"];
wants = ["network-online.target"];
wantedBy = [ "multi-user.target" ];
};
@ -49,6 +52,7 @@ let
description = "Daily Borg Backup Timer";
wantedBy = [ "timers.target" ];
timerConfig = {
OnActiveSec = "30s";
OnCalendar = "daily";
Persistent = true;
};

View file

@ -44,6 +44,7 @@
vim
wget
curl
htop
];