MySQL, Source Code, Web, php
PHP backup of a mysql database
MySQLDump class is now at version 2.0 and this article contains obsolete informations about the version 1.0. For information about the new version check this article
I searched a way to do a daily backup of my wordpress blog in my home pc but I didn’t find nothing that completely satisfy me, so I decided to code it.
I separated the problem in two scripts:
The first, that is written in php and runs on the web server, makes the dump of mysql databases from my hosting provider and leaves the dump on the web server.
The other one (written in bash, and running locally) downloads the site and the mysql dump from the web server, via FTP. Unfortunately I discovered that my hosting provider (Aruba.it) didn’t supply with mysqldump its server.
First of all, I searched for a php script that makes the direct dump of the database.
23 Jun 2007 inandrea 29 comments



