Author: Victor Churchill Date: To: Hampshire LUG Discussion List Subject: Re: [Hampshire] Auto-email MySQL Database dump
On 27/09/2007, James Ashburner <hantslug@???> wrote: >
> Setting anything up at his end really isn't an option anyway. Having
> said that, I can't find any way to attach a file to an email with the
> mail command. I'm looking at doing it through Mutt now.
Good old 'mail' comes from an era that pre-dates "attachments" B-)
Depending on your export mechanism, you should be able to say either
mail -s "DB Dump taken at `date`" user@??? < /path_to_db_dump_file
or
script_to_generate_export_on_stdout | mail -s "DB Dump taken at
`date`" user@???