#25 Gitlab backup options #116

Open
esy wants to merge 6 commits from gitlab_backup into main
Showing only changes of commit e5c9c16323 - Show all commits

View file

@ -178,6 +178,10 @@ in {
domain = lib.mkForce domain_base; domain = lib.mkForce domain_base;
}; };
services.skynet_backup.normal.backups = [
"/etc/skynet/backups/gitlab"
];
services.gitlab = { services.gitlab = {
enable = true; enable = true;
@ -213,6 +217,14 @@ in {
}; };
}; };
# see https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/gitlab.nix#L295
backup = {
startAt = "Sat *-*-* 04:00:00"; # Sat 4am weekly
path = "/etc/skynet/backups/gitlab"; # Has to be same as line 182
keepTime = 2190; # 3 months(hours) - 12 backups untill the first one gets deleted
skip = ["builds" "artifacts" "registry" "packages" "terraform_state"]; # see https://docs.gitlab.com/ee/administration/backup_restore/backup_gitlab.html#excluding-specific-data-from-the-backup
};
# use the local email client # use the local email client
smtp.enable = true; smtp.enable = true;