Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Robocopy Error 8 or 9

Reply
Thread Tools Display Modes

Robocopy Error 8 or 9

 
 
bobneedshelp
Guest
Posts: n/a

 
      10-15-2007
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
 
Reply With Quote
 
 
 
 
Rogue
Guest
Posts: n/a

 
      10-16-2007
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


 
Reply With Quote
 
bobneedshelp
Guest
Posts: n/a

 
      10-16-2007
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

>

 
Reply With Quote
 
bobneedshelp
Guest
Posts: n/a

 
      10-17-2007
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" <> 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

> >

 
Reply With Quote
 
Rogue
Guest
Posts: n/a

 
      10-18-2007
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 /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" <> 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
>> >

 
Reply With Quote
 
bobneedshelp
Guest
Posts: n/a

 
      10-19-2007
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:

> 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 /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" <> 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
> >> >

 
Reply With Quote
 
Rogue
Guest
Posts: n/a

 
      10-19-2007
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" <> 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 /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:
>
>> 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 /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" <> 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
>> >> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
how to use robocopy niks Windows Vista File Management 2 03-12-2008 02:22 PM
Robocopy leapyear Windows Vista General Discussion 9 02-25-2008 08:42 PM
robocopy mediaplayerasker Windows Vista File Management 3 02-09-2008 02:44 PM
robocopy syntax littleriver Windows Vista General Discussion 3 02-01-2008 03:37 PM
Robocopy Dag N Windows Vista General Discussion 1 09-23-2006 08:24 PM



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 58 59