Rsync command and verbose log

Maxime Alarie malarie at processia.com
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 yourcompany.com

-----Original Message-----
From: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] 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 gmail.com> 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
suggest
> me a way to achieve this.
> Question: If I execute the rsync command with -v flag, it will print a
lot
> of messages on the console. Is there any way. So, I can redirect these
logs
> 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'

Brian

-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list