From b005e3211e9256fdc88a361b965a791ce219ad0b Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Sat, 2 Dec 2023 01:27:26 +0100 Subject: [PATCH] add gitea backups --- machines/bart/configuration.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/machines/bart/configuration.nix b/machines/bart/configuration.nix index 76eb601..a6762cb 100644 --- a/machines/bart/configuration.nix +++ b/machines/bart/configuration.nix @@ -154,6 +154,10 @@ in appName = "Thilos SCM"; rootUrl = "https://${gitea_url}/"; lfs.enable = true; + dump = { + enable = true; + file = "forgejo-dump"; + }; mailerPasswordFile = config.age.secrets.giteaMailerPassword.path; database = { type = "postgres"; @@ -207,15 +211,17 @@ in }; }; }; - # restic.backups.bart = { - # initialize = true; - # passwordFile = config.age.secrets.resticBackupPassword.path; - # environmentFile = config.age.secrets.burnsBackupEnv.path; - # paths = [ ]; - # repository = "b2:backup-bart"; - # timerConfig = { OnCalendar = "*-*-* 3:00:00"; }; - # pruneOpts = [ "--keep-daily 5" ]; - # }; + restic.backups.bart = { + initialize = true; + passwordFile = config.age.secrets.resticBackupPassword.path; + environmentFile = config.age.secrets.burnsBackupEnv.path; + paths = [ + "/var/lib/forgejo/dump" + ]; + repository = "b2:backup-bart"; + timerConfig = { OnCalendar = "*-*-* 3:00:00"; }; + pruneOpts = [ "--keep-daily 5" ]; + }; }; virtualisation = { docker = {