virt-copy-out1
Copy files and directories out of a virtual machine disk image.
Usage
virt-copy-out {-a
disk.img
/file | dir
[{/file | dir ...}]
localdir}
virt-copy-out {-d
domain
/file | dir
[{/file | dir ...}]
localdir}
Overview
"virt-copy-out" copies files and directories out of a virtual machine disk image or named libvirt domain.
You can give one or more filenames and directories on the command line. Directories are copied out recursively.
Examples
Download the home directories from a virtual machine:
mkdir homesvirt-copy-out -d MyGuest /home homes
Just a shell script wrapper around guestfish
This command is just a simple shell script wrapper around the guestfish(1) "copy-out" command. For anything more complex than a trivial copy, you are probably better off using guestfish directly.
Options
Since the shell script just passes options straight to guestfish, read guestfish(1) to see the full list of options.
Releases
8 releases since Debian 7 (Wheezy); the text changed 7 times.