1
0

Backups for web-2

This commit is contained in:
2021-01-03 16:26:33 +01:00
parent 64a1924f4a
commit 6baadff06d
2 changed files with 22 additions and 0 deletions

View File

@@ -36,5 +36,23 @@
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.borgbackup.jobs = {
main = {
paths = [
"/var/src"
"/var/lib"
];
doInit = true;
repo = "borg@backup.clerie.de:." ;
encryption = {
mode = "repokey-blake2";
passCommand = "cat /var/src/secrets/borg/main";
};
environment = { BORG_RSH = "ssh -i /var/src/secrets/ssh/borg-main"; };
compression = "auto,lzma";
startAt = "hourly";
};
};
system.stateVersion = "21.03";
}