[Novalug] capturing rsync error output?
brandon20va at yahoo.com
Thu Dec 20 09:19:00 EST 2007
I am trying to move an old set of directories to a
samba share using rsync. I am getting errors from
rsync, however. I am trying to isolate the problem,
but I cannot see all the errors because the buffer on
my terminal is only so large. I want to capture the
errors into a log file but I cannot get it to work.
Here is my rsync command:
rsync -avz brandon /nas/oldbak/backup/shared/homes
2>&1 > /nas/oldbak/rsync.log
The log file gets created okay and here are some
contents using a tail command at end:
sent 24091854116 bytes received 3744464 bytes
total size is 31278132421 speedup is 1.30
the problem is the error messages are still being sent
to my console where I launch the command. Here are
rsync: recv_generator: mkdir
failed: Input/output error (5)
failed: No such file or directory (2)
I want to get ALL error messages but they won't go to
the log file?
I thought my file descriptor redirect would work: 2>&1
What am I doing wrong?
More information about the Novalug