Re: Using xcopy for backup
- From: Stan Weiss <srweiss@xxxxxxxxx>
- Date: Wed, 29 Nov 2006 15:28:39 -0500
Bob I wrote:
Stan Weiss wrote:
"Pegasus (MVP)" wrote:
"Stubby" <William.Plummer-NOSPAM-@xxxxxxxxxxxx> wrote in message
news:AaGdnTYjkt-yN_bYnZ2dnUVZ_sOdnZ2d@xxxxxxxxxxxxxx
Pegasus (MVP) wrote:
"Don Culp" <dculp@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%232Q4vqoEHHA.4404@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to use xcopy from a batch file to back up drive d to drive j
(both local drives). The command is:
xcopy d:\*.* j:\backup\*.* /s /h /e /v /d
However, this gives an error message:
Can't read file: "\System Volume Information"
and aborts without copying anything. ("System Volume Information" is a
folder in the root folder of d. The Security for this folder is set to
allow
reading it.)
I attempted to exclude "\System Volume Information" during xcopy with
the
following command but still get the same results:
xcopy d:\*.* j:\backup\*.* /s /h /e /v /d /exclude:"\System
Volume
Information"
I realize that I could put everything that I want to backup on d: into
a
single folder and then backup only that folder but I would prefer not
to
do
this. Also, the batch file has commands to backup other parts of my
system
(in addition to drive d:) so I'd prefer not to abandon this batch file.
Thanks for any suggestions.
Don Culp
I recommend you keep things simple: Instead of excluding certain
folders, just tell xcopy to continue, regardless of errors. If you don't
then xcopy might get stuck with other issues, e.g. locked files. Note
the switches I added, and note that the destination should NOT
have any wildcard characters.
xcopy d:\*.* j:\backup\ /s /h /e /v /d /y /c
Should /m be used so files don't get backed up again unless modified?
The /m switch is appropriate if you're backing up to a different target
folder each time.
Since you're backing up to the same target folder, you should use the /d
switch.
What does the /d do? I have only ever used /d:date.
Stan
Leaving the date blank only copies newer, please enter XCOPY /? on
command line to see explanation.
Thanks, that is good to know.
Stan
.
- Follow-Ups:
- Re: Using xcopy for backup
- From: Bob I
- Re: Using xcopy for backup
- References:
- Re: Using xcopy for backup
- From: Stan Weiss
- Re: Using xcopy for backup
- From: Bob I
- Re: Using xcopy for backup
- Prev by Date: Re: when I insert a blank CD or DVD, the system acts like its trying to autorun -- repeatedly
- Next by Date: Re: Changing the Windows Login Background?
- Previous by thread: Re: Using xcopy for backup
- Next by thread: Re: Using xcopy for backup
- Index(es):
Relevant Pages
|
Loading