Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Support > Help with xcopy

Reply
Thread Tools

Help with xcopy

 
 
iROK
Guest
Posts: n/a
 
      01-09-2008
I don't know why but whenever I run a backup using xcopy the Microsoft
Publisher files below get read but not copied to the backup (0 File(s)
copied).
Some Publisher files in the folder do, so it's nothing in an 'exclude'
file etc.
I looked at the file attributes and none of the files are read-only,
hidden or in use etc.

I have included a log file (incremlog.txt) to show you the output
where it references the offending files.
I have also included the relevant section of the backup .bat file to
show you the switches that are being passed to xcopy.

Any ideas on why just these files are not being copied would be
greatfully appreciated.


Copy of output (incremlog.txt) text:

-------------------------------------------------------------------
******** Daily Incremental Backup started on Wed 01/09/2008 at
11:21:16.89 ********

--- Amanda started on Wed 01/09/2008 at 11:21:16.93 ---
\\Amanda\Documents and Settings\Amanda\Desktop\Microsoft Publisher.lnk
\\Amanda\Documents and Settings\Amanda\Desktop\Aware.url
2 File(s) copied
0 File(s) copied
0 File(s) copied
0 File(s) copied
\\Amanda\Documents and Settings\Amanda\My Documents\April-June
2007.pub
\\Amanda\Documents and Settings\Amanda\My Documents\XFC CHRISTMAS OPEN
HOUSE.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsads.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsadvertising.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsopenhouse.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsworkshop07.pub
\\Amanda\Documents and Settings\Amanda\My Documents\name badge.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training2.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training3.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training4.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training5.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training6.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training8.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized! training.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized! training1.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized7.pub
0 File(s) copied
--- Amanda completed on Wed 01/09/2008 at 11:21:27.20 ---

******** Daily Incremental Backup completed on Wed 01/09/2008 at
11:31:52.55 ********
-------------------------------------------------------------------




Copy of relevant section of .bat file:

-------------------------------------------------------------------
@echo off
echo @@@@@@@@@@@@@ Daily Incremental Backup @@@@@@@@@@@@@
set start=%TIME%
set date=%DATE%
echo.>> incremlog.txt
echo ******** Daily Incremental Backup started on %DATE% at %START
%>>incremlog.txt ********
echo.>> incremlog.txt
echo --- Amanda started on %DATE% at %TIME%>>incremlog.txt ---
xcopy "\\Amanda\Documents and Settings\Amanda\Desktop\*.*" "e:\Network
Backup\Amanda\Documents and Settings\Amanda\Desktop\"/d/s/e/c/y/h/r/z
>>incremlog.txt

xcopy "\\Amanda\Documents and Settings\Amanda\Application Data
\Microsoft\Address Book\*.*" "e:\Network Backup\Amanda\Documents and
Settings\Amanda\Application Data\Microsoft\Address Book\"/d/s/e/c/y/h/
r/z >>incremlog.txt
xcopy "\\Amanda\Documents and Settings\Amanda\Favorites\*.*" "e:
\Network Backup\Amanda\Documents and Settings\Amanda\Favorites\"/d/s/e/
c/y/h/r/z >>incremlog.txt
xcopy "\\Amanda\Documents and Settings\Amanda\Local Settings
\Application Data\Identities\*.*" "e:\Network Backup\Amanda\Documents
and Settings\Amanda\Local Settings\Application Data\Identities\"/d/s/e/
c/y/h/r/z /EXCLUDE:exclude.txt >>incremlog.txt
xcopy "\\Amanda\Documents and Settings\Amanda\My Documents\*.*" "e:
\Network Backup\Amanda\Documents and Settings\Amanda\My Documents\"/d/
s/e/c/y/h/r/z /EXCLUDE:amanda_mydoc_exclude.txt+exclude.txt
>>incremlog.txt

echo --- Amanda completed on %DATE% at %TIME%>>incremlog.txt ---
echo.>> incremlog.txt
echo ******** Daily Incremental Backup completed on %DATE% at %TIME
%>>incremlog.txt ********
exit
-------------------------------------------------------

thanks
 
Reply With Quote
 
 
 
 
why?
Guest
Posts: n/a
 
      01-09-2008

