summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichel Weitbrecht <slothofanarchy1@gmail.com>2020-05-11 14:35:11 +0200
committerMichel Weitbrecht <slothofanarchy1@gmail.com>2020-05-11 14:35:30 +0200
commit90533bfde2494a8acff9a9f3878b97392c6c5891 (patch)
tree32b0021b1262a41e63acfdc26a070b8daf7535ca
parente719550694aa79f67ac3cfef8749b5d592fa94a9 (diff)
downloadnixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar.gz
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar.bz2
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar.lz
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar.xz
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.tar.zst
nixpkgs-90533bfde2494a8acff9a9f3878b97392c6c5891.zip
nixos/znapzend: Add oracleMode feature; add maintainer
The feature destroys snapshots one-by-one instead of all at once.
If many snapshots accumulated, destroying them all at once can fail
because the argument list is too long. See
https://github.com/oetiker/znapzend/blob/master/lib/ZnapZend/ZFS.pm#L284
-rw-r--r--nixos/modules/services/backup/znapzend.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/znapzend.nix b/nixos/modules/services/backup/znapzend.nix
index 98cd647f61a..0811b23e35a 100644
--- a/nixos/modules/services/backup/znapzend.nix
+++ b/nixos/modules/services/backup/znapzend.nix
@@ -357,6 +357,12 @@ in
         default = false;
       };
 
+      features.oracleMode = mkEnableOption ''
+        Destroy snapshots one by one instead of using one long argument list.
+        If source and destination are out of sync for a long time, you may have
+        so many snapshots to destroy that the argument gets is too long and the
+        command fails.
+      '';
       features.recvu = mkEnableOption ''
         recvu feature which uses <literal>-u</literal> on the receiving end to keep the destination
         filesystem unmounted.
@@ -458,5 +464,5 @@ in
     };
   };
 
-  meta.maintainers = with maintainers; [ infinisil ];
+  meta.maintainers = with maintainers; [ infinisil SlothOfAnarchy ];
 }