amitavroy/backup-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

amitavroy/backup-manager

Composer 安装命令:

composer require amitavroy/backup-manager

包简介

This Laravel package allows you to create a backup of your database. You can use any file system which Laravel supports like S3, FTP, local etc.

README 文档

README

This Laravel package allows you to create a backup of your database. You can use any file system which Laravel supports like S3, FTP, local etc.

Installation

Auto discovery

If you are using Laravel 5.6, then this package supports auto-discovery and so you don't need to do anything and can directly skip to the configuration part.

Normal installation

To install the package, run the following command

composer require amitavroy/backup-manager

Add the service provider inside app.php

Amitav\Backup\BackupServiceProvider::class,

After adding the service provider, publish the config file using

php artisan vendor:publish --provider="Amitav\Backup\BackupServiceProvider"

Configuration

The config file contains documentation on folder structure and other details. If you are using any other file system like S3, you will need to ensure the env variables are setup for the backup to work.

Some important env variables explained:

Variable name Description Default
BACKUP_FOLDER_NAME This is the folder name where the backups will be stored. DB_DATABASE env
BACKUP_DB_FILENAME This is the file name used along with time at the end DB_DATABASE env
BACKUP_STORAGE_DRIVER This is the Storage disk which will be used to upload the file. local

If you are using S3 file system you will need to run the below command to pull the package

composer require league/flysystem-aws-s3-v3

For this package to automatically take backup of the database, you need to add the command in you Kernel.php inside the app\Console folder.

Example:

protected $commands = [
    BackupDatbase::class,
];

$schedule->command('backup:database')->daily();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固