On Wed, 9 Jan 2008 13:31:47 -0800 (PST), iROK wrote:

>I don't know why but whenever I run a backup using xcopy the Microsoft
>Publisher files below get read but not copied to the backup (0 File(s)
>copied).


You didn't mention what OS/version of xcopy, just in case.

http://www.xxcopy.com/index.htm xxcopy has been mentioned in 24HSHD many
times as a better xcopy.

Confirm file access by testing with a different method, 7Zip, WinZip,
WinRAR avoid the self written script incase of errors.

You get a log output like, this from WinZip
Warning: could not open for reading: D:\Documents and
Settings\<user>\Application Data\Powermarks\pm35.cache


You have xcopy <src>\*.* <dst> it's imposisble to see what the filenames
are not getting backed up. All your script tells you is

xcopy1 files , xcopy2 files and xcopy3 files is failing, not on which
file.

xcopy "\\Amanda\Documents and Settings\Amanda\Application Data
\Microsoft\Address Book\*.*" "e:\Network Backup\Amanda\Documents and
Settings\Amanda\Application Data\Microsoft\Address Book\"/d/s/e/c/y/h/
r/z >>incremlog.txt

Is the 1st failure, or at least why in the Address Book folder it's any
file OE, IE is holding open.

xcopy doesn't have much in the way of errorlevels, basically ok /
failed.

At work I use Perl to do the same job, has some benefits can glob all
files names into a single list before backup, test each file attribs /
date/time as needed, can add error codes easily and all the file names
sent to Winzip command line without all the long paths you have.

It ends up something like this, but it's been 4 years since having to
amend it, but it's close enough.

wzzip options inputfile outputfile


>Some Publisher files in the folder do, so it's nothing in an 'exclude'
>file etc.
>I looked at the file attributes and none of the files are read-only,
>hidden or in use etc.
>
>I have included a log file (incremlog.txt) to show you the output
>where it references the offending files.
>I have also included the relevant section of the backup .bat file to
>show you the switches that are being passed to xcopy.
>
>Any ideas on why just these files are not being copied would be
>greatfully appreciated.


<snip>

Me
 
Reply With Quote
 
 
 
 
Synapse Syndrome
Guest
Posts: n/a
 
      01-10-2008
"iROK" <> wrote in message
news:79011ac9-db15-4e08-82b9-...
>I don't know why but whenever I run a backup using xcopy the Microsoft
> Publisher files below get read but not copied to the backup (0 File(s)
> copied).
> Some Publisher files in the folder do, so it's nothing in an 'exclude'
> file etc.
> I looked at the file attributes and none of the files are read-only,
> hidden or in use etc.
>
> I have included a log file (incremlog.txt) to show you the output
> where it references the offending files.
> I have also included the relevant section of the backup .bat file to
> show you the switches that are being passed to xcopy.
>
> Any ideas on why just these files are not being copied would be
> greatfully appreciated.
>
>
> Copy of output (incremlog.txt) text:
>
> -------------------------------------------------------------------
> ******** Daily Incremental Backup started on Wed 01/09/2008 at
> 11:21:16.89 ********
>
> --- Amanda started on Wed 01/09/2008 at 11:21:16.93 ---
> \\Amanda\Documents and Settings\Amanda\Desktop\Microsoft Publisher.lnk
> \\Amanda\Documents and Settings\Amanda\Desktop\Aware.url
> 2 File(s) copied
> 0 File(s) copied
> 0 File(s) copied
> 0 File(s) copied
> \\Amanda\Documents and Settings\Amanda\My Documents\April-June
> 2007.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\XFC CHRISTMAS OPEN
> HOUSE.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\ddsads.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\ddsadvertising.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\ddsopenhouse.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\ddsworkshop07.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\name badge.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training2.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training3.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training4.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training5.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training6.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized Training8.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized! training.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized! training1.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
> Gonna Get Organized7.pub
> 0 File(s) copied
> --- Amanda completed on Wed 01/09/2008 at 11:21:27.20 ---
>
> ******** Daily Incremental Backup completed on Wed 01/09/2008 at
> 11:31:52.55 ********
> -------------------------------------------------------------------
>
>
>
>
> Copy of relevant section of .bat file:
>
> -------------------------------------------------------------------
> @echo off
> echo @@@@@@@@@@@@@ Daily Incremental Backup @@@@@@@@@@@@@
> set start=%TIME%
> set date=%DATE%
> echo.>> incremlog.txt
> echo ******** Daily Incremental Backup started on %DATE% at %START
> %>>incremlog.txt ********
> echo.>> incremlog.txt
> echo --- Amanda started on %DATE% at %TIME%>>incremlog.txt ---
> xcopy "\\Amanda\Documents and Settings\Amanda\Desktop\*.*" "e:\Network
> Backup\Amanda\Documents and Settings\Amanda\Desktop\"/d/s/e/c/y/h/r/z
>>>incremlog.txt

