PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2012-02-16 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 847 All time: 4,009 This week: 638Up
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
  Performance   Level  
Name: Archzilon Eshun-Davies <contact>
Classes: 12 packages by
Country: Ghana Ghana
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:847
This week:0
All time:4,009
This week:638Up