On 3/17/06, Atul Kumar <[EMAIL PROTECTED]> wrote:
>
>
> try this command for sending mail as attachment.
> uuencode filename  filename  | mail [EMAIL PROTECTED]
>
> See the man pages for uuencode.
>
> - Atul
>
> ________________________________
>
> From: [EMAIL PROTECTED] on behalf of
> Raj Shekhar
> Sent: Thu 3/16/2006 11:44 PM
> To: The Linux-Delhi mailing list
> Subject: Re: [ilugd] How to get an automated email with attachment
>
>
>
> in infinite wisdom abhishek jain spoke thus  On 03/16/2006 08:43 PM:
> > Dear Friends,
> > I have a server and on that i want :
> > 1)Take a backup of mysql database
> > 2)Gzip the file
> > 3)Sent to me as an attachment.
>
> Check the mysqldump page of the online mysql manual (dev.mysql.com) -
> there are a few user comments detailing how to do what you want.
>

Abhishek, try this out...

mount /mnt/backup # mount ur backup disk
mysqldump -u root --password=<passwd> --opt mydb > "/mnt/backup/mydb_`date
'+%d-%h-%y'`.sql"  # datewise backup
gzip "/mnt/backup/mydb_`date '+%d-%h-%y'`.sql"
umount /mnt/backup




--
Cheers!!!

...Jay
_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to