Package Data | |
---|---|
Maintainer Username: | Krato1 |
Maintainer Contact: | diego@he.rnand.es (Diego Hernandes) |
Package Create Date: | 2015-07-22 |
Package Last Update: | 2015-09-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:21:41 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 1 |
Daily Downloads: | 1 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 0 |
An easy way to make backups of you laravel app.
###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',
), ~~~
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).
After all this work, just run
php artisan backup
and be happy!