b++ Backup2Mail v0.15
Quick intro for the first-timers: Backup2Mail automagically creates backup of your database and sends it to your mailbox with a little help of Cron.
The script can now be tested without the Cron, prior to moving it to its permanent location.
First, download the .ZIP, unpack it, and change configuration settings.
Upload folder in your public web folder to test it. Open the file in your browser.
If you see the black page with green letters and there’s no errors, you are good to go. Move it to protected area (that means delete from public folder).
Have a nice backup.
001—2008.07.02.14:06
Thanks, looks pretty useful, especially on webhosts that don’t offer proper way’s to backup your database!
Some recommendations/ideas for the future though you might want to keep in mind, if you care or continue development:
- Toggle between terminal / browser output, html output in terminal is really ugly.
- Instead of mail() function use phpmailer or similar? (Yeah, of course, dependencies suck, but it would offer more options)
- Handle big files, php memory, especially on webhosts usually aren’t capable of handling a 16mb gzipped dump of an database in memory ;).
Cheers.
002—2008.07.16.16:48
sorry for writing here but what is this intro picture all about … have you become a father again or what?
003—2008.07.29.12:27
Thanks a million. It is one of the best scripts I’ve ever used.
004—2008.08.11.21:07
I use this as a cron job to backup and mail my database to a misc gmail account daily - works like a dream - the db is 7mb and gzips in my email are 1.5mb