Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Robocopy outputs garbage percentages in log file

Posted on 2011-03-14
11
Medium Priority
?
10,945 Views
Last Modified: 2012-05-11
I am using Robocopy to back up data from a network share on a server 2008 platform to a NAS.  The copy works fine, but the log file is difficult to read.  Ideally I want to see nothing more than the job header and job summary as well as any erroneous file actions.  My command is as follows:

robocopy [source] [destination] /S /E /COPY:DT /DCOPY:T /R:1 /W:30 /NS /NC /NFL /NDL /NP  >> backup_report.txt

After reading all of the documentation on Robocopy, it reads as if /NP should eliminate the problem.  A sample of the piped log output is below:

Job Header
100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%100%
Job Summary

There are hundreds of lines of the percentage in the log.  I would appreciate any assistance in finding what I am doing wrong.
0
Comment
Question by:tasselhoff2000
  • 7
  • 4
11 Comments
 
LVL 19

Accepted Solution

by:
Raheman M. Abdul earned 2000 total points
ID: 35133825
Use the /NP switch.

/NP = don' t display progress
0
 

Author Comment

by:tasselhoff2000
ID: 35133852
Thank you for the prompt response.  The /NP switch is in use in my script yet the output still persists.  I realize that the percentages that appear in the log are the "completion" percentages of each file that is copied as I removed the /NDL and /NFL switches to verify.  Unfortunately the output in the log is still not what we are looking for.
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35133957
i tried with the same systax but did not result in percentage display

my command used:
robocopy c:\users\rahman c:\rahmancopy  /S /E /COPY:DT /DCOPY:T /R:1 /W:30 /NS /NC /NFL /NDL /NP  >> backup_report.txt

0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35133998
try removing the switches one by one and see which switch causes the issue
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35134036
remove one switch at a time and see which switch disables /NP option
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35134094
Download the latest version of Robocopy from microsoft

Option 1: http://www.itworld.com/nlswindowsrobo061121

what OS r u on?
0
 

Author Comment

by:tasselhoff2000
ID: 35134188
I am using Server 2008 R2 that has Robocopy XP027.  I will try to run the switches one by one to see which is creating the issue.  As far as I know, the order of the switches is irrelevant isn't it?
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35134212
yes, order is irrelevant
0
 

Author Comment

by:tasselhoff2000
ID: 35134241
ok, i will run with different switches and post the results tomorrow.
0
 

Author Comment

by:tasselhoff2000
ID: 35141659
Oddly enough the script worked last night without any edits.  It has run about 6 times now with the garbage percentages in the logs but last night it ran as scheduled and properly logged operation.  I'll go ahead and close this post and award you the points.
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 35147294
Thanks for the points tasselhoff2000
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'd like to talk about something that is near and dear to my heart: build systems. Without them, building software is all about compiling locally, with software versions everywhere. It can be a mess. Today we are going to discuss building a small di…
How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question