Solved

robocopy only pst files

Posted on 2015-02-16
8
655 Views
Last Modified: 2015-02-19
hi experts
how do i robocopy only pst files

robocopy.exe "\\direccionaso\c$\users\"  f:\Outlooksosa\ *.pst /s /r:1 /w:1

tsm
0
Comment
Question by:edo60
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 96

Expert Comment

by:Experienced Member
ID: 40613201
In the command above, when you try to copy the PST file, Outlook needs to be closed. I do not think RoboCopy will copy open files in use. Otherwise you should be ok.
0
 
LVL 56

Expert Comment

by:Bill Prew
ID: 40613246
ROBOCOPY may not be the best tool for this job, take a look at this lengthy prior discussion and perhaps try one of the options offered there.

http://www.experts-exchange.com/Software/Backup_Restore/Q_22658723.html

~bp
0
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40613267
Remove the forward slashes at the end of the source and destination paths, this tends to confuse Robocopy. Your command should look like this:
robocopy.exe "\\direccionaso\c$\users"  f:\Outlooksosa *.pst /s /r:1 /w:1

Open in new window

0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 70

Expert Comment

by:Qlemo
ID: 40613635
VB, only the combination of \" confuses RoboCopy. But that was indeed part of the original command.
0
 
LVL 25

Expert Comment

by:Lionel MM
ID: 40614118
Your command will work (removing the \ a suggested above) but that assumes that all the PST files are in the folder "\\direccionaso\c$\users". My guess is that you have sub folders that contain the different users PST files and so you would have to add the /s switch to get those
robocopy.exe "\\direccionaso\c$\users"  f:\Outlooksosa *.pst /s /r:1 /w:1 /s
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40614128
@Qlemo, not too sure what you mean by your comment. The quotation marks around the folder path are generally acceptable even when there's no spaces in the folder path. It's just the forward slash that confuses Robocopy from what I know.

@lionelmm, the /s switch is already in the original command. In fact it looks like you've got it specified twice in your comment above?
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 40614175
VB,

c:\x\   or   "c:\x"   works fine, but  "C:\x\"  might or might not. The backslash (not forward slash) is interpreted as "escape" character sometimes by RoboCopy, leading to considering the closing double quote to be part of the filename.
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40614187
@Qlemo: that's quite interesting to know. I'll do some testing with this in the near future.

I never use the backslash with Robocopy as I don't feel it's ever really required and the times where I have used it caused Robocopies to fail.

Yes, sorry. I did mean to say backslash instead of forward slash. it's 1AM here so forgive me for being a bit on the weary side :)
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

635 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