Hi, I'm trying to backup my database and send the attachment to my hotmail account. Everything goes well using the following script, but the file doesn't get attached. Instead, I get a message of completely garbled text and squares. It's like the email was trying to read the bits from the .gz file. Here's the cron command I use:
mysqldump --user MY_USERNAME -pMY_PASSWORD --databases MY_DATABASE_NAME | gzip -cq9 > /home/MY_USERNAME/database_backup.sql.gz && mail -s "database backup" MY_EMAIL_ADDRESS < /home/MY_USERNAME/database_backup.sql.gz



LinkBack URL
About LinkBacks
Reply With Quote







