Solved

robocopy only pst files

Posted on 2015-02-16
8
562 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 95

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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCOM - Service Restart 1 30
Access Report via Windows Desktop Shortcut 12 47
Unable to start workstation service 12 560
List Boot time of several computers 4 19
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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…

710 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