[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stdout in script
On 03/20/15 04:02, Antoine Michard wrote:
> Echo to backup log (send to me by mail after backup) work great except for
> info about tarsnap stats.
>
> Here a small extract of my script:
>
> ...
> ${tarsnap} -c -f `hostname -s`-Data-${backupday} \
> --print-stats \
> ${mysqldir} \
> /usr/local/www \ >> ${backupdir}/backup.log
The statistics printed by --print-stats are sent to stderr. You want to
redirect that to backup.log as well.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid