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