> xcopy "\\Amanda\Documents and Settings\Amanda\Application Data
> \Microsoft\Address Book\*.*" "e:\Network Backup\Amanda\Documents and
> Settings\Amanda\Application Data\Microsoft\Address Book\"/d/s/e/c/y/h/
> r/z >>incremlog.txt
> xcopy "\\Amanda\Documents and Settings\Amanda\Favorites\*.*" "e:
> \Network Backup\Amanda\Documents and Settings\Amanda\Favorites\"/d/s/e/
> c/y/h/r/z >>incremlog.txt
> xcopy "\\Amanda\Documents and Settings\Amanda\Local Settings
> \Application Data\Identities\*.*" "e:\Network Backup\Amanda\Documents
> and Settings\Amanda\Local Settings\Application Data\Identities\"/d/s/e/
> c/y/h/r/z /EXCLUDE:exclude.txt >>incremlog.txt
> xcopy "\\Amanda\Documents and Settings\Amanda\My Documents\*.*" "e:
> \Network Backup\Amanda\Documents and Settings\Amanda\My Documents\"/d/
> s/e/c/y/h/r/z /EXCLUDE:amanda_mydoc_exclude.txt+exclude.txt
>>>incremlog.txt

> echo --- Amanda completed on %DATE% at %TIME%>>incremlog.txt ---
> echo.>> incremlog.txt
> echo ******** Daily Incremental Backup completed on %DATE% at %TIME
> %>>incremlog.txt ********
> exit
> -------------------------------------------------------



Why don't you use ROBOCOPY instead? You can add it to your PATH to have it
as a normal command in XP, and it's now a standard command in Vista. It's
much more powerful than XCOPY, and there's a GUI for it that you can Google
for, as well.

ss.


 
Reply With Quote
 
irokradio@gmail.com
Guest
Posts: n/a
 
      01-10-2008
On Jan 9, 4:42*pm, why? <fgrirp*sgc@VAINY!Qznq.fpvragvfg.pbz> wrote:
> On Wed, 9 Jan 2008 13:31:47 -0800 (PST), iROK wrote:
> >I don't know why but whenever I run a backup using xcopy the Microsoft
> >Publisher files below get read but not copied to the backup (0 File(s)
> >copied).

>
> You didn't mention what OS/version of xcopy, just in case.
>
> http://www.xxcopy.com/index.htmxxcopy has been mentioned in 24HSHD many
> times as a better xcopy.
>
> Confirm file access by testing with a different method, 7Zip, WinZip,
> WinRAR avoid the self written script incase of errors.
>
> You get a log output like, this from WinZip
> Warning: could not open for reading: D:\Documents and
> Settings\<user>\Application Data\Powermarks\pm35.cache
>
> You have xcopy <src>\*.* <dst> it's imposisble to see what the filenames
> are not getting backed up. All your script tells you is
>
> xcopy1 files , xcopy2 files and xcopy3 files is failing, not on which
> file.
>
> xcopy "\\Amanda\Documents and Settings\Amanda\Application Data
> \Microsoft\Address Book\*.*" "e:\Network Backup\Amanda\Documents and
> Settings\Amanda\Application Data\Microsoft\Address Book\"/d/s/e/c/y/h/
> r/z >>incremlog.txt
>
> Is the 1st failure, or at least why in the Address Book folder it's any
> file OE, IE is holding open.
>
> xcopy doesn't have much in the way of errorlevels, basically ok /
> failed.
>
> At work I use Perl to do the same job, has some benefits can glob all
> files names into a single list before backup, test each file attribs /
> date/time as needed, can add error codes easily and all the file names
> sent to Winzip command line without all the long paths you have.
>
> It ends up something like this, but it's been 4 years since having to
> amend it, but it's close enough.
>
> wzzip options inputfile outputfile
>
> >Some Publisher files in the folder do, so it's nothing in an 'exclude'
> >file etc.
> >I looked at the file attributes and none of the files are read-only,
> >hidden or in use etc.

