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
This commit is contained in:
parent
e719550694
commit
90533bfde2
@ -357,6 +357,12 @@ in
|
|||||||
default = false;
|
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 ''
|
features.recvu = mkEnableOption ''
|
||||||
recvu feature which uses <literal>-u</literal> on the receiving end to keep the destination
|
recvu feature which uses <literal>-u</literal> on the receiving end to keep the destination
|
||||||
filesystem unmounted.
|
filesystem unmounted.
|
||||||
@ -458,5 +464,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = with maintainers; [ infinisil ];
|
meta.maintainers = with maintainers; [ infinisil SlothOfAnarchy ];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user