hotfix because the backup script kept starting and crashing everything before it had networkaccess or forgejo got closed
This commit is contained in:
parent
ea0b6f8872
commit
7ea007fb49
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
vim
|
||||
wget
|
||||
curl
|
||||
htop
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue