[Novalug] capturing rsync error output?

Brandon Saxe brandon20va at yahoo.com
Thu Dec 20 16:44:38 EST 2007


I see what you are saying. I will try this when I get
home.

Thanks!

--- Mark Smith <mark at winksmith.com> wrote:

> your shell redirects are not ordered correctly. 
> ordering is important.
> these two are NOT the same:
> 
> 	program > output 2>&1
> 	program 2>&1 > output
> 
> you need to do the first form.  iow, redirect stdout
> first, then redirect
> stderr to the same place as stdout.
> 
> On Thu, Dec 20, 2007 at 06:19:00AM -0800, Brandon
> Saxe wrote:
> > rsync -avz brandon /nas/oldbak/backup/shared/homes
> 2>&1 > /nas/oldbak/rsync.log
> 
> -- 
> Mark Smith
> mark at winksmith.com
> mark at tux.org
> 



More information about the Novalug mailing list