linkorb/snapshot
Composer 安装命令:
composer require linkorb/snapshot
包简介
Database snapshot application
README 文档
README
Mysql snapshot utility
Features
- Backup single database, or all databases on a server, to Amazon S3
- Compressesion
- Encryption (GPG)
- Supports multiple servers in single config
- Supports multiple storage backends in single config
- Simple database restore
- Lists remote snapshots with wildcards
Configuration
Snapshot is configured using a snapshot.yml file.
The file will be automatically loaded from the current working directory, or from /etc/snapshot.yml.
You can also pass --config or -c to specify the exact config filename you wish to use.
To get you started, simply run:
cp snapshot.yml.dist snapshot.yml
and edit snapshot.yml to fit your environment
Example snapshot.yml
In the following config you'll find 2 configured database servers (server-a and server-b), and one storage backend (store1):
workdir: /snapshot servers: server-a: username: root password: super_secret_password address: 10.0.0.100 port: 3306 server-b: username: root password: mega_secret_password address: 10.0.0.101 port: 3306 storage: store1: type: s3 region: eu-west-1 access_key: HELLO secret_key: SHHHHHHH bucket: my_bucket_name prefix: "snapshot/" gpg_password: s3cr3t
Usage examples:
Backing up a whole server:
The following command will backup all databases on server-a to store1.
bin/snapshot server:backup server-a store1
Backing up a single database:
The following command will backup database my_db on server-a to store1.
bin/snapshot database:backup server-a my_db store1
List remote snapshots
The following command will list all snapshots in store1.
bin/snapshot snapshot:list store1
The following command will list all snapshots in store1 matching a filter.
bin/snapshot snapshot:list store1 snapshot-a/*/my_db
Restoring backups
The following command will restore a backup of snapshot server-a/20160101/my_db from store1 onto server-b:
bin/snapshot snapshot:restore store1 server-b server-a/20160101/my_db
License
MIT. Please refer to the license file for details.
Brought to you by the LinkORB Engineering team
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!
linkorb/snapshot 适用场景与选型建议
linkorb/snapshot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 176 次下载、GitHub Stars 达 3, 最近一次更新时间为 2016 年 10 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「mysql」 「snapshot」 「backup」 「linkorb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 linkorb/snapshot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 linkorb/snapshot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 linkorb/snapshot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
PDF or Image generation from a Url or HTML page
Store your language lines in the database, yaml or other sources
Captures website screenshot and converts website to PDF using Screenshot machine - online website screenshot generator and website to PDF converter.
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Guzzle Snapshots Middleware
统计信息
- 总下载量: 176
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-02