f24be32e69172b5abc367523d29e04c71d76497c
[libguestfs.git] / recipes / export2tar.html
1 <p>
2 This script lets you export any directory you like from a virtual
3 machine as a tarball.  For example, to export <code>/home</code>
4 from a standard Fedora or RHEL virtual machine you would do:
5 </p>
6
7 <pre>
8 export2tar guest.img /dev/VolGroup00/LogVol00 /home home.tar.gz
9 </pre>
10
11 <p>
12 <code>/dev/VolGroup00/LogVol00</code> is the partition or LV <i>inside</i>
13 the VM which contains the directory you want.
14 </p>