Giter Site home page Giter Site logo

flickr-s3-backup's Introduction

flickr-s3-backup

Back up Flickr photos on Amazon S3

Setup Virtual Env

If you choose to use a virtual environment to run your script, here is how you do it.

virtualenv -p python3 venv

Access the virtual env with:

source ./venv/bin/activate

From there you can execute the script.

Leave the virtual env with:

deactivate

Install Dependencies

From with the virtual env, execute the following to install the dependencies:

pip3 install -r requirements.txt

Environment Variables

AWS_ACCESS_KEY_ID === The access key for your AWS account with the S3 bucket (OPTIONAL)

AWS_SECRET_ACCESS_KEY === The secret key for your AWS account (OPTIONAL)

FLICKR_BUCKET === Target AWS S3 bucket name

FLICKR_KEY === Flickr API key

FLICKR_SECRET === Flickr API secret

FLICKR_URL === The root Flickr URL to your photos

S3_PATH === The path (prefix) for the S3 keys for the photos

S3_REGION === AWS region where the S3 bucket resides

S3_STORAGE_CLASS === AWS S3 storage class (DEFAULT: STANDARD_IA; CHOICES: STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA|INTELLIGENT_TIERING|GLACIER|DEEP_ARCHIVE)

If AWS cli is installed and configured, you may not need to specify the environment variables necessary for your AWS credentials, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. See configure credentials in boto3's documentation. There are many ways to specify your AWS credentials. Pick the one that is best for you.

flickr-s3-backup's People

Contributors

perrygeorget avatar tgerla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.