Robocopy and the MOT switch for scheduled jobs
Posted on 2005-04-20
We are planning on using robocopy to copy the contents of an entire directory from one server to another but it must be run once a day at 10 PM. I have looked into the MOT switch but I have two questions:
1. How can I make robocopy run at 10 PM exactly? The MOT switch identifies the minimum time in minutes that must elapse before running again. In order to accomplish this do I have to start robocopy at 10 PM and then set the /MOT:m value to 1440? I saw something on using the /RH switch, but how exactly would we implement it for our purpose?
2. What if the server is rebooted? Does robocopy start up automatically? I doubt it, so how do I ensure my special robocopy.exe command is started every 24 hours?