"pretend" option in rsync?
matt at mattmccutchen.net
Wed Oct 22 02:07:51 GMT 2008
On Tue, 2008-10-21 at 12:24 -0700, rumcho wrote:
> Is there a "pretend" option in rsync that will just show the transfers it is
> going to do without actually doing any transfers?
The --dry-run option disables actually doing the transfers. You would
use it in combination with whatever output options you like (-v, -i,
> Or even better, after it shows the transfers it is about to do to prompt if
> user would like to proceed.
That is not currently implemented. One way this could work is to use
--delay-updates --delete-after and prompt the user just before the
delayed update/delete pass. If the user cancels, staged files will be
left in .~tmp~ directories in the destination, but these can easily be
deleted by a shell script.
More information about the rsync