xcopy problems

G

Guest

We have been using xcopy with the switches to perform backups to an external
usb hard drive.

It backups up a number of files except Outlook pst files, etc

When analysing further, the problem is to do with sharing violation.

Before it gets to backup certain files it encounters a sharing violation and
it stops.

Is there a way to make xcopy work properly and avoid sharing violation
problems.

Your help is appreciated.

Regards,

Guido
 
S

Shenan Stanley

Guido said:
We have been using xcopy with the switches to perform backups to an
external usb hard drive.

It backups up a number of files except Outlook pst files, etc

When analysing further, the problem is to do with sharing violation.

Before it gets to backup certain files it encounters a sharing
violation and it stops.

Is there a way to make xcopy work properly and avoid sharing
violation problems.

Your help is appreciated.


Not sure what you are going for...

You are going to get those 'sharing violations' if the file in question is
*in use*.
You can utilize the /C switch for XCOPY to ensure it just keeps on going
anyway, however.
 
P

Patrick Keenan

Guido said:
We have been using xcopy with the switches to perform backups to an
external
usb hard drive.

It backups up a number of files except Outlook pst files, etc

When analysing further, the problem is to do with sharing violation.

Before it gets to backup certain files it encounters a sharing violation
and
it stops.

Is there a way to make xcopy work properly and avoid sharing violation
problems.

Your help is appreciated.

Regards,

Guido

This is common and pretty much expected if you're backing up PST files
while Outlook is open. It's not so much a problem with xcopy as with
people walking away and leaving Outlook running. Just close Outlook and
the problem goes away.

One of the other approaches to this is to kill the Outlook task before
running the backup. Of course, if this is automated, you're going to upset
somebody who is working late and in the middle of writing an epic email.

HTH
-pk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top