>
> >I have included a log file (incremlog.txt) to show you the output
> >where it references the offending files.
> >I have also included the relevant section of the backup .bat file to
> >show you the switches that are being passed to xcopy.

>
> >Any ideas on why just these files are not being copied would be
> >greatfully appreciated.

>
> <snip>
>
> Me


Thanks for the help.

Just to clarify, W2K OS SP4
This is backing up every file it is supposed to except for the ones it
listed in the log:
\\Amanda\Documents and Settings\Amanda\My Documents\April-June
2007.pub
\\Amanda\Documents and Settings\Amanda\My Documents\XFC CHRISTMAS
OPEN
HOUSE.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsads.pub
\\Amanda\Documents and Settings\Amanda\My Documents
\ddsadvertising.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsopenhouse.pub
\\Amanda\Documents and Settings\Amanda\My Documents\ddsworkshop07.pub
\\Amanda\Documents and Settings\Amanda\My Documents\name badge.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training2.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training3.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training4.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training5.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training6.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized Training8.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized! training.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized! training1.pub
\\Amanda\Documents and Settings\Amanda\My Documents\This Year I'm
Gonna Get Organized7.pub

strange.
 
Reply With Quote
 
irokradio@gmail.com
Guest
Posts: n/a
 
      01-10-2008
I tried to open these offending documents from my computer and it says
they are 'locked and currently being used by another program' which
isn't the case. Any other .pub file from this remote directory I can
open, just hte ones in my post. Any ideas why they would be locked and
how to unlock them?

 
Reply With Quote
 
Pennywise@DerryMaine.Gov
Guest
Posts: n/a
 
      01-10-2008
wrote:

>I tried to open these offending documents from my computer and it says
>they are 'locked and currently being used by another program' which
>isn't the case. Any other .pub file from this remote directory I can
>open, just hte ones in my post. Any ideas why they would be locked and
>how to unlock them?


reboot.
--

How To Make Fire Balls
http://www.metacafe.com/watch/102949...ke_fire_balls/
 
Reply With Quote
 
chuckcar
Guest
Posts: n/a
 
      01-10-2008
iROK <> wrote in
news:79011ac9-db15-4e08-82b9-:

> I don't know why but whenever I run a backup using xcopy the Microsoft
> Publisher files below get read but not copied to the backup (0 File(s)
> copied).
> Some Publisher files in the folder do, so it's nothing in an 'exclude'
> file etc.
> I looked at the file attributes and none of the files are read-only,
> hidden or in use etc.
>
> I have included a log file (incremlog.txt) to show you the output
> where it references the offending files.
> I have also included the relevant section of the backup .bat file to
> show you the switches that are being passed to xcopy.
>
> Any ideas on why just these files are not being copied would be
> greatfully appreciated.


<snip>

Without following *all* the options you have included (that being /z),
it looks like it isn't recursing through the directories, only copying
one file as opposed to paths. also /s /e is redundant, /e does both. /t
along with /e might fix it as well, but *don't* use /t without /e.

--
(setq (chuck nil) car(chuck) )
 
Reply With Quote
 
why?
Guest
Posts: n/a
 
      01-10-2008

On Thu, 10 Jan 2008 08:58:00 -0800 (PST), wrote:

>I tried to open these offending documents from my computer and it says
>they are 'locked and currently being used by another program' which
>isn't the case. Any other .pub file from this remote directory I can
>open, just hte ones in my post. Any ideas why they would be locked and
>how to unlock them?


That's better I get that with some video files. I have a program called
QuickView Plus that hooks into explorer. Even though I haven't played
any files and just rebooted. I still get file locked in use by another
process. Sometimes I don't, haven't been bothered about fixing it.

