项目作者: saeedvir

项目描述 :
laravel mysql backup
高级语言: PHP
项目地址: git://github.com/saeedvir/laravel-mysql-backup.git
创建时间: 2019-01-07T07:30:20Z
项目社区:https://github.com/saeedvir/laravel-mysql-backup

开源协议:MIT License

下载


laravel mysql backup

This package will help you to backup mysql database in laravel (easy way !)

Here are a few short examples of what you can do:



## توضیحات فارسی

این پکیج برای پشتیبان گیری از دیتابیس مای اسکیوال کاربرد دارد.

می توانید از دستورات زمان بندی در کنار آن استفاده کنید و به صورت زمان بندی پشتیبان گیری کنید.

Notice

Note that this package is in development and may have a lot of bugs at first

How to install ?

  1. composer require saeedvir/laravel-mysql-backup

How to use ?

create backup file (all tablse)

  1. php artisan mysql:backup

or

  1. php artisan mysql:backup table1,table2,table3,...

For Help :

  1. php artisan mysql:backup help

How to execute artisan commands from route or controller in Laravel ?

  1. Route::get('MysqlBackupCommands/{command}', function ($command) {
  2. /*
  3. For Example :
  4. http://127.0.0.1/MysqlBackupCommands/backup
  5. */
  6. $command = explode(' ',$command);
  7. if(!isset($command[1])){
  8. $command[1] = null;
  9. }
  10. \Artisan::call('mysql:backup',['mode'=>$command[0],'options'=>$command[1]]);
  11. });

Other Packages

Security

If you discover any security related issues, please email saeed.es91@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.