Is there a "pretend" option in rsync that will just show the transfers it is going to do without actually doing any transfers? Or even better, after it shows the transfers it is about to do to prompt if user would like to proceed. Sort of like "emerge --pretend" and "emerge --ask" in Gentoo package management. Thanks, Roumen. -- View this message in context: http://www.nabble.com/%22pretend%22-option-in-rsync--tp20097334p20097334.html Sent from the Samba - rsync mailing list archive at Nabble.com.
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
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 >-- View this message in context: http://www.nabble.com/%22pretend%22-option-in-rsync--tp20097334p20103887.html Sent from the Samba - rsync mailing list archive at Nabble.com.
Possibly Parallel Threads
- script/generate --pretend; Won''t
- samba 3 as a pretend DC?
- [PATCH] conn: Pretend to be a serial terminal, so sgabios doesn't hang.
- [PATCH v3 05/11] conn: Pretend to be a serial terminal, so sgabios doesn't hang.
- Re: [PATCH v3 05/11] conn: Pretend to be a serial terminal, so sgabios doesn't hang.