LXC.EXPORT(1)
π 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 tononeif 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 tofalse, 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 tofalse.
π¦ 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 tofalse.--force-local[=false]β force using the local unix socket. Defaults tofalse.-h,--help[=false]β print help. The classic. Defaults tofalse.--project=""β override the source project π-q,--quiet[=false]β don't show progress information. For when you want peace and quiet, lowkey. Defaults tofalse.--sub-commands[=false]β use this withhelpor--helpto view sub-commands. Defaults tofalse.-v,--verbose[=false]β show all information messages. Chatty era π¬ Defaults tofalse.--version[=false]β print the version number. Defaults tofalse.
π₯ 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
- 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