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
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-16