PHP code example of paulvl / backup

1. Go to this page and download the library: Download paulvl/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/ */

    

paulvl / backup example snippets


php artisan vendor:publish --provider="Backup\BackupServiceProvider" --tag="config"

php artisan

php artisan backup:mysql-dump

php artisan backup:mysql-dump custom_name

php artisan backup:mysql-dump --connection=custom-connection

php artisan backup:mysql-dump --compress

php artisan backup:mysql-dump --no-compress

php artisan backup:mysql-restore --from-cloud

php artisan backup:mysql-restore --restore-latest-backup

php artisan backup:mysql-restore --yes

php artisan mysql:fix-file

php artisan backup:fix-file --filename=backup_filename

php artisan backup:fix-file --from-cloud

php artisan backup:fix-file --yes

protected function schedule(Schedule $schedule)
{
...
    $schedule->command('backup:mysql-dump')->dailyAt('00:00');
...
}