add new zfs resources
This commit is contained in:
parent
11b63ec89e
commit
5c0a486388
2 changed files with 46 additions and 11 deletions
|
@ -115,8 +115,9 @@ in
|
|||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot" = "false";
|
||||
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||
"com.sun:auto-snapshot:daily" = true;
|
||||
"com.sun:auto-snapshot:weekly" = true;
|
||||
"com.sun:auto-snapshot:montly" = true;
|
||||
};
|
||||
};
|
||||
"nextcloud" = {
|
||||
|
@ -125,9 +126,10 @@ in
|
|||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot" = "false";
|
||||
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||
"com.sun:auto-snapshot:montly" = "true,keep=48";
|
||||
"com.sun:auto-snapshot:hourly" = true;
|
||||
"com.sun:auto-snapshot:daily" = true;
|
||||
"com.sun:auto-snapshot:weekly" = true;
|
||||
"com.sun:auto-snapshot:montly" = true;
|
||||
};
|
||||
};
|
||||
"legacy" = {
|
||||
|
@ -136,6 +138,7 @@ in
|
|||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot:montly" = true;
|
||||
};
|
||||
};
|
||||
"borg" = {
|
||||
|
@ -144,8 +147,9 @@ in
|
|||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot" = "false";
|
||||
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||
"com.sun:auto-snapshot:daily" = true;
|
||||
"com.sun:auto-snapshot:weekly" = true;
|
||||
"com.sun:auto-snapshot:montly" = true;
|
||||
};
|
||||
};
|
||||
"services" = {
|
||||
|
@ -154,9 +158,9 @@ in
|
|||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot" = "false";
|
||||
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||
"com.sun:auto-snapshot:montly" = "true,keep=48";
|
||||
"com.sun:auto-snapshot:daily" = true;
|
||||
"com.sun:auto-snapshot:weekly" = true;
|
||||
"com.sun:auto-snapshot:montly" = true;
|
||||
};
|
||||
};
|
||||
"services/gitea" = {
|
||||
|
@ -167,6 +171,32 @@ in
|
|||
compression = "lz4";
|
||||
};
|
||||
};
|
||||
"robi" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/robi";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot:daily" = true;
|
||||
"com.sun:auto-snapshot:weekly" = true;
|
||||
};
|
||||
};
|
||||
"robi/media" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/robi/media";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
};
|
||||
};
|
||||
"robi/torrent" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/robi/torrent";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -26,7 +26,12 @@
|
|||
media = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@robi:/media/syncthing/media/";
|
||||
dst = "/media";
|
||||
dst = "/robi/media";
|
||||
};
|
||||
torrent = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@robi:/media/torrent/downloads/";
|
||||
dst = "/robi/torrent";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue