Rsync command and verbose log

Maxime Alarie malarie at
Thu Apr 29 20:55:21 UTC 2010

If you are like me, I like receiving a confirmation email when the
backup is done. (I have automated backups with cron)

tail logfile.txt | mail -s "$DATE Bakup"  you at

-----Original Message-----
From: ubuntu-users-bounces at
[mailto:ubuntu-users-bounces at] On Behalf Of Brian McKee
Sent: Thursday, April 29, 2010 4:27 PM
To: Ubuntu user technical support,not for general discussions
Subject: Re: Rsync command and verbose log

On Thu, Apr 29, 2010 at 1:20 PM, Vijay Shanker Dubey
<vijay.shad at> wrote:
> Hi,
> I am creating a script to sync my important documents between two
system. I
> want my script to generate a log file for the last action. can you
> me a way to achieve this.
> Question: If I execute the rsync command with -v flag, it will print a
> of messages on the console. Is there any way. So, I can redirect these
> to a file?

Stick | tee logfile.txt on the end of the command and you get it on
the screen and in that file both.

Alternatively man 'logger'


ubuntu-users mailing list
ubuntu-users at
Modify settings or unsubscribe at:

More information about the ubuntu-users mailing list