added forgejo to restic backups.
This commit is contained in:
parent
3a8026d110
commit
ac463949c7
4 changed files with 23 additions and 1 deletions
|
@ -8,7 +8,6 @@
|
|||
imports = [
|
||||
../../configs/nixos/nginx.nix
|
||||
];
|
||||
services.nginx.clientMaxBodySize = "100m";
|
||||
services.nginx.virtualHosts = {
|
||||
"gabevenberg.com" = {
|
||||
enableACME = true;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue