Add jupiter storage

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-01 01:30:15 +01:00
parent 68e6eddd22
commit 88ef04def8
6 changed files with 123 additions and 71 deletions

View File

@@ -0,0 +1,29 @@
{ ... }:
{
systemd.tmpfiles.rules = [
"d /mnt/storage/private.bak 0755 root root"
"d /mnt/storage/public.bak 0755 root root"
];
services.btrbk.instances = {
mnt-storage-private = {
onCalendar = "hourly";
settings.volume."/mnt/storage" = {
subvolume = "private";
snapshot_dir = "private.bak";
snapshot_preserve_min = "latest";
snapshot_preserve = "48h 14d 4w 6m";
};
};
mnt-storage-public = {
onCalendar = "hourly";
settings.volume."/mnt/storage" = {
subvolume = "public";
snapshot_dir = "public.bak";
snapshot_preserve_min = "latest";
snapshot_preserve = "48h 14d 4w 6m";
};
};
};
}