I need help with Robocopy on Windows 2003 servers. I want to move all .wav files and exclude the rest while maintaining the folder structure...thanks

I need proper syntax to robocopy from \\server\w:\bulk (but .wav files only and maintain folder structure) to \\Server\G:\

This is on an old Win 2003 server. I know the /MT option is not available...what is the best syntax to get all the .wav files, exclude everything else but maintain the folder structure?
LVL 1
Thor2923Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
Minimum:
robocopy.exe "\\SourceServer\W$\bulk" "\\TargetServer\G$" *.wav /s /r:0 

Open in new window

Replace the /s with /e if you want to keep the folder structure even for empty folders.
Add /COPY:DATSO to copy permissions and ownership. Remove the O to only copy permissions, without ownership
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Thor2923Author Commented:
thanks and my copy is running smooth but why R:0? I always use R:3
0
oBdACommented:
Because in a stable internal network, there's usually no point in trying more than once (that is, the initial attempt); if a file fails in this situation, it's more than likely that it will fail in the following attempts as well. /r was made with unstable connections in mind. It's usually just not worth the wait.
1
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Thor2923Author Commented:
just when i thought my problems were over, I realized the Target USB drive I am copying to is only 1.81TB even though the outside of the box said 2TB. I know the source folder is 1.95TB including all files, but the robocopy is copying only .wav. It is going to be a nail biter but my target drive may run out of space. Do you know the order the Robocopy command is copying the files? Alphabetical? Time Stamp? There is a chance this copy may run out of space and I may need to copy the rest on to another USB drive. I am hoping there is an easy way to find where it stopped and where I need to pick up
0
oBdACommented:
Because the drive manufacturers define 1 TB as 1000000000000 bytes.
robocopy copies by folder.
You can always stop it right now while it's still running, then add
/np /tee /log:C:\Temp\robocopy.log

Open in new window

to the options and run the command again. It will by default skip files already in the target.
This will give you a log file where you can identify where it stopped (if it did). robocopy doesn't support delta copies to a third folder.
0
Thor2923Author Commented:
don't I need a \XC switch to skip what has already been copied?
0
oBdACommented:
No. Again: robocopy will by default skip files already in the target.
0
Thor2923Author Commented:
ok, I took your advice and it is copying but sure looks different. I see entire paths being copied like \\server01\w$\bulk\20140230 slowly moving up my screen instead of individual files flying by
0
oBdACommented:
Shouldn't be doing that. Is one of the drives a NAS with some Linux based OS?
Try to add /FFT to the options.
0
Thor2923Author Commented:
oh never mind once it read the files that had already been copied it started flying again!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting

From novice to tech pro — start learning today.