[Novalug] capturing rsync error output?
Brandon Saxe
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:
brandon/zaurus/backup/home/tmp/ipkg/inst/
brandon/zaurus/backup/home/tmp/qtembedded-unknown/
brandon/zaurus/backup/home/userdata/
sent 24091854116 bytes received 3744464 bytes
1117114.38 bytes/sec
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
some errors:
rsync: recv_generator: mkdir
"/nas/oldbak/backup/shared/homes/brandon/.nautilus/thumbnails/file:%2F%2F%2Fhome%2Fbrandon%2Fbak%2Fkelvin%2FMy%20Documents%2FMy%20Pictures%2FPicture"
failed: Input/output error (5)
rsync: stat
"/nas/oldbak/backup/shared/homes/brandon/.nautilus/thumbnails/file:%2F%2F%2Fhome%2Fbrandon%2Fbak%2Fkelvin%2FMy%20Documents%2FMy%20Pictures%2FPicture"
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
> /nas/oldbak/rsync.log
What am I doing wrong?
TIA
Brandon
More information about the Novalug
mailing list