Solved

How to use Robocopy to Copy Files from a network Location

Posted on 2011-02-20
8
4,354 Views
Last Modified: 2012-05-11
Hi All

I have some problems.. I have an external drive 1TB.

Now, i have several network locations which have PST Files on which outlook is running. We need to take backups of the outlook POP3 Users(just in case)..

I want to use powershell robocopy to copy all the PST and put in a folder. For example

\\192.168.0.100\D$\Outlook.pst      (This is the network PC)

F:\Sales Manager\                          (This is the Backup Drive Location)

I want this to be done. Please help me guys.
Thank You
0
Comment
Question by:brandsco
8 Comments
 
LVL 8

Expert Comment

by:Toxacon
ID: 34937080
First of all, there will be problems copying a PST file which is in use. You must copy it while Outlook is not running. Secondly, you are connecting to administrative share, which requires administrative permissions.

1. Make a script that backs up the pst file to some location in local drive ("C:\Backups" for example) when Outlook is not running.
2. Create a BackupAgent user to domain
3. Create a hidden share to workstations (like "Backup$" sharing folder C:\Backups)
4. Allow only the BackupAgent user to connect to the Backup$ share.
5. Connect to that folder with the BackupAgent user instead of ordinary admin.
6. Copy data from the Backup$ share.
0
 
LVL 6

Expert Comment

by:Bxoz
ID: 34937082
In a batch file
 Robocopy \\192.168.0.100\D$\Outlook.pst  F:\Sales Manager /MIR /Z

Open in new window


/MIR : MIRror a directory tree
/Z : Copy files in restartable mode (survive network glitch)
0
 
LVL 1

Author Comment

by:brandsco
ID: 34937100
Ok. I am copying the .pst files when outlook is not running. I am having Domain admins and Enterprise Admins rights. But the command that Bxoz gave results in this manner. Please see the report below

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\siraj.BRANDSCO> Robocopy \\192.168.0.100\D$\Outlook.pst  F:\Sales Manager /MIR /Z

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Sun Feb 20 16:59:24 2011

   Source : \\192.168.0.100\D$\Outlook.pst\
     Dest : F:\Sales Manager\

    Files : *.*

  Options : *.* /S /E /COPY:DAT /PURGE /MIR /Z /R:1000000 /W:30

------------------------------------------------------------------------------

2011/02/20 16:59:24 ERROR 267 (0x0000010B) Accessing Source Directory \\192.168.
0.100\D$\Outlook.pst\
The directory name is invalid.

C:\Users\siraj.BRANDSCO>
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34937192
robocopy \\192.168.0.100\d$ "F:\Sales Manager" Outlook.pst /Z

Open in new window

0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 6

Expert Comment

by:Bxoz
ID: 34937216
Oops my mistake sorry
0
 
LVL 6

Expert Comment

by:Bxoz
ID: 34937224
The command was for the all directory not the file .pst
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34937227
Don't use the Mirror option because it will delete contents of the backup folder if you backup multiple computers to the same place.
0
 
LVL 2

Accepted Solution

by:
danny1875 earned 500 total points
ID: 34941968
This is the way i would do it if its any help..

Create a folder for the .pst to sit in, something like 'PST'

Map a network drive to that folder, say X:
Create a 'PST' folder in SalesManager folder

robocopy X:\ C:\SalesManager\PST /E /COPYALL /MIR /ZB /R:2 /W:30 /TEE

just make sure your run it from a command prompt with the correct priviledges.

hope that helps



0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

861 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

20 Experts available now in Live!

Get 1:1 Help Now