Robocopy /RH 运行 结束时间参数
Robocopy /RH Run End Time Parameter
我正在尝试了解 Robocopy 参数 /rh:hhmm-hhmm 的参数。
"Specifies run times when new copies may be started."
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
robocopy C:\Source C:\Destination /MIR /rh:1500-1800 .
这是否意味着作业在特定时间开始,如果到结束时间没有完成,它将停止?那么如果它有 100 个文件要复制,而到 3:00 下午(1800)只复制了 50 个,它会停止吗?
是的。根据 this article,Robocopy 只会在指定的时间范围内进行复制。它会在到达结束时间时暂停复制。
using the /RH:hhmm-hhmm switch. This tells Robocopy that it can only copy files between the hours/minutes of the first "hhmm" and the second "hhmm". There are, of course, three scenarios here.
1)
If the timeframe specified with /RH has already passed, Robocopy will remain paused until the time occurs the next day.
2)
If the current system time is within the boundaries established with /RH then the copy occurs immediately.
3)
Finally, if the timeframe specified with /RH is in the future, Robocopy remains paused until the time occurs, and then the copy is performed.
我正在尝试了解 Robocopy 参数 /rh:hhmm-hhmm 的参数。
"Specifies run times when new copies may be started."
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
robocopy C:\Source C:\Destination /MIR /rh:1500-1800 .
这是否意味着作业在特定时间开始,如果到结束时间没有完成,它将停止?那么如果它有 100 个文件要复制,而到 3:00 下午(1800)只复制了 50 个,它会停止吗?
是的。根据 this article,Robocopy 只会在指定的时间范围内进行复制。它会在到达结束时间时暂停复制。
using the /RH:hhmm-hhmm switch. This tells Robocopy that it can only copy files between the hours/minutes of the first "hhmm" and the second "hhmm". There are, of course, three scenarios here.
1) If the timeframe specified with /RH has already passed, Robocopy will remain paused until the time occurs the next day.
2) If the current system time is within the boundaries established with /RH then the copy occurs immediately.
3) Finally, if the timeframe specified with /RH is in the future, Robocopy remains paused until the time occurs, and then the copy is performed.