diff --git a/nixos/machines/chungus/disko-config.nix b/nixos/machines/chungus/disko-config.nix index e91598f..a2a4517 100644 --- a/nixos/machines/chungus/disko-config.nix +++ b/nixos/machines/chungus/disko-config.nix @@ -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"; + }; + }; }; }; diff --git a/nixos/machines/chungus/rbackup.nix b/nixos/machines/chungus/rbackup.nix index 3d5788e..113aa95 100644 --- a/nixos/machines/chungus/rbackup.nix +++ b/nixos/machines/chungus/rbackup.nix @@ -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"; }; };