Command Promt: 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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s