conmac863
asked on
copy only changed files
Hi All.
I have a client that is using an application to scan documents. We are then putting a copy of these on to an external drive for a backup and then taking off site.
I am currently running a batch file that basically runs the xcopy command with /D. Worked great in the beginning but now my data files are getting up in the area of 40 gigs. This takes over an hour to check the date on each file and decide whether to move to the external drive or not.
Is there a program that would run as a TSR that would create a list of new or changed files for a certain dir or drive?
Or is there a better way to program my batch file to track changes?
Thanks in advance.
Sean
Not sure how to assign points. Hard for me but probably pretty simple for others.
I have a client that is using an application to scan documents. We are then putting a copy of these on to an external drive for a backup and then taking off site.
I am currently running a batch file that basically runs the xcopy command with /D. Worked great in the beginning but now my data files are getting up in the area of 40 gigs. This takes over an hour to check the date on each file and decide whether to move to the external drive or not.
Is there a program that would run as a TSR that would create a list of new or changed files for a certain dir or drive?
Or is there a better way to program my batch file to track changes?
Thanks in advance.
Sean
Not sure how to assign points. Hard for me but probably pretty simple for others.
Robocopy.exe from the Server 2003 Resource Kit Tools is very good for this kind of thing. It can run as a TSR if you use the /MON or /MOT switches.
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=9D467A69-57FF-4AE7-96EE-B18C4790CFFD
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=9D467A69-57FF-4AE7-96EE-B18C4790CFFD
ASKER
Thanks emoreau. I will look at the code and see if it is something I would be able to do.
Thanks to you too Shift-3. I d/l the software and will give it a try as well. Would be great as the data is on a server 2003 box. Wonder if it will work on any other OS? Will try it. If not I will be back to creating my own program and looking closely at emoreau's code.
I appreciate the quick response. If no more responses by E.O.D. I will split points.
Thanks to you too Shift-3. I d/l the software and will give it a try as well. Would be great as the data is on a server 2003 box. Wonder if it will work on any other OS? Will try it. If not I will be back to creating my own program and looking closely at emoreau's code.
I appreciate the quick response. If no more responses by E.O.D. I will split points.
ASKER
Shift-3,
looking at the info for robocopy it looks like it needs to stay connected to the remote source and will update as changes are made. I should have been clearer in my original post.
We do weekly maintenance at this client and bring the external drive, copy data, and take the drive with us.
In my mind I see a text file that copies the location of all new and modified files. Then when I run my batch file it would look at that text file and copy just the files listed? Does that make sense?
looking at the info for robocopy it looks like it needs to stay connected to the remote source and will update as changes are made. I should have been clearer in my original post.
We do weekly maintenance at this client and bring the external drive, copy data, and take the drive with us.
In my mind I see a text file that copies the location of all new and modified files. Then when I run my batch file it would look at that text file and copy just the files listed? Does that make sense?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok Shift-3 I will give that a try on my next visit.
Thanks for your help.
Sean
Thanks for your help.
Sean
I wrote a small application in VB.Net that does that. See the article in March 2006 from http://emoreau.s2i.com/
Cheers!