PHP code example of crodas / db-backup
1. Go to this page and download the library: Download crodas/db-backup library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
crodas / db-backup example snippets
$backup = new crodas\DbBackup("mysql://root@localhost/foo", __DIR__ . '/backup-dir/');
$backup->dump(); // Create a new backup