LXC.RESTORE(1)

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

πŸ’… 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 --help to 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