Rsync command and verbose log
Vijay Shanker Dubey
vijay.shad at gmail.com
Fri Apr 30 05:23:23 UTC 2010
Thanks guys, great suggestion. I have successfully created the shell script
and it is working like a charm.
On Fri, Apr 30, 2010 at 2:25 AM, Maxime Alarie <malarie at processia.com>wrote:
>
> 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
This thing was not needed for me as I wanted it to run on my laptop only.
But to be like you; i have added this and, getting mails successfully.
>
>
> -----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.
>
Good option. will choose only if; i can found any variant that will not
print the logs on console.
> Alternatively man 'logger'
>
logger is a little bit more more for my need. thanks but it is a good to
have in my tool kit.
> Brian
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100430/d77d3fb0/attachment.html>
More information about the ubuntu-users
mailing list