J
Joe Grover
Guest
I have a data replication script set to run twice per day, replicating
across a point-to-point T1 to an offsite recovery center. The script is as
follows:
robocopy c:\DATA\share \\cci-fp1\data-replication\share /R:0 /MIR
/LOG:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\projects \\cci-fp1\data-replication\projects /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\payroll \\cci-fp1\data-replication\payroll /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\adpprogs \\cci-fp1\data-replication\adpprogs /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\estimate \\cci-fp1\data-replication\estimate /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\marketing \\cci-fp1\data-replication\marketing /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\HR \\cci-fp1\data-replication\HR /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\userdata \\cci-fp1\data-replication\userdata /R:0 /MIR /XF
*.PST IMG*.DAT *.BKF /LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\Principl \\cci-fp1\data-replication\Principl /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\acctg \\cci-fp1\data-replication\acctg /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\admin \\cci-fp1\data-replication\admin /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\Audit \\cci-fp1\data-replication\Audit /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\mc2net \\cci-fp1\data-replication\mc2net /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\technology \\cci-fp1\data-replication\technology /R:0 /MIR
/XF *.PST IMG*.DAT /LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\winapps \\cci-fp1\data-replication\winapps /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\mfxp \\cci-fp1\data-replication\mfxp /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
This weekend I migrated all of our data off from our old fileserver (Windows
2000 Server) onto a new fileserver (Windows Server 2008 Standard). I made
the following two modifications to the script on the new server:
1. I changed the source from "D:\foldername" to "c:\DATA\foldername"
2. The old script used the > and >> commands to output to the logfile. I
had another script I was trying to run on this server that would not run on
its schedule until I changed this option to use Robocopy's /LOG option.
After doing so the task ran on its schedule. Because of this I changed all
of the > commands to /LOG and all of the >> commands to /LOG+.
The task is set to run using domain admin account credentials. Logged into
the fileserver as this account and double-clicking on the script
(TCC-CCI-DataMirror.cmd) made it run fine (I did it for the initial
replication). However, when it was scheduled to run at 11:45am today, it
did not complete. The Task Schedule shows the last run result is 0xB.
The task has two triggers, one to run at 11:45 AM every day, and another to
run at 11:45 PM every day. It is set to run whether a user is logged in or
not.
What is 0xB? This account has full rights on the log folder, as I have
another script running as the same account and logging to the same location
that completes successfully. I am having difficulty tracking down what
result 0xB means. Any help is appreciated. Thanks!
Joe
across a point-to-point T1 to an offsite recovery center. The script is as
follows:
robocopy c:\DATA\share \\cci-fp1\data-replication\share /R:0 /MIR
/LOG:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\projects \\cci-fp1\data-replication\projects /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\payroll \\cci-fp1\data-replication\payroll /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\adpprogs \\cci-fp1\data-replication\adpprogs /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\estimate \\cci-fp1\data-replication\estimate /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\marketing \\cci-fp1\data-replication\marketing /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\HR \\cci-fp1\data-replication\HR /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\userdata \\cci-fp1\data-replication\userdata /R:0 /MIR /XF
*.PST IMG*.DAT *.BKF /LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\Principl \\cci-fp1\data-replication\Principl /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\acctg \\cci-fp1\data-replication\acctg /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\admin \\cci-fp1\data-replication\admin /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\Audit \\cci-fp1\data-replication\Audit /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\mc2net \\cci-fp1\data-replication\mc2net /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\technology \\cci-fp1\data-replication\technology /R:0 /MIR
/XF *.PST IMG*.DAT /LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\winapps \\cci-fp1\data-replication\winapps /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
robocopy c:\DATA\mfxp \\cci-fp1\data-replication\mfxp /R:0 /MIR
/LOG+:"c:\datamirrors\TCC-CCI.Log"
This weekend I migrated all of our data off from our old fileserver (Windows
2000 Server) onto a new fileserver (Windows Server 2008 Standard). I made
the following two modifications to the script on the new server:
1. I changed the source from "D:\foldername" to "c:\DATA\foldername"
2. The old script used the > and >> commands to output to the logfile. I
had another script I was trying to run on this server that would not run on
its schedule until I changed this option to use Robocopy's /LOG option.
After doing so the task ran on its schedule. Because of this I changed all
of the > commands to /LOG and all of the >> commands to /LOG+.
The task is set to run using domain admin account credentials. Logged into
the fileserver as this account and double-clicking on the script
(TCC-CCI-DataMirror.cmd) made it run fine (I did it for the initial
replication). However, when it was scheduled to run at 11:45am today, it
did not complete. The Task Schedule shows the last run result is 0xB.
The task has two triggers, one to run at 11:45 AM every day, and another to
run at 11:45 PM every day. It is set to run whether a user is logged in or
not.
What is 0xB? This account has full rights on the log folder, as I have
another script running as the same account and logging to the same location
that completes successfully. I am having difficulty tracking down what
result 0xB means. Any help is appreciated. Thanks!
Joe