About 2 out of 5 times going to task manager and killing the QVP process
means the file can be deleted. I tried to rename 1 file and exploer had
a fit for 10 minutes but was able to delete it without rebooting.

It's gotten worse in the last 2 months and also starting to get shutting
Windows Explorer to prevent errors DEP protection even when not using
PC.

You could try
http://technet.microsoft.com/en-us/sysinternals
have a look at Process Explorer , Processor Monitor you may want to put
shortcuts to launch these in Startup.

Autoruns will show you what in the startup and allow you to stop stuff
running.

Process Explorer lists file handles of what is open.

Me
 
Reply With Quote
 
thanatoid
Guest
Posts: n/a
 
      01-10-2008
wrote in
news:0a1cecea-fd85-4833-abb2-
oups.com:

> On Jan 9, 4:42*pm, why?
> <fgrirp*sgc@VAINY!Qznq.fpvragvfg.pbz> wrote:
>> On Wed, 9 Jan 2008 13:31:47 -0800 (PST), iROK wrote:
>> >I don't know why but whenever I run a backup using xcopy
>> >the Microsoft Publisher files below get read but not
>> >copied to the backup (0 File(s) copied).


<SNIP>

> \\Amanda\Documents and Settings\Amanda\My Documents\This
> Year I'm Gonna Get Organized! training1.pub
> \\Amanda\Documents and Settings\Amanda\My Documents\This
> Year I'm Gonna Get Organized7.pub
>
> strange.


xxcopy (etc.) is great, but you might find it easier in the long
run to get a backup program which allows you to set up a VERY
specific backup "template" for lack of better word (as many as
you want, actually). I suggested this to someone recently in an
another group who was having a similar problem, he said it never
occurred to him and that he would try it but of course that was
the end of it. I just LOVE helping people.

Most of those backup progs are free, and there are hundreds of
them.


--
Better a cruel truth than a comfortable delusion.
Edward Abbey (1927 - 1989)
 
Reply With Quote
 
irokradio@gmail.com
Guest
Posts: n/a
 
      01-10-2008
On Jan 10, 2:35*pm, thanatoid <wait...@the.exit.invalid> wrote:
> irokra...@gmail.com wrote innews:0a1cecea-fd85-4833-abb2-
> oups.com:
>
> > On Jan 9, 4:42*pm, why?
> > <fgrirp*sgc@VAINY!Qznq.fpvragvfg.pbz> wrote:
> >> On Wed, 9 Jan 2008 13:31:47 -0800 (PST), iROK wrote:
> >> >I don't know why but whenever I run a backup using xcopy
> >> >the Microsoft Publisher files below get read but not
> >> >copied to the backup (0 File(s) copied).

>
> <SNIP>
>
> > \\Amanda\Documents and Settings\Amanda\My Documents\This
> > Year I'm Gonna Get Organized! training1.pub
> > \\Amanda\Documents and Settings\Amanda\My Documents\This
> > Year I'm Gonna Get Organized7.pub

>
> > strange.

>
> xxcopy (etc.) is great, but you might find it easier in the long
> run to get a backup program which allows you to set up a VERY
> specific backup "template" for lack of better word (as many as
> you want, actually). I suggested this to someone recently in an
> another group who was having a similar problem, he said it never
> occurred to him and that he would try it but of course that was
> the end of it. I just LOVE helping people.
>
> Most of those backup progs are free, and there are hundreds of
> them.
>
> --
> Better a cruel truth than a comfortable delusion.
> * * * * Edward Abbey (1927 - 1989)


I actually am coming from the other direction, I actually have tried
many backup programs and decided to write my own script because most
of them weren't highly configurable or very reliable.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xcopy help Tanel Kagan Computer Support 2 12-12-2007 11:01 PM
Xcopy help please Jack Gillis Computer Support 10 07-18-2007 07:29 PM
Dos 6.22 XCopy command is not working properly =?Utf-8?B?V2FsdGVyIEx1YmVsbA==?= Microsoft Certification 0 12-30-2003 08:11 PM
xcopy help C NZ Computing 5 12-02-2003 12:23 AM
HELP!! Simple xcopy from XP pro to Win 2003 failing.. Mark ASP .Net Security 1 12-01-2003 11:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57