paperless and postgresql get a synchronized dataset.
This commit is contained in:
parent
3ad0baf9da
commit
4bd6004b89
2 changed files with 28 additions and 1 deletions
|
@ -4,9 +4,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
commands.service2 = {
|
commands.service2 = {
|
||||||
source = "zroot/services2";
|
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 = [
|
commonArgs = [
|
||||||
|
# Does not create new snapshot, only transfers existing
|
||||||
"--no-sync-snap"
|
"--no-sync-snap"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -105,6 +105,24 @@ in
|
||||||
"com.sun:auto-snapshot:daily" = toString true;
|
"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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue