承接 marcusmyers/s3backup 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固