Skip to content

Commit

Permalink
add gitea backups
Browse files Browse the repository at this point in the history
  • Loading branch information
thilobillerbeck committed Dec 2, 2023
1 parent ba270c0 commit b005e32
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions machines/bart/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit b005e32

Please sign in to comment.