LXC.SNAPSHOT(1)

πŸ“¦
version 5.21.6 Β· 3 versions
, in opensuse-leap 16.0

🌸 LXD - Command line client(1) 🌸

Hey bestie πŸ’– so this is the lxc command-line client page β€” the whole manual is literally called LXD - Command line client(1) β€” and this particular slice of it is all about lxc snapshot. It's short, it's sweet, and it's about to become your new fave.


✨ NAME ✨

lxc-snapshot β€” Create instance snapshots πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

lxc snapshot [:] [] [flags]

πŸ’… DESCRIPTION πŸ’…

Description: Create instance snapshots. That's the whole assignment, and it ate πŸ’…

When --stateful is used, LXD attempts to checkpoint the instance's running state, including process memory state, TCP connections, ... β€” like, the whole live vibe of the thing gets frozen in time 🧊✨ (yes, the original really does trail off with ... at the end, it's giving dramatic pause).


πŸ”₯ OPTIONS πŸ”₯

  • --no-expiry[=false] β€” Ignore any configured auto-expiry for the instance. Your snapshot stays forever, no countdown clock, no expiry anxiety 🫢
  • --reuse[=false] β€” If the snapshot name already exists, delete and create a new one. Brutal but efficient, ngl πŸ’€
  • --stateful[=false] β€” Whether or not to snapshot the instance's running state. The memory, the connections, all of it πŸ”₯

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

These are the ones you get for free from the parent command, no cap:

  • --debug[=false] β€” Show all debug messages πŸ›
  • --force-local[=false] β€” Force using the local unix socket
  • -h, --help[=false] β€” Print help
  • --project="" β€” Override the source project
  • -q, --quiet[=false] β€” Don't show progress information 🀫
  • --sub-commands[=false] β€” Use with help or --help to view sub-commands
  • -v, --verbose[=false] β€” Show all information messages
  • --version[=false] β€” Print version number

🌈 EXAMPLE 🌈

Okay so here's where it gets fun ✨

lxc snapshot u1 snap0

Create a snapshot of "u1" called "snap0". Iconic, simple, done πŸ’–

lxc snapshot u1 snap0 < config.yaml

Create a snapshot of "u1" called "snap0" with the configuration from "config.yaml". Look at you piping config straight in, main character energy fr fr πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • lxc(1) β€” the mothership 🫢

πŸŽ€ HISTORY πŸŽ€

22-Aug-2026 β€” Auto generated by spf13/cobra


Lowkey important: this whole page is auto generated by spf13/cobra, so don't come for the formatting bestie, the robots did it πŸ€–πŸ’…

Ok that's the whole thing! Go forth and snapshot responsibly, and remember β€” it's giving LXD - Command line client(1), Aug 2026, auto generated by spf13/cobra πŸŒΈβœ¨πŸ’œ

πŸ“¦ where this page comes from