added forgejo to restic backups.

This commit is contained in:
Gabe Venberg 2025-03-24 16:23:31 +01:00
parent 3a8026d110
commit ac463949c7
4 changed files with 23 additions and 1 deletions

View file

@ -8,7 +8,6 @@
imports = [
../../configs/nixos/nginx.nix
];
services.nginx.clientMaxBodySize = "100m";
services.nginx.virtualHosts = {
"gabevenberg.com" = {
enableACME = true;

View file

@ -25,8 +25,17 @@
repositoryFile = config.sops.secrets.restic-url.path;
passwordFile = config.sops.secrets.restic-password.path;
initialize = true;
backupPrepareCommand = ''
systemctl stop forgejo.service
'';
backupCleanupCommand = ''
systemctl start forgejo.service
'';
paths = [
"/var/lib/radicale"
"/var/lib/forgejo/custom"
"/var/lib/forgejo/data"
"/var/lib/forgejo/repositories"
];
timerConfig = {
OnCalendar = "daily";