nixos/simpcraft: Add backup
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 25m52s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 25m52s
This commit is contained in:
parent
32183bd331
commit
0f1de58917
@ -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" = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user