PHP Classes

cDBbackup: Generate PHP scripts that are MySQL backups

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 886 This week: 1All time: 3,980 This week: 571Up
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
  Performance   Level  
Name: Archzilon Eshun-Davies is available for providing paid consulting. Contact Archzilon Eshun-Davies .
Classes: 12 packages by
Country: Ghana Ghana
Age: 37
All time rank: 6841 in Ghana Ghana
Week rank: 420 Up3 in Ghana Ghana Down
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:886
This week:1
All time:3,980
This week:571Up