2017 © Pedro Peláez
 

library mds-backup

Laravel 5 Command Line Tool for Backup Database

image

mydisha/mds-backup

Laravel 5 Command Line Tool for Backup Database

  • Friday, October 28, 2016
  • by mydisha
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

mds-backup

Based on open source project https://github.com/larkinwhitaker/laravel-db-backup, (*1)

Support Laravel Version 5, 5.1, 5.2, 5.3., (*2)

Installation

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'
)

Configuration

Publish the configuration file into your project by run this command, (*6)

php artisan vendor:publish

Usage

Backup

Create mysql dump file with default location in /storage/backup_db, (*7)

php artisan db:backup
For specific database
php artisan db:backup --database=mysql

Restore

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

Change Initial Dump Filename

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' => '',

Original Contributor

https://github.com/larkinwhitaker, (*12)

The Versions

28/10 2016

dev-master

9999999-dev

Laravel 5 Command Line Tool for Backup Database

  Sources   Download

MIT

The Requires

 

by Dias Taufik Rahman

database laravel artisan backup