LXC.STORAGE.VOLUME.IMPORT(1)

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

✨ NAME ✨

okay so this is lxc-storage-volume-import β€” the LXD command line client (section 1, bestie πŸ’…) β€” and it imports storage volumes. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

lxc storage volume import [:]  [] [flags]

like, exactly that. yes there are some empty [] bits in there β€” that's what the page says, so that's what you get. no cap, I'm not making anything up 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk, here's what it does:

Import custom volume backups, iso images, or tarballs.

that's it. that's the function. it's giving "one job, does it well" πŸ’–


✨ OPTIONS ✨

  • --target="" β€” the cluster member name 🏷️
  • --type="" β€” what kind of file you're importing. valid options are:
    • backup: a custom volume backup β€” this is the default option πŸ’…
    • iso: an iso image, and it gets imported as an iso volume πŸ“€
    • tar: a tarball, and it gets imported as a custom filesystem volume πŸ“¦

🧚 OPTIONS INHERITED FROM PARENT COMMANDS 🧚

these are the ones it gets from its parent command, so they're always vibing in the background:

  • --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 --help to view sub-commands 🌿
  • -v, --verbose[=false] β€” show all information messages πŸ—£οΈ
  • --version[=false] β€” print version number πŸ”’

πŸ”₯ EXAMPLE πŸ”₯

lxc storage volume import default backup0.tar.gz
          Create a new custom volume using backup0.tar.gz with included snapshots as the source.

so yeah β€” you point it at default and backup0.tar.gz, and it creates a shiny new custom volume from that tarball, with the included snapshots as the source. iconic. periodt πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • lxc-storage-volume(1) β€” go read that one too, iykyk 🫢

🌈 HISTORY 🌈

  • 22-Aug-2026 β€” auto generated by spf13/cobra πŸ€–

okay bestie that's the whole page!! remember: every flag matters, defaults are false unless it says otherwise, and backup is the default --type if you don't pick one πŸ’…βœ¨

auto generated by spf13/cobra Β· Aug 2026 Β· LXD - Command line client(1) β€” mwah, go import something cute πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from