LXC.EXPORT(1)

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

πŸ’… NAME

lxc-export β€” export instance backups, bestie. That's it, that's the whole vibe ✨

Oh and hey, you're reading a page from LXD - Command line client(1) β€” the LXD command line client manual, aka where all the good stuff lives πŸŽ€


✨ SYNOPSIS ✨

lxc export [:] [target] [--instance-only] [--optimized-storage] [flags]

🌸 DESCRIPTION 🌸

Description:

Export instances as backup tarballs 🫢 That's literally the whole job β€” you point it at an instance, it hands you back a tarball. Iconic.


πŸ’– OPTIONS πŸ’–

  • --compression="" β€” which compression algorithm to use. Set it to none if you want it uncompressed, no cap 🌈
  • --export-version="" β€” wanna use a different metadata format version than the latest one the server supports? This is your girl. It's closing quotes above, iykyk.
  • --instance-only[=false] β€” whether or not to only back up the instance itself, without the snapshots πŸ‘€ Defaults to false, so snapshots come along unless you say otherwise.
  • --optimized-storage[=false] β€” use the storage driver's optimized format. Heads up though: backups made this way can only be restored on a similar pool ⚠️ not a portable lil tarball, so think before you commit fr fr. Defaults to false.

πŸ¦‹ OPTIONS INHERITED FROM PARENT COMMANDS πŸ¦‹

These ones aren't even hers, she's just borrowing them from the parent command 🧚

  • --debug[=false] β€” show all the debug messages. All of them. Every last one πŸ’€ Defaults to false.
  • --force-local[=false] β€” force using the local unix socket. Defaults to false.
  • -h, --help[=false] β€” print help. The classic. Defaults to false.
  • --project="" β€” override the source project πŸŽ€
  • -q, --quiet[=false] β€” don't show progress information. For when you want peace and quiet, lowkey. Defaults to false.
  • --sub-commands[=false] β€” use this with help or --help to view sub-commands. Defaults to false.
  • -v, --verbose[=false] β€” show all information messages. Chatty era πŸ’¬ Defaults to false.
  • --version[=false] β€” print the version number. Defaults to false.

πŸ”₯ EXAMPLE πŸ”₯

lxc export u1 backup0.tar.gz
    Download a backup tarball of the u1 instance.

Look at that. u1 goes in, backup0.tar.gz comes out. Slay πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

lxc(1) β€” go read the main character's page too, bestie 🫢


⭐ HISTORY ⭐

22-Aug-2026 β€” Auto generated by spf13/cobra. Not me being a whole auto-generated icon 😭


πŸ’œ That's the whole page, you ate that. Now go export something and back it up like the responsible queen you are. Periodt.
πŸ“¦ where this page comes from