|
Answer» HI,
I was wondering if anyone might be able to help me here.
I've been using xcopy to perform a backup and noticed that the xcopy only copy files til the third sub-directories. I mean there are some missing files in the destination(that didnot get copied). I just happen to compare the source and the destination on the number of files copied across.
this is how my batch file looks like
c:\xcopy x:\projects\050100 \\myotherIPAddress\SharedDocs\Projects\050100 /s/e/y/m
the reason i put /m is because i simply only want to copy if the files got changed otherwise don't copy again.
Just wonder if you could give me some advice here.
Thank you in advance Look at RoboCopy perhaps ... http://www.ss64.com/nt/robocopy.html
Hope it's of some help to you.CameronY,
I thought the option /D is for modified files only. I can't find the /m option documented anywhere. Are you using XP?
http://dostips.cmdtips.com/DosCommandRef.htm#xcopyAll, I don't use XCOPY , I use ROBOCOPY.
However, the /m option in XCOPY reads ... /M Copies only files with the archive attribute set, turns off the archive attribute.
I use ROBOCOPY on the following OS's ... Win2K (std & ADV SERVER), Win2K3 (various flavours), WixXP Pro. All without issues.
Hope that helps some.Sorry, this question really was for [highlight]associates[/highlight] No probs.
Happy to have gotten you an answer anyways.
Having another look, you should try the following:
c:\xcopy x:\projects\050100 \\myotherIPAddress\SharedDocs\Projects\050100 /s/e/y/D
As [highlight]DosItHelp[/highlight] illuded to. You can REMOVE the /M UNLESS you are concentrating on the archive attribute.
Hope that solves your PROBLEM.
|