omb
asked on
Copy just changed files
I would like to use a util which will copy just the changed files since my last copy. Basically, I would like to copy a large data amount from a datashare on a server over to a NAS device. After the initial copy, I just would like any changed files from the source (server share) to the destination (NAS) in order to minimise the traffic. A sync tool would also be fine.
I know about xcopy and heard of robocopy - are these OK or is there something better? I am looking for a no-cost solution along with switches etc.
Many thanks
I know about xcopy and heard of robocopy - are these OK or is there something better? I am looking for a no-cost solution along with switches etc.
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your comments. I think I would like to go the robocopy way - is there a script that I could you (or certain switches you know) which would copies data from the fileserver to the NAS? The destination NAS would hold a full mirror, but when robocopy is run repeatedly will only copy changed files...
Any ideas / tips?
Any ideas / tips?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great comments and links - many thanks. My script looks like:
======== paste =========
@ECHO OFF
SETLOCAL
SET _source=\\serv1\d$\share1\
SET _dest=\\nas1\backup\serv1\ d\share1\
SET _what= /COPY:DAT /B /MIR /TEE
SET _options=/R:3 /W:3 /LOG:backup_NAS1.txt
ROBOCOPY %_source% %_dest% %_what% %_options%
======== paste =========
Works great.
======== paste =========
@ECHO OFF
SETLOCAL
SET _source=\\serv1\d$\share1\
SET _dest=\\nas1\backup\serv1\
SET _what= /COPY:DAT /B /MIR /TEE
SET _options=/R:3 /W:3 /LOG:backup_NAS1.txt
ROBOCOPY %_source% %_dest% %_what% %_options%
======== paste =========
Works great.
Excellent, thanks for posting that!
FE
FE
ASKER
Just noticed that my robocopy has finished - but not all files has been copied.
Source: 149,862 files; 7,327 folders, 258GB
Destination: 147,796 files; 7,297 folders, 257GB
How can this be possible - what could have gone wrong? Any idea why 2,066 files were not copied?
Source: 149,862 files; 7,327 folders, 258GB
Destination: 147,796 files; 7,297 folders, 257GB
How can this be possible - what could have gone wrong? Any idea why 2,066 files were not copied?
check the log (might be a permissions problem..just guessing.)
Using the /E /mir options seems to copy all the files again. Any ideas on how to copy just the changed files?
Robocopy is a great tool, BTW!