Solved

robocopy only pst files

Posted on 2015-02-16
8
528 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 94

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 54

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 69

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 69

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

756 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