none
Robocopy /RH switch not working properly on Server 2008 R2 RRS feed

  • Question

  • Hi,

    I am experiencing an issue when using "Robocopy" on a 2008 R2 server with the /RH switch.

    I want to copy data from one server to another one with the servers located at different sites (headquarter and a branch office) in different time zones.

    As people in the branch office need the bandwidth to the headuarter during their office hours for the business, I wanted to copy the data off-hours (according to their time zone).

    So I initiated a robocopy session on a 2008 R2 server at the headquarter, setting the /RH switch to correspond with off-hours of the branch office. Specifically, I used this command:

    robocopy \\source \\dest /e /mir /rh:1300-2000 /log:log.txt

    The job starts at the specified time (13:00 = 1 PM) but for whatever reason, it does not stop at the specified time (20:00 = 8 PM) but just keeps on going, therefore running into in the business hours of the branch office.

    I am using robocopy file version 5.1.10.1027 (XP027).

    Has anyone seen this behaviour before and knows how to resolve it? I really need the copying to stop or interrupt at the specified time.

    Many thanks for your help!

    Friday, August 17, 2012 9:08 AM

Answers

  • Hi,

    Have a try to add a /pf parameter in the command and see if it will still on going.

    Meanwhile, robocopy with /rh will cause a potential concern, as the process will keep there before the copy is finished, as you may add a task schedule to kill it after it is paused if needed.


    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact tnmff@microsoft.com.

    Tuesday, August 21, 2012 4:39 AM
    Moderator

All replies

  • Hi,

    Have a try to add a /pf parameter in the command and see if it will still on going.

    Meanwhile, robocopy with /rh will cause a potential concern, as the process will keep there before the copy is finished, as you may add a task schedule to kill it after it is paused if needed.


    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact tnmff@microsoft.com.

    Tuesday, August 21, 2012 4:39 AM
    Moderator
  • Use the /PF switch to tell Robocopy to check its run hours on a Per File basis. Once a copy is actually started it always runs to completion, hence this switch is required to limit robocopy to run only within the timings specified in /RH switch.
    • Edited by Walter_B Friday, October 20, 2017 4:02 PM
    Friday, October 20, 2017 4:02 PM