Link to home
Start Free TrialLog in
Avatar of omb
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
Avatar of Fatal_Exception
Fatal_Exception
Flag of United States of America image

hmm.. I suppose you might use a backup utility (even ntbackup) and make incremental (or differential) backups of the data, then Restore them to the NAS device...  I see no reason why this would not work, although I have never tried it...

Robocopy is a great tool, BTW!
ASKER CERTIFIED SOLUTION
Avatar of NJComputerNetworks
NJComputerNetworks
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of omb
omb

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of omb

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.
Excellent, thanks for posting that!

FE
Avatar of omb

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?
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?