Re: "pretend" option in rsync? - Tools

This is a discussion on Re: "pretend" option in rsync? - Tools ; Great! Thank you Matt.
Matt McCutchen-7 wrote:
>
> 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 ...

Re: "pretend" option in rsync?

Great! Thank you Matt.

Matt McCutchen-7 wrote:
>
> 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,
> --out-format, etc.).
>
>> 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.
>
> Matt
>
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>