Add minecraft-2 to backup
This commit is contained in:
parent
51a3f6a1df
commit
c02faca6fc
@ -66,6 +66,10 @@
|
||||
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKC1pw7u/LcriXMt9mRhjjw7IvKh3Hfj2R6sZbybk5x6 web-2"];
|
||||
path = "/mnt/clerie-backup/web-2";
|
||||
};
|
||||
minecraft-2 = {
|
||||
authorizedKeys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3GLVwBZnwZhjZOZSzDnaPsQ00ak47lJ2dpmtIkBqgHDhwlo1jL83izdGysSqL0Pm1xDTy5dX52WWp4B2xr/M5QAj2pCymbRCb+doLQxc59TXsL0a6KhmMC3pdpERRukyh2QR4urVzSGu33ZnL7pIjc4kkiBeblSGm01HdHImbjbFEGO0smHJ12Zem7zhgzmHBE1fPgVTpLx1QeQlMvSQSASLrinj3zIPpDwtUaMqx1d0C3xgijSysNaZzBLVBAhMrMoCOueMhA0o/t3irnAjBzxPSomZqNAYBrZdIYL4zAj/lyJEz3+Bki0VaxR5woSVyQ9N3FKhyCqNrouCdaKbet76yIPvIixug4+E9oYXs+Iaj8ywcYh605sKMKGoeNJH7OFIl8H0SjSXRtef3q3lD0VSJUzK7fAqL8t3tBSiYuU4n5CCYeCEOedqPu8ATqR0t5riVPZLQO6L2r/2Q5Mjy8/ZZkBMFB0/iK2dXMbX+AYWZ4JnPiGRomjkPKiJXnmE= root@minecraft-2"];
|
||||
path = "/mnt/clerie-backup/minecraft-2";
|
||||
};
|
||||
};
|
||||
|
||||
# fix borgbackup primary grouping
|
||||
|
@ -34,6 +34,24 @@ in {
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 25565 25566 25568 ];
|
||||
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
clerie.monitoring = {
|
||||
enable = true;
|
||||
id = "202";
|
||||
|
Loading…
Reference in New Issue
Block a user