承接 krato/larasafe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

krato/larasafe

最新稳定版本:1

Composer 安装命令:

composer require krato/larasafe

包简介

Larasafe: a simple way to make backup of your laravel app

README 文档

README

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!

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-22