DISNIX-MIGRATE(1)

πŸ“¦ version 0.10.2, in nixos 26.05, nixpkgs unstable

πŸ’… 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 to 1 it 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 Β© 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