2017 © Pedro Peláez
 

library laravel-backup

A Laravel backup example.

image

yk/laravel-backup

A Laravel backup example.

  • Tuesday, January 24, 2017
  • by yassine-khachlek
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Backup

This laravel package create a backup of your database. Backup files are stored in json files instead of sql for less size and easy access to the backuped data for any other treatments than importation in mysql database., (*1)

Installation

Install wia composer:, (*2)

composer require yk/laravel-backup

And add the service provider in config/app.php:, (*3)

Yk\LaravelBackup\LaravelBackupProvider::class,

How to use

The package expose 2 commands., (*4)

To export you database use:, (*5)

php artisan backup:export

To import the last backup use:, (*6)

php artisan backup:import

Note

You can found your backups in your application storage folder inside the backups folder., (*7)

When you use the importation command, all tables are erased, so only the imported backup data will be present., (*8)

TODO

  1. Change or make selectable, the number of records per json file.
  2. Add files backup compression using gz or zip.
  3. Add a command for files backup.
  4. Some applications use more than database, so maybe should support for multiple databases backup.

License

GPLv2

Copyright (c) 2016 Yassine Khachlek yassine.khachlek@gmail.com, (*9)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version., (*10)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*11)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA., (*12)

The Versions

24/01 2017

dev-master

9999999-dev https://github.com/yassine-khachlek/laravel-backup

A Laravel backup example.

  Sources   Download

GPLv2

The Requires

  • php >=5.6.4

 

by Yassine Khachlek

laravel package example

24/01 2017

1.0

1.0.0.0 https://github.com/yassine-khachlek/laravel-backup

A Laravel backup example.

  Sources   Download

GPLv2

The Requires

  • php >=5.6.4

 

by Yassine Khachlek

laravel package example