OK, I get you now. I think.
You are attempting to copy a system drive of all the files with the
exclusion of some specific files and folders, and some specific file types.
The interesting thing is that when I ran it from the command line, I got an
error using the /COPYALL:
ERROR : You do not have the Manage Auditing user right.
***** You need this to copy auditing information (/COPY:U or /COPYALL)
So then I changed the /COPYALL to a /COPY

ATS and got:
ERROR 5 (0x00000005) Copying NTFS Security to Destination Directory
So then I had to amend that to /COPY

AT which worked without incident.
That is from the command line. However when I ran the same thing (with the
/COPYALL from Task Scheduler, using the System account and highest
privileges it copied without incident. Granted I was not attempting anything
as ambitious as you were.
So you may wish to try running it with the system account with the highest
privileges (again) and change the COPYALL to COPY

AT and change the R:1 to
R:5 or something and see if that works.
You could alternately look into the Z, ZB, or B options (if ownership or
auditing or security is important). However, do note that there is more
overhead if you use the backup options I just mentioned.
"bobneedshelp" <> wrote in message
news:CA045CB7-8881-4A60-BE04-...
> This is what I am putting into the ROBOCOPY command line:
>
> /COPYALL /MIR /XA:ST /XJ /XD "Recycler" "$Recycle.Bin" "Temp" "System
> Volume
> Information" "Temporary Internet Files" "NetHood" "PrintHood"
> "\\DEVICE\Data\dir" "\\DEVICE\Data\Recycle Bin" /XF pagefile.sys
> hiberfil.sys
> Thumbs.db Desktop.ini /R:1 /W:30 /LOG:c:\scripts\logs\DataBackupLog.txt
> /NP
> /FP /TBD /V
>
> This is what I see in the top part of the log file:
> Files : *.*
>
> Exc Files : pagefile.sys
> hiberfil.sys
> Thumbs.db
> Desktop.ini
>
> Exc Dirs : Recycler
> $Recycle.Bin
> Temp
> System Volume Information
> Temporary Internet Files
> NetHood
> PrintHood
> \\DEVICE\Data\dir
> \\DEVICE\Data\Recycle Bin
>
> Options : *.* /TBD /V /FP /S /E /COPY
ATS /PURGE /MIR /NP /XJ /XA:ST
> /R:1
> /W:30
>
> I'm not really specifying the /S /E /COPY
ATS /PURGE in the command line.
> I do specify /COPYALL in the command line. I'm not sure how the /COPYALL
> gets translated into this in the log file. Any thoughts?
>
> --
> Bob
>
>
> "Rogue" wrote:
>
>> A couple of quick notes:
>>
>> The /S (copy Subdirectories, but not empty ones) is mutually exclusive
>> with
>> /E (copy subdirectories, including Empty ones).
>> The /E /PURGE is redundant since it is the same as the /MIR option you
>> also
>> use.
>> You may wish to increase the value of the /R:1 as it is not enough to
>> recover from any file copy errors that may arise.
>>
>> I have provided the error codes to help you when things go awry,
>>
>>
>> Decimal Meaning If Set
>> Value
>>
>> 16 Serious error. Robocopy did not copy any files. This is either a usage
>> error or an
>> error due to insufficient access privileges on the source or destination
>> directories.
>>
>> 8 Some files or directories could not be copied (copy errors occurred and
>> the retry limit was exceeded).
>> Check these errors further.
>>
>> 4 Some Mismatched files or directories were detected. Examine the output
>> log. Housekeeping is probably necessary.
>>
>> 2 Some Extra files or directories were detected. Examine the output log.
>> Some housekeeping may be needed.
>>
>> 1 One or more files were copied successfully (that is, new files have
>> arrived).
>>
>> 0 No errors occurred, and no copying was done. The source and destination
>> directory trees are completely synchronized.
>>
>>
>> "bobneedshelp" <> wrote in message
>> news:63C2B2F7-46FA-475B-A74D-...
>> > I ran this with highest privileges under the system account. It
>> > errored
>> > out
>> > with Error 5.
>> >
>> > I changed back to an admin account and it now errors out with error 16.
>> >
>> > I am using the following options:
>> > Options : *.* /TBD /V /FP /S /E /COPY
ATS /PURGE /MIR /NP /XJ /XA:ST
>> > /R:1
>> > /W:30
>> >
>> > I don't see anything in the log file to indicate what went wrong. It
>> > looks
>> > like it completed successfully to me.
>> >
>> > Total Copied Skipped Mismatch FAILED
>> > Extras
>> > Dirs : 1393 0 1393 0
>> > 0 0
>> > Files : 14393 8 14385 0
>> > 0
>> > 1
>> > Bytes : 61.691 g 31.43 m 61.661 g 0 0
>> > 162
>> > Times : 0:06:36 0:00:05 0:00:00
>> > 0:06:30
>> >
>> > Speed : 5978089 Bytes/sec.
>> > Speed : 342.069 MegaBytes/min.
>> >
>> > Ended : Wed Oct 17 08:05:57 2007
>> >
>> > Where does it show the error in the log?
>> >
>> > It does have an errorlevel=16 from something.
>> > --
>> > Bob
>> >
>> >
>> > "bobneedshelp" wrote:
>> >
>> >> I was running it as an admin account with highest privileges. I'll
>> >> change it
>> >> to the system account to see if that makes a difference. I'll also
>> >> add
>> >> the
>> >> /v to get more output. The job will run again in the morning. It
>> >> doesn't
>> >> always error out so we will see what happens.
>> >> --
>> >> Bob
>> >>
>> >>
>> >> "Rogue" wrote:
>> >>
>> >> > To try to fix your problem, you may wish to schedule your task with
>> >> > higher
>> >> > credentials, such as the system user.
>> >> > On the general tab in the task scheduler of the robocopy calling
>> >> > script
>> >> > ,
>> >> > use the system account, and run with the highest privileges.
>> >> >
>> >> > You can use the /v option in robocopy, and create a log file to show
>> >> > which
>> >> > files it had troubles with.
>> >> >
>> >> > "bobneedshelp" <> wrote in message
>> >> > news:8E4D419E-AA19-459B-94FF-...
>> >> > > I have created a Robocopy backup script. It seems to work when I
>> >> > > am
>> >> > > logged
>> >> > > in; however, when scheduled in task manager, I see an errorlevel 8
>> >> > > or
>> >> > > 9
>> >> > > some
>> >> > > times.
>> >> > >
>> >> > > How would I find out which file(s) that the script is having
>> >> > > problems
>> >> > > with?
>> >> > > I have logs but I don't see which files it is having the issue
>> >> > > with.
>> >> > >
>> >> > > --
>> >> > > Bob
>> >> >