paperless and postgresql get a synchronized dataset.

This commit is contained in:
Ingolf Wagner 2024-03-11 12:33:40 +01:00
parent 3ad0baf9da
commit 4bd6004b89
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 28 additions and 1 deletions

View file

@ -4,9 +4,18 @@
enable = true;
commands.service2 = {
source = "zroot/services2";
target = "zraid/mirror/services2";
target = "zraid/mirror/services2"; # needs to be created but not named in disko-config.nix
};
commands.paperless = {
source = "zroot/paperless";
target = "zraid/mirror/paperless"; # needs to be created but not named in disko-config.nix
};
commands.postgresql = {
source = "zroot/postgresql";
target = "zraid/mirror/postgresql"; # needs to be created but not named in disko-config.nix
};
commonArgs = [
# Does not create new snapshot, only transfers existing
"--no-sync-snap"
];
};

View file

@ -105,6 +105,24 @@ in
"com.sun:auto-snapshot:daily" = toString true;
};
};
"paperless" = {
type = "zfs_fs";
mountpoint = "/var/lib/paperless";
options = {
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot:daily" = toString true;
};
};
"postgresql" = {
type = "zfs_fs";
mountpoint = "/var/lib/postgresql";
options = {
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot:daily" = toString true;
};
};
};
};