Monday, 5 November 2012
Taking backup automatically every 5 minutes
1. Create a batch file called copy.bat with following command: (command format: xcopy source destination)
xcopy C:\inetpub\wwwroot\GYMREG \\its3\users\staff\mah\Website\GYMREG /E /Y
2. Create a new task in task scheduler and run it on every 5 minutes.
3. In order to run batch file on every 5 minutes you have to run the scheduled task with another user credential not using the user normally will be logged on. For example if you login on your pc using mah account then you should run the scheduled task using its2 or any other account.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment