Robocopy won't produce consistent results
I'm trying to mirror my files from one computer to another with robocopy.
SRC is a network share
DST is a local dirve
On the computer running the program, but the same result is experienced if I run the program on the SRC machine (and in that case the destination becomes the network share obviously)
The options are:
Options : *.* /FFT /NDL /TEE /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /Z /NP /MT:64 /R:3 /W:10
Now my issue is, that after it has finished there are 573 866 files on the source and 572 861 files on the destination and NO ERRORS/WARNINGS/ETC. on the screen or in the log (even if I turn on verbose logging, there are no errors logged).
So there are a number of files that doesn't get copied over, and I have no idea why. If I do the copy with TCMD, it transfers everything properly - but I would like a scheduled sync.
If I run the command twice in a row it gives different results (files are not in use, modified, etc. during runs):
EX1:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44597 0 0 0
Files : 572894 0 572834 0 0 0
Bytes : 2.282 t 0 2.282 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
EX2:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44600 0 0 0
Files : 572728 0 572654 0 0 0
Bytes : 2.283 t 0 2.281 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
Thanks in advance!
backup sync robocopy mirroring microsoft
add a comment |
I'm trying to mirror my files from one computer to another with robocopy.
SRC is a network share
DST is a local dirve
On the computer running the program, but the same result is experienced if I run the program on the SRC machine (and in that case the destination becomes the network share obviously)
The options are:
Options : *.* /FFT /NDL /TEE /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /Z /NP /MT:64 /R:3 /W:10
Now my issue is, that after it has finished there are 573 866 files on the source and 572 861 files on the destination and NO ERRORS/WARNINGS/ETC. on the screen or in the log (even if I turn on verbose logging, there are no errors logged).
So there are a number of files that doesn't get copied over, and I have no idea why. If I do the copy with TCMD, it transfers everything properly - but I would like a scheduled sync.
If I run the command twice in a row it gives different results (files are not in use, modified, etc. during runs):
EX1:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44597 0 0 0
Files : 572894 0 572834 0 0 0
Bytes : 2.282 t 0 2.282 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
EX2:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44600 0 0 0
Files : 572728 0 572654 0 0 0
Bytes : 2.283 t 0 2.281 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
Thanks in advance!
backup sync robocopy mirroring microsoft
Try something likerobocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the/TEEback in if you want to output both console and log file though.
– Pimp Juice IT
Jan 7 at 21:41
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14
add a comment |
I'm trying to mirror my files from one computer to another with robocopy.
SRC is a network share
DST is a local dirve
On the computer running the program, but the same result is experienced if I run the program on the SRC machine (and in that case the destination becomes the network share obviously)
The options are:
Options : *.* /FFT /NDL /TEE /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /Z /NP /MT:64 /R:3 /W:10
Now my issue is, that after it has finished there are 573 866 files on the source and 572 861 files on the destination and NO ERRORS/WARNINGS/ETC. on the screen or in the log (even if I turn on verbose logging, there are no errors logged).
So there are a number of files that doesn't get copied over, and I have no idea why. If I do the copy with TCMD, it transfers everything properly - but I would like a scheduled sync.
If I run the command twice in a row it gives different results (files are not in use, modified, etc. during runs):
EX1:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44597 0 0 0
Files : 572894 0 572834 0 0 0
Bytes : 2.282 t 0 2.282 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
EX2:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44600 0 0 0
Files : 572728 0 572654 0 0 0
Bytes : 2.283 t 0 2.281 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
Thanks in advance!
backup sync robocopy mirroring microsoft
I'm trying to mirror my files from one computer to another with robocopy.
SRC is a network share
DST is a local dirve
On the computer running the program, but the same result is experienced if I run the program on the SRC machine (and in that case the destination becomes the network share obviously)
The options are:
Options : *.* /FFT /NDL /TEE /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /Z /NP /MT:64 /R:3 /W:10
Now my issue is, that after it has finished there are 573 866 files on the source and 572 861 files on the destination and NO ERRORS/WARNINGS/ETC. on the screen or in the log (even if I turn on verbose logging, there are no errors logged).
So there are a number of files that doesn't get copied over, and I have no idea why. If I do the copy with TCMD, it transfers everything properly - but I would like a scheduled sync.
If I run the command twice in a row it gives different results (files are not in use, modified, etc. during runs):
EX1:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44597 0 0 0
Files : 572894 0 572834 0 0 0
Bytes : 2.282 t 0 2.282 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
EX2:
Total Copied Skipped Mismatch FAILED Extras
Dirs : 44608 44608 44600 0 0 0
Files : 572728 0 572654 0 0 0
Bytes : 2.283 t 0 2.281 t 0 0 0
Times : 0:00:03 0:00:00 0:00:00 0:00:03
Thanks in advance!
backup sync robocopy mirroring microsoft
backup sync robocopy mirroring microsoft
edited Jan 7 at 23:50
RalfFriedl
1,108147
1,108147
asked Jan 7 at 20:47
S. SUmiS. SUmi
1
1
Try something likerobocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the/TEEback in if you want to output both console and log file though.
– Pimp Juice IT
Jan 7 at 21:41
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14
add a comment |
Try something likerobocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the/TEEback in if you want to output both console and log file though.
– Pimp Juice IT
Jan 7 at 21:41
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14
Try something like
robocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10 and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the /TEE back in if you want to output both console and log file though.– Pimp Juice IT
Jan 7 at 21:41
Try something like
robocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10 and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the /TEE back in if you want to output both console and log file though.– Pimp Juice IT
Jan 7 at 21:41
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391667%2frobocopy-wont-produce-consistent-results%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391667%2frobocopy-wont-produce-consistent-results%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Try something like
robocopy /FFT %src %dest% * /ZB /SEC /COPYALL /SECFIX /PURGE /NDL /NP /R:3 /W:10and omit the other options if you can. Some of the options are conflicting too so try with these only and see if that helps much. Obviously you can put the/TEEback in if you want to output both console and log file though.– Pimp Juice IT
Jan 7 at 21:41
You might want to create a list of the source files using "dir /s/b > filelist.txt" . Then, run your robocopy adding /V /LOG:C:backupscript.log . You can compare the file lists after some manual adjustment. You have /E /PURGE and /MIR enabled , which makes me wonder if they conflict.. Read docs.microsoft.com/en-us/windows-server/administration/… , which specifically states that "The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:" and then some explanation.
– Christopher Hostage
Jan 7 at 21:50
Same thing happens when using "/MIR /FFT /R:3 /W:10 /Z /SEC"
– S. SUmi
Jan 9 at 11:14