Close
Not a member yet?
Register now and get started.
Register for an account
Home
Hosting
Shared Hosting Plans
Ulimited Plan
Bussiness Plans
Dedicated Server
Virtual Private Server
VPBX Hosted Phone System
Professional Email Hosting
Domain
Register a domain name
Transfer a domain name
Manage my domains
Tips for registration
Frequently Asked Questions
Design
Website Design
Portfolio
Templates
Marketing
Online Marketing
Email Marketing
Google SEO
Organic SEO
Affordable Package
Guaranteed Package
Enterprise Package
DIY Package
About Us
About WebNova
Join our Nova Team
Privacy Policy
Terms of Services
Support
Knowledge Base
Download
Submit a ticket
Contact
Account
-- Entire Support Site --
Support Center
»
Downloads
»
How to e-mail yourself an automatic backup of your MySQL database table with PHP
How to e-mail yourself an automatic backup of your MySQL database table with PHP
Description
This script will send an e-mail to you with an .sql file attached, thus enabling you to back up specific tables easily. If you have a database-driven site, your mysql info is what is most valuable to you! You could even set up an e-mail account just to receive these backups…
First of all, this script works best if you place it in a non-web accessible folder and run a daily cron job on it. Cron is a server “tool” that can run scripts regularly or at specified times (thus you don’t need to call them in your browser). I used to be scared of cron but it’s really easy. Here are two tutorials if you are interested Cron Tutorial 1 … Cron Tutorial 2. If you have cPanel on your server it’s even easier (see here).
The code is below, and requires the Pear Mime and Pear Mail packages. If you want to download everything at once, I have provided a zip file at the end of this post.
Known limitations of this script: if you have a big database table over 2mb, you will probably run into php timeouts and php mail attachment limits. Check this comment for information about compressing the backup file before sending or storing it.
http://www.theblog.ca/mysql-email-backup
Alternatives:http://www.dagondesign.com/articles/automatic-mysql-backup-script/#logging
Download Details
Filename:
mysqlbackup.zip
Total Downloads:
47
Size:
36.38 KB
# Comments:
0
Creation Date:
16 Nov 2009 8:05 PM
Modified:
16 Nov 2009 8:06 PM
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (optional)
Comment:
Login
[Lost Password]
E-mail:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Troubleshooter
Download Options
Download
Add Comment
Add to Favorites
Hosting
Shared Hosting Plans
Dedicated Server
Virtual Private Server
VPBX Hosted Phone System
Professional Email Hosting
Domain
Register a domain name
Transfer a domain name
Manage my domains
Tips for registration
Frequently Asked Questions
Design
Website Design
Portfolio
Templates
Marketing
Online Marketing
Email Marketing
SEO Marketing
About Us
About WebNova
Join our Nova Team
Privacy Policy
Terms of Services
Copyright © 2010 -
WebNova Multimedia Pty Ltd
- All rights reserved. Conforms to W3C Standard
XHTML
&
CSS