hosts/clerie-backup: Replicate backups with restic instead of borgbackup
This commit is contained in:
23
hosts/clerie-backup/replication.nix
Normal file
23
hosts/clerie-backup/replication.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
clerie.backup = {
|
||||
enable = true;
|
||||
targets = mkForce {
|
||||
hetzner-storage-box = {
|
||||
serverUrl = "sftp://u275370-sub2@u275370.your-storagebox.de:23";
|
||||
sshKeyFile = "/var/src/secrets/ssh/borg-backup-replication-hetzner";
|
||||
};
|
||||
};
|
||||
jobs.replication = {
|
||||
paths = [
|
||||
"/mnt/clerie-backup/cyan"
|
||||
];
|
||||
exclude = [
|
||||
"/mnt/clerie-backup/cyan/.htpasswd"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user