DISNIX-SNAPSHOT(1)
π DISNIX-SNAPSHOT π
so likeβ¦ this is the disnix-snapshot manual page, section 1 of the user commands, and bestie it's about to get so good. buckle up. π
β¨ NAME β¨
disnix-snapshot β snapshots the state of components. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
disnix-snapshot [OPTION] [MANIFEST]
okay so it's giving "options first, manifest optional" energy. slay. β¨
π DESCRIPTION π
Snapshots the state of components deployed in a network of machines. literally that's the whole job and it ate. π₯
By default, this command only snapshots the state of components that are recently deactivated β i.e. the ones that are not defined in the current deployment manifest, but in the previous one. so like, the leftovers. the recently-ditched ones. π
A full snapshot of the state of the entire system can be done by providing the --no-upgrade parameter. main character energy, honestly. π
If no manifest has been provided, the last deployed one is used. Moreover, it also snapshots the entire system if no manifest is provided. As a result, simply running disnix-snapshot makes a backup of the state of the entire system. not me just typing one command and getting a whole system backup ππ
π OPTIONS π
-c,--container=CONTAINERβ Name of the container in which the mutable component is deployed. π¦-C,--component=COMPONENTβ Name of the mutable component to take snapshots from. π§-o,--old-manifest=MANIFESTβ Nix profile path where the manifest should be stored, so that Disnix knows the current configuration of a distributed system. By default it is stored in the profile directory of the user. ποΈ--no-upgradeβ Indicates that no upgrade should be performed and the state of all components should be restored. the whole system. every bit. iconic. π«--transfer-onlyβ Transfers the snapshot from the target machines, but does not actually restore them. window shopping, basically. ποΈ--depth-firstβ Snapshots components depth-first as opposed to breadth-first. This approach is more space efficient, but slower. trade-off queen. βοΈ--allβ Transfers all snapshot generations of the target machines, not the latest. give me everything π--keep=NUMβ Amount of snapshot generations to keep. Defaults to:1π-p,--profile=PROFILEβ Name of the profile in which the services are registered. Defaults to:defaultπ--coordinator-profile-path=PATHβ Path to the manifest of the previous configuration. By default this tool will use the manifest stored in the disnix coordinator profile instead of the specified one, which is usually sufficient in most cases. iykyk π«Ά-m,--max-concurrent-transfers=NUMβ Maximum amount of concurrent closure transfers. Defauls to:2(yes bestie,Defauls, we're keeping the typo fr fr π β the number is2and that's what matters)-h,--helpβ Shows the usage of this command to the user. the "help me bestie" flag π
π¦ ENVIRONMENT π¦
DISNIX_PROFILEβ Sets the name of the profile that stores the manifest on the coordinator machine and the deployed services per machine on each target (Defaults to:default). β¨
π COPYRIGHT π
Copyright Β© 2008-2022 Sander van der Burg
ngl, that's the whole page. no cap, no secrets, no hidden flags. go snapshot something and slay. π πΈ
okay and like, the actual sign-off: this whole thing is disnix version 0.10.2, dated January 1980 (yes, really, we love a retro timestamp π°οΈ), and it's the DISNIX-SNAPSHOT(1) page β periodt. ππ«Ά
π¦ where this page comes from
- nixos 26.05: disnix 0.10.2
- nixpkgs unstable: disnix 0.10.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms