dev-master
9999999-devLaravel 5 Command Line Tool for Backup Database
MIT
The Requires
- php >=5.5.0
- illuminate/support 5.*
by Dias Taufik Rahman
database laravel artisan backup
Wallogit.com
2017 © Pedro Peláez
Laravel 5 Command Line Tool for Backup Database
Based on open source project https://github.com/larkinwhitaker/laravel-db-backup, (*1)
Support Laravel Version 5, 5.1, 5.2, 5.3., (*2)
Update composer.json and put this package, (*3)
"mydisha/mds-backup": "dev-master"
Or run following command, (*4)
composer require mydisha/mds-backup
Next step,
Edit Service Provider, located in config/app.php and put this into 'providers' array., (*5)
'providers' => array(
'Mydisha\MdsBackup\DBBackupServiceProvider'
)
Publish the configuration file into your project by run this command, (*6)
php artisan vendor:publish
Create mysql dump file with default location in /storage/backup_db, (*7)
php artisan db:backup
php artisan db:backup --database=mysql
To restore the dump mysql file, run this following command, (*8)
php artisan db:restore [dbname]
To show list of dump file, run this following command, (*9)
php artisan db:restore
by default this package using datetime as file name, but you can change the filename started with your custome name, ex : laravel-date.sql, (*10)
you can change at config file mds-backup.php, (*11)
'initial_name' => '',
https://github.com/larkinwhitaker, (*12)
Laravel 5 Command Line Tool for Backup Database
MIT
database laravel artisan backup