On Fri, Aug 03, 2012 at 07:25:09PM +0300, Evaggelos Balaskas wrote:
but with guestfish
<fs> /usr/bin/rsync /boot.ini localdir/ /usr/bin/rsync: unknown command
You can try it in virt-rescue first, because guestfish <> virt-rescue: http://libguestfs.org/guestfs-faq.1.html#whats-the-difference-between-guestf... Assuming it works in 'virt-rescue --network', which it ought to, you can then try running it from guestfish using the debug backdoor, also described in the FAQ entry above. Something like this, not tested: guestfish <<EOF add-domain guest readonly:true set-network true run [...some mount-ro commands here...] debug sh "rsync /local server:/remote" EOF Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org