terminus-plugin-project/terminus-backup-all-plugin
Composer 安装命令:
composer require terminus-plugin-project/terminus-backup-all-plugin
包简介
Backup All - A Terminus plugin to backup all available Pantheon sites with one command.
README 文档
README
Version 2.x
Terminus plugin to backup all available Pantheon sites with one command.
Usage:
$ terminus backup-all:[create|get|list] [--env=<id>] [--element=<element>] [--framework=<framework>] [--skip=<items>] [--date=<YYYY-MM-DD>] [--changes=<change>] [--team] [--owner=<user>] [--org=<org>] [--name=<regex>] [--async]
The associative arguments are all optional and the same filtering rules as the terminus site:list command apply.
The --env option value filters by environment. Valid values include dev, test, live or any valid multidev environment.
The --element option value filters by element. Valid values include code, database or files.
The --framework option value filters by framework. Valid values include backdrop, drupal, drupal8 or wordpress.
The --skip option value is a comma separated list of one or more elements, entire environments or specific site environments to omit from backups.
The --date option value filters by a specified date (or colon separated range) and returns the backups for any date if omitted.
The --changes option is only necessary when the environment is in sftp connection mode and decides how to handle pending filesystem changes. Valid values include commit, ignore or skip and the default is commit which will create an automatic commit of any pending filesystem changes before completing the backup. The difference between ignore and skip is ignore will continue and make the backup anyway (without pending filesystem changes), whereas skip will not.
The --async option value will process the request asynchronously.
Examples:
$ terminus ball:create
This is an alias for the terminus backup-all:create command and will backup all elements of all environments for all available sites and perform the backup after committing pending filesystem changes.
$ terminus ball:create --async
Same as above but process the request asynchronously.
$ terminus ball:create --element=code --changes=ignore --skip=test,my-experiment.dev
Backup the code only of all environments for all available sites and perform the backup without committing pending filesystem changes, skipping all test environments and the specific site environment my-experiment.dev.
$ terminus ball:create --framework=drupal,drupal8
Backup all elements of all environments for all available sites that include the drupal and drupal8 (Drupal 6, 7 and 8) frameworks and perform the backup after committing pending filesystem changes.
$ terminus ball:list
This is an alias for the terminus backup-all:list command and will list the backups of all elements in all available site environments.
$ terminus ball:list --env=dev
List the backups of all elements in the dev environment only of all available sites.
$ terminus ball:list --element=code
List the backups of the code only for all available site environments.
$ terminus ball:list --framework=drupal,drupal8
List the backups of all elements in all environments for all available sites that include the drupal and drupal8 (Drupal 6, 7 and 8) frameworks.
$ terminus ball:list --date=YYYY-MM-DD
List the backups for all available site environments on the specified date.
$ terminus ball:list --date=YYYY-MM-DD:YYYY-MM-DD
Same as above but within the specified colon separated date range.
$ terminus ball:list --name=awesome --date=YYYY-MM-DD
List the backups for all available site environments on the specified date that contain awesome in the name.
$ terminus ball:get
This is an alias for the terminus backup-all:get command and will retrieve the latest files backup for all available site environments.
$ terminus ball:get --name=awesome
Retrieve the latest files backup for all available site environments that contain awesome in the name.
$ terminus ball:get --element=db
Retrieve the latest database backup for all available site environments.
$ terminus ball:get --framework=drupal,drupal8
Retrieve the latest files backup of all environments for all available sites that include the drupal and drupal8 (Drupal 6, 7 and 8) frameworks.
$ terminus ball:get --env=dev --element=code --date=YYYY-MM-DD
Retrieve the latest code backup of the dev environment only for all available sites on the specified date.
$ terminus ball:get --env=dev --element=code --date=YYYY-MM-DD:YYYY-MM-DD
Same as above but within the specified colon separated date range.
$ terminus ball:get --name=awesome --date=YYYY-MM-DD
Retrieve the latest files backup for all available site environments on the specified date that contain awesome in the name.
Installation:
For installation help, see Extend with Plugins.
mkdir -p ~/.terminus/plugins composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-backup-all-plugin:~2
Testing:
Replace my-test-site with the site you want to test:
export TERMINUS_SITE=my-test-site cd ~/.terminus/plugins/terminus-backup-all-plugin composer install composer test
Configuration:
If you wish to automate backups, see the core terminus backup:automatic command.
Help:
Run terminus help ball:[create|get|list] for help.
terminus-plugin-project/terminus-backup-all-plugin 适用场景与选型建议
terminus-plugin-project/terminus-backup-all-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.47k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 01 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「backup」 「pantheon」 「terminus」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 terminus-plugin-project/terminus-backup-all-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 terminus-plugin-project/terminus-backup-all-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 terminus-plugin-project/terminus-backup-all-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
A SDK for working with B2 cloud storage.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
A Terminus plugin for defrosting frozen Pantheon sites.
Pantheon plugin to deploy upstream branch / features to specified branches before committing to master environment.
A simple database backup manager for Symfony2 with support for S3, Rackspace, Dropbox, FTP, SFTP.
统计信息
- 总下载量: 1.47k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-21