Skip to main content

This package supports back up files from local dir to S3 bucket

Project description

Introduction

Install

  • $ ./bin/pip install c2.backup.s3

setting

  • create IAM

  • Create S3 bucket

  • Option: create folder in S3 bucket

  • setting by yaml

    c2backups3.yaml:

    aws:
      id: YOUR_ID
      key: ACCOUNT_KEY
    src:
      dir: PATH_FOR_YOUR_DIR
    dist:
      backet_name: BACKET_NAME
      path: PASH_OF_BACKET
    

run

  • Using custom path of yaml file

    backup:

    $ ./bin/backups3 buckup FAIL_PATH/YAML_FILE_NAME
    

    list:

    $ ./bin/backups3 list FAIL_PATH/YAML_FILE_NAME
    

    download:

    $ ./bin/backups3 download FAIL_PATH/YAML_FILE_NAME
    

Credits

The upload script was refered from “http://www.bogotobogo.com/DevOps/AWS/aws_S3_uploading_large_file.php

Changelog

1.0a4 (2015-09-28)

  • Modify command line for sub args
  • Support listing object on the bucket
  • Support downloading object on the bucket

1.0a3 (2015-09-22)

  • Modify logging level from DEBUG to WARNING

1.0a2 (2015-09-08)

  • First release

1.0a1 (unreleased)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c2.backup.s3-1.0a4.tar.gz (4.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page