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