Configure borg backup for gitea
This commit is contained in:
parent
e21bba4363
commit
69f780a9f2
8 changed files with 21 additions and 4 deletions
16
config/hosts/wind/services/borg.nix
Normal file
16
config/hosts/wind/services/borg.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue