You are here: Supporting Documents > everRun Command Line Interface Reference > AVCLI Command Descriptions > vm-export

vm-export

Usage

avcli vm-export --name name [--folder name] [--use-snapshot] [--silent] [--config-only] [--data][--description] [--throttle] [--compress] [--use-https]

Description

The vm-export command exports the VM.

Options

--name name The name or ID of the VM to export.
--folder name The destination folder. By default, this is the name of the VM.

--use-snapshot

Export using the VM's pre-existing snapshot. When you use a snapshot to export, the complete snapshot is exported, and you cannot specify --config-only or --data.
--silent Suppress output.

--config-only

 

Export the VM's configuration without any data. You cannot specify this option with --use-snapshot.
--data Export data only for the specified volumes. You cannot specify this option with --use-snapshot.
--description The user-specified description for this export.
--throttle

Slow down the import/export operation. Valid values are:

  • none: Do not use throttling. This is the default value.
  • low: Slow down by about 25%.
  • medium: Slow down by about 50%.
  • high: Slow down by about 75%.
--compress

Enable server side compression (such as gzip) of the exported volume data. By default, compression is off.

Note: Compression is very CPU-intensive and can slow down your export by a factor of 3 or more in some cases.
--use-https Use secure HTTPS transport instead of the default streaming method (HTTP transport). Streaming over HTTPS provides slower performance than HTTP but is much more secure.

Examples

$ avcli vm-export --name vm1
$ avcli vm-export --folder /path/exported-vms/vm1 --name vm1
$ avcli vm-export --config-only --name vm1
$ avcli vm-export --compress --use-https --throttle low --name vm1
$ avcli vm-export --use-snapshot --throttle high --name vm1
$ avcli vm-export --data volume1 volume2 --name vm1
of