定制 p13eater/backup-lib 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

p13eater/backup-lib

最新稳定版本:0.1.3

Composer 安装命令:

composer require p13eater/backup-lib

包简介

PHP Backup Library

README 文档

README

Modular backup library allowing easy creation of both backup and storage modules

Usage

<?php
$backup = new \BackupLib\Backup(__DIR__ . '/config.yml');

// Optionally set PSR standard logger
$backup->setLogger($logger);

// Start the backup
$backup->run();

Config

Example configuration file

settings:
  notification_emails:
    email@dress1.com: Name
    email@dress2.com
jobs:
  Job Name 1:
    module: MySQL
    config:
      method: mysqldump
      user: root
      pass:
      port: 3306
    storage:
      LocalFile:
        location: /tmp/backup
  Job Name 2:
    module: File
    config:
      dirs: /var/www
      exclude: cache
    storage:
      SSH2:
        server: 127.0.0.1
        user: backup
        password:
        key:
        location: /tmp/backup

Modules

File

Config Options

  • dirs
  • exclude

MySQL

Config Options

  • user: root
  • pass:
  • port: 3306
  • host: 127.0.0.1
  • filePerTable: true
  • excludedDatabases
  • includedDatabases

Storage

LocalFile

Config Options

  • location = /tmp

SSH2

Backup using the SSH2 extension to a remote SFTP server

Requires ext-ssh2

Config Options

  • hostname
  • user
  • pass
  • pubKey
  • privKey
  • remoteLocation
  • authType

Google Drive

Requires p13eater/google-helper

Config Options

  • clientId
  • clientSecret
  • accessTokenLocation
  • refreshTokenLocation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-16