[Novalug] capturing rsync error output?
Mark Smith
mark at winksmith.com
Thu Dec 20 14:09:40 EST 2007
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