We have a simple batch file that uses the xcopy command to backup one of our archives to our backup drive. The archive is very large and so it's takes a long time to run. We run the same batchfile everyday, so it's really a full backup job every time. There are 11 main folders and and a number of subdirectories under each of them. We are looking for a command that looks at the highest folder's modified date on the original archive and only backs it up if it has changed. The command should continue to drill through the folder stuctures only backing up the files that have changed. If the modified date has not changed on the folder we want it to move on. We have tried usiing switches but they still look at every file and compare the dates when it doesn't need to. If the modified date on the folder hasn't changed no files in that folder have changed either. Here is an example of what we are using. This works but we need a faster way to back it up.
set SOURCEROOT=\\Archive1
set DRIVELETTER=E:\
set DESTPATH=Databackup\Archiv
e1
xcopy %SOURCEROOT% %DRIVELETTER%%DESTPATH%Arc
hive1\ /E/C/I/H/D/Y
Start Free Trial