add backups to cassie's b2
This commit is contained in:
parent
296031f35b
commit
e37126b016
|
@ -1,13 +1,28 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
services.restic.backups.hetzner-vm = {
|
let
|
||||||
user = "root";
|
backupUser = "root";
|
||||||
paths = [ "/var/lib/postgresql" "/var/lib/vault" ];
|
backupPaths = [
|
||||||
|
"/var/lib/postgresql" "/var/lib/vault"
|
||||||
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnBootSec = "1m";
|
OnBootSec = "1m";
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
services.restic.backups.hetzner-vm = {
|
||||||
|
user = backupUser;
|
||||||
|
paths = backupPaths;
|
||||||
|
timerConfig = timerConfig;
|
||||||
repository = "b2:Backups-HetznerVM:/";
|
repository = "b2:Backups-HetznerVM:/";
|
||||||
passwordFile = "/secrets/restic-password";
|
passwordFile = "/secrets/restic-password";
|
||||||
environmentFile = "/secrets/restic-env";
|
environmentFile = "/secrets/restic-env";
|
||||||
};
|
};
|
||||||
|
services.restic.backups.cassie-hetzner-vm = {
|
||||||
|
user = backupUser;
|
||||||
|
paths = backupPaths;
|
||||||
|
timerConfig = timerConfig;
|
||||||
|
repository = "b2:Cryptidz-Backup:HetznerVM";
|
||||||
|
passwordFile = "/secrets/restic-password-cassie";
|
||||||
|
environmentFile = "/secrets/restic-env-cassie";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue