krato/larasafe

Larasafe: a simple way to make backup of your laravel app
24 1
Install
composer require krato/larasafe
Latest Version:1
PHP:>=5.3.0
License:MIT
Last Updated:Sep 17, 2015
Links: GitHub  ·  Packagist
Maintainer: Krato1

Larasafe

An easy way to make backups of you laravel app.

Latest Stable Version Total Downloads Latest Unstable Version License

php artisan backup

###Install

  • You need to require this package as a composer dependency, so, run:

    composer require hernandes/larasafe:dev-master

  • After it, register the package on the $providers array on app/config/app.php

'providers' => array(

   'Illuminate\Foundation\Providers\ArtisanServiceProvider',
   'Illuminate\Auth\AuthServiceProvider',
   ...
   'Hernandes\Larasafe\LarasafeServiceProvider',
),

Configuration

  • First thing we need to use it, is publish the package config files, do it running:

php artisan config:publish hernandes/larasafe

  • Now we have 3 files inside app/config/packages/hernandes/larasafe

    • database.php

      Where you need to setup your database connection to be used when backuping, you can also specify tables to ignore and aditional options to mysqldump command.

    • files.php

      On files.php, you can choose what folders and files of your project need to be backed up, and some fine tune options, like what compression use.

    • targets.php

      On targets.php, you will need to inform where you backups should be stored, supports local folders and remote servers, also, you can specify how much time backups should be preserved (rotation).

Usage

After all this work, just run

php artisan backup

and be happy!

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

617,346,630 9,703
laravel/framework

The Laravel Framework.

561,395,438 34,860
laravel/tinker

Powerful REPL for the Laravel framework.

471,804,685 7,440