incus import

Import instance backups

Synopsis

Description
Import backups of instances including their snapshots.



incus import [<remote>:] <backup file> [<new instance name>] [flags]

Examples

  incus import backup0.tar.gz
      Create a new instance using backup0.tar.gz as the source.

  incus import backup0.tar.gz u2
      Create a new instance named u2 using backup0.tar.gz as the source.

  incus import backup0.tar.gz -s pool1
      Create a new instance on the pool1 storage pool.

  incus import backup0.tar.gz -d eth0,ipv4.address=10.0.0.10 -d eth0,ipv6.address=fd42::10
      Create a new instance, overriding the static addresses of its eth0 device to match the local network.

  incus import backup0.tar.gz -c boot.autostart=true
      Create a new instance, overriding one of its configuration keys.

Options

  -c, --config    Config key/value to apply to the new instance (may be passed multiple times)
  -d, --device    New key/value to apply to a specific device (may be passed multiple times)
  -s, --storage   Storage pool name

Options inherited from parent commands

      --debug[=true|false]          Show all debug messages
      --explain[=true|false]        If the command is valid, explain its parsed arguments instead of running it
      --force-local[=true|false]    Force using the local unix socket
  -h, --help[=true|false]           Print help
      --project                     Override the source project
  -q, --quiet[=true|false]          Don't show progress information
      --sub-commands[=true|false]   Use with help or --help to view sub-commands
  -v, --verbose[=true|false]        Show all information messages
      --version[=true|false]        Print version number

SEE ALSO

  • incus - Command line client for Incus