LXC.SNAPSHOT(1)
πΈ 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--helpto 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
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms