marcusmyers/s3backup
Composer 安装命令:
composer require marcusmyers/s3backup
包简介
A command line utility for backing up directories and files to AWS S3
README 文档
README
The s3backup cli tool uses a configuration file to setup and backup
directories on your computer to S3.
Install
composer global require "marcusmyers/s3backup=~2.0.0"
Make sure to place the ~/.composer/vendor/bin directory in your PATH so
the s3 executable is found when you run the s3backup backup command in
your terminal.
Configure
Once installed on your machine you will need to run s3backup init as
it should create the following directory $HOME/.s3backup and
config.json file in that directory. Open up the config.json file and
edit it to your liking, below are a couple examples:
{
"aws": {
"credentials": {
"key": "<Your AWS Access Key ID>",
"secret": "<Your AWS Secret Access Key ID>"
},
"bucket": "my-backup-bucket",
"file_prefix": "my_backups"
},
"filename": "my_laptop_backup",
"directories": [
"/Users/exampleUser/Desktop/Logos",
"/var/www/html",
"/Users/exampleUser/Documents"
]
}
{
"aws": {
"credentials": {
"key": "<Your AWS Access Key ID>",
"secret": "<Your AWS Secret Access Key ID>"
},
"bucket": "my-bucket",
"file_prefix": "my_backups"
},
"filename": "my_laptop_backup",
"directories": []
}
Usage
If you don't setup any directories in the config file you can run backup any folder you want by running the following:
s3backup backup path/to/file/or/directory
If you have predefined directories in your config file you can simply run:
s3backup backup
You can also set an environment variable to only have to run s3backup
like below:
export S3_BACKUP_SINGLE_COMMAND=1
s3backup
marcusmyers/s3backup 适用场景与选型建议
marcusmyers/s3backup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 09 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「s3」 「aws」 「backup」 「AWS S3」 「s3backup」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 marcusmyers/s3backup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 marcusmyers/s3backup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 marcusmyers/s3backup 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
This package includes a script and fail2ban configuration that allows you to use fail2ban when utilizing AWS elastic load balancer (ELB) and an apache webserver.
Elastic Driver for Laravel Scout
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
simple api library.
A replica of the AWS Elastic Beanstalk worker SQS daemon (sqsd) in PHP
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-27