Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Robocopy Error 8 or 9

Reply
 
Old 10-15-2007   #1 (permalink)
bobneedshelp


 
 

Robocopy Error 8 or 9

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

My System SpecsSystem Spec
Old 10-16-2007   #2 (permalink)
Rogue


 
 

Re: Robocopy Error 8 or 9

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" <bobneedshelp@xxxxxx> wrote in message
news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Old 10-16-2007   #3 (permalink)
bobneedshelp


 
 

Re: Robocopy Error 8 or 9

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:
Quote:

> 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" <bobneedshelp@xxxxxx> wrote in message
> news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
Quote:

> > 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
>
My System SpecsSystem Spec
Old 10-17-2007   #4 (permalink)
bobneedshelp


 
 

Re: Robocopy Error 8 or 9

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 /COPYATS /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:
Quote:

> 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:
>
Quote:

> > 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" <bobneedshelp@xxxxxx> wrote in message
> > news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
Quote:

> > > 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
> >
My System SpecsSystem Spec
Old 10-17-2007   #5 (permalink)
Rogue


 
 

Re: Robocopy Error 8 or 9

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" <bobneedshelp@xxxxxx> wrote in message
news:63C2B2F7-46FA-475B-A74D-D8CE3A44B4B9@xxxxxx
Quote:

> 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 /COPYATS /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:
>
Quote:

>> 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:
>>
Quote:

>> > 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" <bobneedshelp@xxxxxx> wrote in message
>> > news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
>> > > 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
>> >
My System SpecsSystem Spec
Old 10-18-2007   #6 (permalink)
bobneedshelp


 
 

Re: Robocopy Error 8 or 9

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 /COPYATS /PURGE /MIR /NP /XJ /XA:ST /R:1
/W:30

I'm not really specifying the /S /E /COPYATS /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:
Quote:

> 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" <bobneedshelp@xxxxxx> wrote in message
> news:63C2B2F7-46FA-475B-A74D-D8CE3A44B4B9@xxxxxx
Quote:

> > 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 /COPYATS /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:
> >
Quote:

> >> 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" <bobneedshelp@xxxxxx> wrote in message
> >> > news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
> >> > > 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
> >> >
My System SpecsSystem Spec
Old 10-19-2007   #7 (permalink)
Rogue


 
 

Re: Robocopy Error 8 or 9

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 /COPYATS and got:

ERROR 5 (0x00000005) Copying NTFS Security to Destination Directory

So then I had to amend that to /COPYAT 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 COPYAT 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" <bobneedshelp@xxxxxx> wrote in message
news:CA045CB7-8881-4A60-BE04-0537B058FFD8@xxxxxx
Quote:

> 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 /COPYATS /PURGE /MIR /NP /XJ /XA:ST
> /R:1
> /W:30
>
> I'm not really specifying the /S /E /COPYATS /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:
>
Quote:

>> 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" <bobneedshelp@xxxxxx> wrote in message
>> news:63C2B2F7-46FA-475B-A74D-D8CE3A44B4B9@xxxxxx
Quote:

>> > 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 /COPYATS /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" <bobneedshelp@xxxxxx> wrote in message
>> >> > news:8E4D419E-AA19-459B-94FF-254019641F6B@xxxxxx
>> >> > > 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
>> >> >
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Robocopy General Discussion
robocopy error Vista General
Robocopy Error Vista General
robocopy Vista file management
Robocopy Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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