synchronize host or remote filesystem with filesystem
This call may be used to copy or synchronize the filesystem on the host or on a remote computer with the filesystem within libguestfs. This uses the rsync(1) program which uses a fast algorithm that avoids copying files unnecessarily.
This call only works if the network is enabled. See set_network or the *--network* option to various tools like guestfish(1).
Files are copied from the remote server and directory specified by remote
to the destination directory dest
.
The format of the remote server string is defined by rsync(1). Note that there is no way to supply a password or passphrase so the target must be set up not to require one.
The optional arguments are the same as those of rsync.
This function depends on the feature "rsync". See also feature_available .
this |
A GuestfsSession object |
optargs |
a GuestfsRsyncIn containing optional arguments |
true on success, false on error |