27 lines
888 B
Nix
27 lines
888 B
Nix
|
|
{ config, ... }:
|
|
|
|
{
|
|
services.borgbackup.jobs = {
|
|
postgres = {
|
|
paths = "/var/lib/postgresql/backup";
|
|
repo = "ssh://borg@backup.graven.dev//mnt/slab/backup/rudiger/postgres";
|
|
encryption.mode = "repokey";
|
|
encryption.passCommand = "cat ${config.secrets.files.borg_pass_postgres.file}";
|
|
environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_postgres.file}";
|
|
compression = "auto,zstd";
|
|
startAt = "*-*-* 03:15:00";
|
|
user = "postgres";
|
|
};
|
|
synapse = {
|
|
paths = "/var/lib/nextcloud/data";
|
|
repo = "ssh://borg@backup.graven.dev//mnt/slab/backup/rudiger/nextcloud";
|
|
encryption.mode = "repokey";
|
|
encryption.passCommand = "cat ${config.secrets.files.borg_pass_synapse.file}";
|
|
environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_synapse.file}";
|
|
compression = "auto,zstd";
|
|
startAt = "*-*-* 03:45:00";
|
|
user = "nextcloud";
|
|
};
|
|
};
|
|
}
|