krato / larasafe
Larasafe: a simple way to make backup of your laravel app
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/krato/larasafe
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-10-13 01:28:44 UTC
README
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
$providersarray onapp/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.phpWhere you need to setup your database connection to be used when backuping, you can also specify tables to ignore and aditional options to
mysqldumpcommand. -
files.phpOn 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.phpOn 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!