PHP code example of cyberwizard / dbsafeguard
1. Go to this page and download the library: Download cyberwizard/dbsafeguard 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/ */
cyberwizard / dbsafeguard example snippets
// Local backup daily at midnight
Schedule::command('backup:db')->daily();
// S3 backup twice daily
Schedule::command('backup:db --disk=s3')->twiceDaily(1, 13);
bash
php artisan backup:db
bash
php artisan backup:db --disk=s3