forked from rarias/jungle
Rename Gitea backup service and directory
Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
@@ -29,15 +29,15 @@
|
||||
|
||||
dump = {
|
||||
enable = false; # Do not enable NixOS module, use our custom systemd script below
|
||||
backupDir = "/vault/gitea";
|
||||
backupDir = "/vault/backup/gitea";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.gitea-dump-rotating = let
|
||||
systemd.services.gitea-backup = let
|
||||
cfg = config.services.gitea;
|
||||
exe = lib.getExe cfg.package;
|
||||
in {
|
||||
description = "gitea dump rotation";
|
||||
description = "Gitea daily backup";
|
||||
after = [ "gitea.service" ];
|
||||
path = [ cfg.package ];
|
||||
|
||||
@@ -61,9 +61,9 @@
|
||||
'';
|
||||
};
|
||||
|
||||
systemd.timers.gitea-dump-rotating = {
|
||||
description = "Update timer for gitea-dump-rotating";
|
||||
partOf = [ "gitea-dump-rotating.service" ];
|
||||
systemd.timers.gitea-backup = {
|
||||
description = "Update timer for gitea-backup";
|
||||
partOf = [ "gitea-backup.service" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = config.services.gitea.dump.interval;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user