Skip to content

saeedvir/laravel-mysql-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 ?

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.