nixos/simpcraft: Add backup
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 25m52s

This commit is contained in:
Jack O'Sullivan 2024-01-18 12:12:06 +00:00
parent 32183bd331
commit 0f1de58917

View File

@ -106,6 +106,21 @@ in
# }; # };
}; };
services = {
borgbackup.jobs.simpcraft = {
paths = [ "/var/lib/containers/storage/volumes/minecraft_data/_data/world" ];
repo = "/var/lib/containers/backup/simpcraft";
doInit = true;
encryption.mode = "none";
compression = "zstd,10";
startAt = "*:00/10:00"; # every 10 minutes
prune.keep = {
within = "1d";
hourly = 48;
};
};
};
my = { my = {
secrets.files = { secrets.files = {
"whale2/simpcraft.env" = {}; "whale2/simpcraft.env" = {};