PHP Classes

cDBbackup: Generate PHP scripts that are MySQL backups

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 886 All time: 3,982 This week: 455Up
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: 192 Up1 in Ghana Ghana Equal
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:886
This week:0
All time:3,982
This week:455Up