Solved

robocopy only pst files

Posted on 2015-02-16
8
416 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
8 Comments
 
LVL 91

Expert Comment

by:John Hurst
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 52

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
 
LVL 68

Expert Comment

by:Qlemo
ID: 40613635
VB, only the combination of \" confuses RoboCopy. But that was indeed part of the original command.
0
Being driven mad by email signature updates?

Having to make a change to your users’ email signatures, yet again? Feel like your head is going to explode? Rely on an Exclaimer email signature management solution to make the process simple!

 
LVL 24

Expert Comment

by:lionelmm
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 68

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

932 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now