Project:Backup and Migrate
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm using 2009/10/26 version and I can backup my database to a file manually or schedule. But when I create a "email" destination and run manual backup, it doesn't work. I see a successful message log "Default Database backed up successfully to DennysDiary-qqq in destination email_dennys in 3754.92 ms."

I'm using SMTP module to send module and I use SMTP's test function to make sure the send mail function is ok. Is there any suggestion? thanks.

Comments

#1

How big are the backup files? Most mail servers limit attachments somewhere in the 5-10mb range and even if you're below the limits email can be flaky with large files. The email destination type is really only suitable for very small backup files.

Try backing up just 1 small table (run a backup with all but 1 table excluded, and exclude data from all tables) and see if smaller files can get through. If it is a size issue you may want to consider using ftp or s3 for your offsite backups.

#2

The backup file is only 984804 bytes... I think it's not size problem because I'm using Gmail and the limit is 20mb.

#3

No it's probably not a size thing at less than a megabyte, but did you try sending a tiny backup just to double check? Are you getting other emails from the site?

#4

I use a small backup (only system table) and the destination is "Manual Backups Directory", it works. But I changed the destination to a email address, I still see the log is success, but I didn't receive the mail.

Is there any debug mode for it? And do you generate a temporary file before send mail?

#5

I ran into this recently too. Attempting to mail a backup spun and spun. After cycling apache and refreshing, this was the warning:

warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in path_to_drupal\modules\backup_migrate\includes\destinations.email.inc on line 139.

Seems to me that this module is calling php mail directly instead of going through the smtp module.

nobody click here