How do I hide "Extra File" and "100%" lines from robocopy output?
- by Danny Tuppeny
I have a robocopy script to back up our Kiln repositories that runs nightly, which looks something like this:
robocopy "$liveRepoLocation" "$cloneRepoLocation" /MIR /MT /W:3 /R:100 /LOG:"$backupLogLocation\BackupKiln.txt" /NFL /NDL /NP
In the output, there are a ton of lines that contain "Extra file"s, like this:
*EXTRA File 153 E:\Kiln Backup\elasticsearch\data\elasticsearch-kiln\nodes\0\indices\kiln-2\0\index\_yxe.fdt
*EXTRA File 12 E:\Kiln Backup\elasticsearch\data\elasticsearch-kiln\nodes\0\indices\kiln-2\0\index\_yxe.fdx
*EXTRA File 128 E:\Kiln Backup\elasticsearch\data\elasticsearch-kiln\nodes\0\indices\kiln-2\0\index\_yxe.fnm
*EXTRA File 363 E:\Kiln Backup\elasticsearch\data\elasticsearch-kiln\nodes\0\indices\kiln-2\0\index\_yxe.frq
*EXTRA File 13 E:\Kiln Backup\elasticsearch\data\elasticsearch-kiln\nodes\0\indices\kiln-2\0\index\_yxe.nrm
Additionally, there are then hundreds of lines at the bottom that contain nothing but "100%"s, like this:
100%
100%
100%
100%
100%
100%
100%
In addition to making the log files enormous (there are a lot of folders/files in Kiln repos), it makes it annoying to scan through the logs now and then to see if everything was working ok.
How do I stop "Extra Files" appearing in the log?
How do I stop these silly "100%" lines appearing in the log?
I've tried every combination of switch I can think of (the current switches are listed above in the command), but neither seem to hide these!