DISNIX-MIGRATE(1)
π DISNIX-MIGRATE(1) β the group-chat edition
okay so bestie, welcome to disnix-migrate, a User Commands girly from the disnix family π she's the one who handles the glow-up when your services move houses.
β¨ NAME β¨
disnix-migrate β literally migrates state from services that have been moved from one machine to another π¦
πΈ SYNOPSIS πΈ
disnix-migrate [OPTION] MANIFEST
π DESCRIPTION π
so the command disnix-migrate is the one that snapshots, transfers and restores the state of services that have been moved from one machine to another. it's giving relocation era π§³β¨
ngl, most users don't need to use this command directly β and that's not a read, it's a compliment to automation. the disnix-env command will automatically invoke this command to activate the new configuration. she's the backstage main character, you're just here for the show π
π«Ά 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 π--delete-stateβ remove the obsolete state of deactivated services ποΈ--transfer-onlyβ transfers the snapshot from the target machines, but does not actually restore them (so like, the luggage arrives but nobody unpacks π)--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 π―ββοΈ--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. defaults to:2(the manpage spells it "Defauls", and honestly? iconic. we stan a typo π)-h,--helpβ shows the usage of this command to the user π«Ά
π 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)DISNIX_DELETE_STATEβ if set to1it automatically deletes the obsolete state after upgrading. (defaults to:0)DYSNOMIA_STATEDIRβ specifies where the snapshots must be stored on the coordinator machine (defaults to:/var/state/dysnomia)
π COPYRIGHT π
Copyright Β© 2008-2022 Sander van der Burg
fr fr bestie, that's the whole page β no gatekeeping, no skipped options, every flag accounted for π
mwah, that's a wrap π this little icon was brought to you by disnix 0.10.2, dated January 1980 (yes, the year is a vibe, don't question her) π β¨
π¦ 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