Pages

Tuesday, December 21, 2010

IIS LOG Replicator/Sync


IIS LOG replicator/sync

I need to copy my new log files and updated log files from my IIS server to another server every 5 minutes or so. is there built in windows tools that can do this, or free 3rd third party tolls, or a script of some sort that can handle this.  

My Solution : - You need to create a script file script.bat using xcopy command
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true
then you can schedule a task to run that script every 5 minutes.

Eg, XCOPY C:\utils\MyFile D:\Backup\CopyFile

The user you will use to execute the schedule task should have "Write" access on destination folder as well.

 ****AS IS**** ; Please apply at your own risk.

No comments:

Post a Comment