saeedvir/laravel-mysql-backup

Export Mysql Database To The Single File (.sql)

dev-master 2019-08-29 04:42 UTC

This package is auto-updated.

Last update: 2024-04-29 03:18:41 UTC


README

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 ?

composer require saeedvir/laravel-mysql-backup

How to use ?

create backup file (all tablse)

php artisan mysql:backup

or

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

For Help :

php artisan mysql:backup help

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

Route::get('MysqlBackupCommands/{command}', function ($command) {

	/*
		For Example :
		
		http://127.0.0.1/MysqlBackupCommands/backup 
    
	*/

	$command = explode(' ',$command);
	if(!isset($command[1])){
		$command[1] = null;
	}
  
    \Artisan::call('mysql:backup',['mode'=>$command[0],'options'=>$command[1]]); 

});

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.