On Fri, Aug 13, 2010 at 9:17 AM, Don Delp <nesma...@gmail.com> wrote:

> I should have thought of Robocopy earlier.  Reading about the idea of
> using tail to snatch a bit of the file at a time made me think of it.
> We use it all the time to copy large files over small pipes.
>
>
> There is a trick to Robocopy in the flags and arguments.  Try this:
>
> robocopy /Z /V /W:1 /R:9999 \path\to\logs\ \path\to\new\location\
> apache.log
>
> /Z - restartable-on-error copy mode
> /V - verbose
> /W:1 - wait 1 second between retries  (default is much larger I think)
> /R:9999 - retry 9999 times (default is 1 million, which might actually
> be better in this case)
> \path\to\logs - folder to copy source from
> \path\to\new\location\ - folder to copy to
> apache.log - actual name of file to copy (you can not just append this
> to the source folder argument as \path\to\logs\apache.log like you
> would with most command utilities)
>

Don,
  I didn't realize robocopy would do that... I'll give it a try and let
everyone know.

Andy

-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to nlug-talk@googlegroups.com
To unsubscribe from this group, send email to 
nlug-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to