Question : Robocopy Help

Hi,

At the weekend we used Robocopy to migrate data from one file server to another, it all went a little bit wrong and different comands were used compaired to what should have been used. Can you tell me what should have happened using the switches below?

Code Snippet:
1:
/V /S /E /COPYALL /MOVE /CREATE /ZB /NP /R:10 /W:30

Answer : Robocopy Help

What will have happened with these switches is not only "a little bit wrong", it puts your backup system to the test.
/v is just verbose logging.
/s and /e will copy empty subdirectories.
/copyall will copy all data, including ACLs.
/zb will copy in restartable mode and fallbackup to backup if access isn't possible otherwise.
/np will disable the progress indicator (useful if writing to a log file).
/r:10 and /w:10 sets the retry options and waiting time between retries.
Pretty commin and harmless until here.
The real problem starts with the combination of these two switches:
/create
/move
/create will only create the folder structure and 0-length "stubs" of the files; this can be used to create the directory entries as a first step *before* copying the data, to prevent fragmenting of the directory entries.
/move will move the contents of the source folder to the target folder.
The combination of these two will leave you with a bunch of 0-byte files in the target folder and an empty source folder.
Random Solutions  
 
programming4us programming4us