SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysqldump - email dump as attachement?

    I e-mail myself my dump, but it doesn't come as an attachement (I want it as an attachement to I can save it to my hard drive.

    Here is what I use to dump to my e-mail address.

    Code:
    mysqldump --opt -uusername -ppassword database | mail -s 'subjectheader' myemail@myemail.com

    This sends me the dump, but not as an attachement. It's a small database. I just want to know how to send it as an attachement.

    Thanks for any help.

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you tried dumping to a file then piping that through mail?
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •