LXC.RESTORE(1)
π NAME π
Okay bestie, welcome to lxc-restore β it Restore instances from snapshots. That's it, that's the whole job. You're basically the undo button for your containers πβ¨
(This page lives under the manual name LXD - Command line client(1), iykyk π«Ά)
β¨ SYNOPSIS β¨
lxc restore [:] [flags]
That's the whole summoning ritual, no cap π
π DESCRIPTION π
So the <blue>Description:</blue> box literally says:
Restore instances from snapshots
And then there's the golden nugget: if you pass --stateful, then the running state will be restored too. That's the whole plot twist π₯
πΈ OPTIONS πΈ
One option. One little icon. Obsessed π§
--stateful[=false]β Whether or not to restore the instance's running state from snapshot (if available). Note the (if available) bestie β it's not gonna materialise state out of thin air π
π¦ OPTIONS INHERITED FROM PARENT COMMANDS π¦
These bad boys belong to the parent command, but they still show up to the party π
--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 (and yes, the original page literally tacks two stray backticks on the end of this line β``β and we are not touching it π )-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 π
The whole workflow, start to finish, main character energy π
lxc snapshot u1 snap0
Create the snapshot.
lxc restore u1 snap0
Restore the snapshot.
Snap it, then send it back in time. Time travel but make it containerised π¦
π SEE ALSO π
lxc(1)β go read the big one, it's the whole vibe π
π HISTORY π
22-Aug-2026 β Auto generated by spf13/cobra. Not me being written by a robot π«Ά
Okay that's the whole page bestie, you're officially certified at restoring instances from snapshots πβ¨
Sign-off: this was Auto generated by spf13/cobra, born Aug 2026, and it lives happily under LXD - Command line client(1) β slay π
π¦ 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