Help on XCOPY

Status
Not open for further replies.

gogo76

Solid State Member
Messages
10
Hi,

I was wondering if anyone might be able to help me with XCOPY.

I have currently been copying folders and files from one place to another place via VPN using xcopy for files backup purpose.

Now, due to a large size of data to be transfered across, i don't want xcopy to copy the files that haven't been modified. In another words, I want to copy just the ones that are modified not all of them because it could take 3 or 4 days to transfer it all.

This is what i have been typing in the DOS

xcopy d:/projects/* //fileserver/projects \s\e

However, when i added in \m as follows

xcopy d:/projects/* //fileserver/projects \s\e\m
0 files copied

it said 0 files when there are folders and files.

i understand that \m applied to files only. If i ignore the \m, then, it will always copy the same file even when there is no modification made for that particular file. It'd be a waste of time.

My question is that how to copy only those folders that have their files modified across and ignore those that have no modification. This way, i coud cut down the amount of transfer time.

Thank you for your help in advance.
 
/U will update the file that already exists in the destination.

/A Copies files with the archive attribute set, doesn't change the attribute

/M Copies files with the archive attribute set, turns off the archive attribute.


Hope that helps!
 
Status
Not open for further replies.
Back
Top Bottom