Redirect --stats to STDERR.
wayned at samba.org
Wed Feb 7 21:40:45 GMT 2007
On Wed, Feb 07, 2007 at 05:19:16PM +0100, LORAND Beno?t wrote:
> I have written a little script that's would email me all errors.
> rsync -vah --delete --stats <sources> <destination> >
> /var/log/sauvegarde/listoffile.log 2> /var/log/sauvegarde/errors.log
> My problem is i want to have the stats in my mail. Is it possible to
> redirect --stats to STDERR.
Since you're using 2.6.9, try using --log-file=FILE for the list of
changed files (instead of using -v), and then email the entire output
of stdout and stderr combined.
More information about the rsync