rsync


Description:

[ Version ( since = "1.19.29" ) ]
public bool rsync (string src, string dest, Rsync? optargs) throws Error

synchronize the contents of two directories

This call may be used to copy or synchronize two directories under the same libguestfs handle. This uses the rsync(1) program which uses a fast algorithm that avoids copying files unnecessarily.

src and dest are the source and destination directories. Files are copied from src to dest.

The optional arguments are:

archive Turns on archive mode. This is the same as passing the *--archive* flag to rsync.

deletedest Delete files at the destination that do not exist at the source.

This function depends on the feature "rsync". See also feature_available.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsRsync containing optional arguments

Returns:

true on success, false on error