Laravel Database backup plugin
, (*1)
Take Database backup in Laravel using following command, (*2)
php artisan run:dbbackup
Let's take backup of specific tables only using following command, (*3)
php artisan run:dbbackup --tables=table1,table2,table3
Ahaa Supercool, You can use this command to backup your Log tables separatly., (*4)
Requirements
- Laravel Filesystem
- Mysql Installed (
mysqldump
)
Installation
To get the latest version of Laravel DbBackup, run following using Composer :, (*5)
composer require webelightdev/laravel-dbbackup dev-master
Or, you may manually update require block and run composer update
, (*6)
"require": {
"webelightdev/laravel-dbbackup": "dev-master"
}
Once Laravel DbBackup is installed, You need to register the Service Provider in config/app.php
, Add following in providers
:, (*7)
Webelightdev\LaravelDbBackup\DbBackupServiceProvider::class,
composer dump-autoload
will be required., (*8)
To publish the config,, (*9)
php artisan vendor:publish --provider="Webelightdev\LaravelDbBackup\DbBackupServiceProvider"
License
The MIT License (MIT). Please see License File for more information., (*10)