hotfix because the backup script kept starting and crashing everything before it had networkaccess or forgejo got closed
This commit is contained in:
parent
180a04e787
commit
c8ec74feca
2 changed files with 6 additions and 1 deletions
|
@ -42,6 +42,9 @@ let
|
||||||
ExecStart = "${forgejo-borgbackup}/bin/forgejo-borgbackup";
|
ExecStart = "${forgejo-borgbackup}/bin/forgejo-borgbackup";
|
||||||
User = "root";
|
User = "root";
|
||||||
};
|
};
|
||||||
|
requires= ["mysql.service"];
|
||||||
|
after = ["forgejo.service" "mysql.service" "network-online.target"];
|
||||||
|
wants = ["network-online.target"];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,6 +52,7 @@ let
|
||||||
description = "Daily Borg Backup Timer";
|
description = "Daily Borg Backup Timer";
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
|
OnActiveSec = "30s";
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
|
htop
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue