Mark Lanctot wrote:

It's because it's erroring out at the end.  It tries, errors, waits 30
seconds, tries again, errors, waits 30 seconds etc.  I have to kill the
process.

I'm pretty sure if it completed successfully I'd get a report.

You need to tell it to not retry open files a million times (really, that's the default retry number: 1000000). Or you can tell it skip particular files/folders that you know you don't want backed up or that will always be open/locked. I have a robocopy script that backs up my Firefox application data directory and I have it skip the cache folder as well as the ".lock" file so all runs smoothly.

Add these options:

/R:n : number of Retries on failed copies - default is 1 million.
/W:n : Wait time between retries - default is 30 seconds.

So you could do:

/R:0

That will cause robocopy to report on files it can't copy but then just skip them.

To always skip particular files or directories (like that System Volume Information folder you mentioned) that you know ahead of time you aren't interested in:

/XF file [file]... : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]... : eXclude Directories matching given names/paths.

XF and XD can be used in combination  e.g.
   ROBOCOPY c:\source d:\dest /XF *.doc *.xls /XD c:\unwanted /S

It's a powerful utility, but yes, there are an awful lot of options.

http://www.ss64.com/nt/robocopy.html

SBB








Visit our website at http://www.ubs.com

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to