Robocopy Mirror Backup gone awry

Posted by Aznfin on Super User See other posts from Super User or by Aznfin
Published on 2010-05-31T16:37:24Z Indexed on 2010/05/31 16:43 UTC
Read the original article Hit count: 421

I have created a simple batch file script for running Robocopy. It is set to make a backup of my user account folder to my external hard drive.

Here's the parameters for Robocopy:

ROBOCOPY "C:\Users\Finnly" "F:\Backups\Finnly (Backup)" /ZB /COPY:DAT /DCOPY:T /MIR /256 /MT:32 /XF *.log *.log* *.dat *.tmp *.temp *.old "ntuser*" "SyncToy*" "UpgKit.txt" ".recently-used.xbel" /XD ".gimp-2.6" ".thumbnails" ".VirtualBox" "AppData" "Application Data" "Adobe" "Camtasia Studio" "Cookies" "CyberLink" "DivX Movies" "DVD Architect Pro 5.0 Projects" "dwhelper" "GTA San Andreas User Files" "Lightroom" "Local Settings" "NetHood" "PrintHood" "Scripts" "temp" "Templates" "The KMPlayer" "Tracing" /R:3 /W:10 /V /TS /FP /ETA /LOG+:F:\Backups\Sync.log /TEE

For some reason when I run it, it backs up the files and then it seems to back them up again. The size of my user account directory is 18.3 GB but the backup of it occupies over 30 GB. After reading the contents of the log generated, it is obvious that it's copying files more than once. Why is this happening?

I'm running Windows Seven Home Premium 64-bit.

© Super User or respective owner

Related posts about windows-7

Related posts about command-line