DISNIXOS-CLEAN-SNAPSHOTS(1)

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

πŸ’… DISNIXOS-CLEAN-SNAPSHOTS(1) β€” the glow-up ✨

okay so bestie, you're looking at disnixos-clean-snapshots</p> from the User Commands manual, and honestly? she's a little janitor icon and we stan her πŸ§ΉπŸ’–


🌸 NAME 🌸

disnixos-clean-snapshots</p> β€” deletes the older generations of snapshots across a whole network of machines. it's giving "spring cleaning but make it distributed" πŸ¦‹


✨ SYNOPSIS ✨

disnixos-clean-snapshots [OPTION] network_nix [ network2_nix ... ]

like, you pass one or more Nix expressions describing your network and she goes to work πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so the way this works: disnixos-clean-snapshots removes all older snapshot generations that are stored on the machines in the network. every machine, every old generation, gone. she is thorough and she does not miss πŸ”₯


🌈 OPTIONS 🌈

  • --interface=INTERFACE β€” path to the executable that talks to a Disnix interface. defaults to disnix-ssh-client 🫢
  • --target-property=PROP β€” the target property of an infrastructure model that tells her how to connect to the remote Disnix πŸ‘‘
  • --keep=NUM β€” how many snapshot generations to keep. defaults to: 1. so yeah, she keeps exactly one unless you say otherwise πŸ’€
  • -C, --container=CONTAINER β€” name of the container to filter on πŸ“
  • -c, --component=COMPONENT β€” name of the component to filter on 🌸
  • --use-nixops β€” use NixOps instead of Disnix for infrastructure deployment. main character energy switch-up ⭐
  • -h, --help β€” shows the usage of this command to the user. always read the help bestie 😭
  • -v, --version β€” shows the version of this command to the user πŸ’œ

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • DISNIX_CLIENT_INTERFACE β€” sets the client interface (which defaults to disnix-ssh-client) πŸ’–
  • DISNIX_TARGET_PROPERTY β€” specifies which property in the infrastructure Nix expression says how to connect to the remote interface (defaults to: hostname) πŸŽ€
  • DISNIXOS_USE_NIXOPS β€” when set to 1, it specifies that NixOps is used to take care of the infrastructure deployment, so that it properly interprets NixOps configurations and uses NixOps tooling instead of Disnix's deployment facilities. very demure, very mindful, very environment-variable 🧚

Copyright © 2008-2022 Sander van der Burg 🌟


ngl bestie, --keep=NUM defaulting to 1 is the whole vibe check here β€” double-check you actually want to nuke those gens before you run her πŸ™ˆ

and that's the tea 🍡 β€” this page came straight from disnixos-clean-snapshots (disn...), dated January 1980, living in the DISNIXOS-CLEAN-SNAPSHOTS(1) section of the manual. slay, bye πŸ’…βœ¨

πŸ“¦ where this page comes from