Login   Register  
PHP Classes
elePHPant
Icontem

cDBbackup: Generate PHP scripts that are MySQL backups

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-02-16 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 780 This week: 1All time: 4,000 This week: 1,587Up
Version License PHP version Categories  
cdbbackup 1.1BSD License5.0PHP 5, Databases, Systems administration, C...
Description Author  

This class can generate PHP scripts that are MySQL backups.

It connects to a given MySQL server and extracts the list of all databases.

The class generates a PHP script with commands to execute queries that recreate the database tables and insert the records with the current values.

The generated backup PHP script is stored in a given file.

Innovation Award  
PHP Programming Innovation award nominee
February 2012
Number 2


Prize: One yearly subscription to the PHP Solutions magazine
A common way to generate a backup of a database is to generate a file with the necessary SQL statements to recreate the database tables and their records.

This class provides a variant of that approach that consists on generating a script file with PHP commands, so if you want to restore the database you just need to execute the generated PHP script.

Manuel Lemos
Picture of Archzilon Eshun-Davies
Name: Archzilon Eshun-Davies is available for providing paid consulting. Contact Archzilon Eshun-Davies .
Classes: 12 packages by
Country: Ghana Ghana
Age: 28
All time rank: 6991 in Ghana Ghana
Week rank: 283 Up1 in Ghana Ghana Equal
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file cron.php Example Example Usage
Plain text file cDBbackup.php Class The MySQL Backup Class
Accessible without login Plain text file license Lic. OpenBSD License

 Version Control Unique User Downloads Download Rankings  
 0%Total:780All time:4,000
 This week:1This week:1,587Up