Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange issue with Robocopy

Status
Not open for further replies.

cybtech

IS-IT--Management
Jun 5, 2003
21
FR
Hi,

We're experiencing a really strange issue with robocopy.

It doesn't move all the file that are in the source directory. It only moves only certain files without any logic about which files are choosen...

The files are generated from SAP on the SAP server. They are put in a folder that is exported via NFS. This exported folder is mounted on a Windows 2012 R2 server (drive letter Z:\).

We use Robocopy to move the files from Z:\Folder\subfolder to D:\winfolder\winsubfolder.

No fancy option is used. The commande is just "robocopy Z:\Folder\subfolder D:\winfolder\winsubfolder FILES* /MOV".

Last time we tried that, it only moved 10 files out of 42, some of those were there for more than 24 hours...

We already tried different things ("dir Z:\Folder\subfolder > nul" before launching the robocopy command, the "/fft" option, "/is" option...) but nothing worked...

We really don't understand what's going on...

It works fine with the command "move".

Any idea?

Arnaud
 
Is it possible the files are locked or in use? That seems the most likely issue.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Hi, the files are not locked nore are they in use. That's the tricky part of it.
All the files are already there. "move" sees them all and move them nicely. Robocopy won't even see them all, only a few... And there's no logic to which files are moved or not... We've tried several times with different results.
 
If you try the command again, do soem of the files that didn't get moved move? Or does it just consistently not move some files?

Try adding a '[tt]/l[/tt]' (ell) to the command line. That will list the files that match the criteria. Also maybe a '[tt]/x[/tt]' to also list files that are not selected. That may help figure out why they aren't being selected.

You should look at some of the "fancy options", specifically related to logging. They may be able to give you more information on what's happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top