Configure borg backup for gitea

This commit is contained in:
Amanda Graven 2023-06-17 17:16:59 +02:00
parent e21bba4363
commit 69f780a9f2
Signed by: amanda
GPG key ID: F747582C5608F4CB
8 changed files with 21 additions and 4 deletions

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
services.borgbackup.jobs = {
gitea = {
paths = "/var/lib/gitea";
repo = "ssh://borg@despondos.nao.sh//mnt/slab/backup/wind/gitea";
encryption.mode = "repokey";
encryption.passCommand = "cat ${config.secrets.files.borg_pass_gitea.file}";
environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_gitea.file}";
compression = "auto,zstd";
startAt = "*-*-* 02:15:00";
user = "gitea";
};
};
}