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


Release history Release notifications

This version
History Node

1.0a4

History Node

1.0a3

History Node

1.0a2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
c2.backup.s3-1.0a4.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Sep 28, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page