![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-10-10 (1 month ago) ![]() | Not yet rated by the users | Total: 191 This week: 4 | All time: 8,328 This week: 79![]() |
Version | License | PHP version | Categories | |||
db-backup-restore 1.0.0 | Custom (specified... | 5 | PHP 5, Databases, Systems administration |
Description | Author | |
This class can backup and restore MySQL database dumping SQL file. Recommendations MySQL Database Backup/Restore scripts |
|
DB BackUp and Restore Class
A PHP Class that helps take backup of DB as well as restore from backup.
You will need PHP 7.x and composer.
Install using composer: composer require djunehor/db-backup-restore
use \Djunehor\DB\BackUp;
/
*
*
* @param string $host
* @param string $username
* @param string $password
* @param string $database
* @param string $charset
* @param string $lang
*/
$db = new BackUp( 'localhost', 'root', '', 'test', 'utf8', 'en' );
// To backup DB
$db->backup ();
//To restore from backup
$db->restore ( __DIR__.'/backup/20121027194215_all_v1.sql')
Adapted from the class created by yanue
Check out the issues on GitHub and/or make a pull request to contribute!
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.