overhaul of backup system
This commit is contained in:
parent
2bdeadfa7a
commit
912308dced
19 changed files with 226 additions and 196 deletions
|
|
@ -17,16 +17,16 @@
|
|||
};
|
||||
|
||||
services.borgbackup.jobs."mailserver" = {
|
||||
repo = "ssh://u506783@u506783.your-storagebox.de:23/./mailserver";
|
||||
repo = config.distrust.backups.borgRepository + "/./mailserver";
|
||||
environment = {
|
||||
BORG_RSH = "ssh -i ${config.age.secrets."borg_ed25519".path} -o 'StrictHostKeyChecking=no'";
|
||||
BORG_RSH = "ssh -i ${config.distrust.backups.borgSSHKey} -o 'StrictHostKeyChecking=no'";
|
||||
};
|
||||
paths = [
|
||||
"/var/vmail/ldap"
|
||||
];
|
||||
encryption = {
|
||||
mode = "keyfile";
|
||||
passCommand = "cat ${config.age.secrets."borg_pass".path}";
|
||||
passCommand = config.distrust.backups.borgPassCommand;
|
||||
};
|
||||
compression = "auto,lzma";
|
||||
startAt = "daily";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue