Giter VIP home page Giter VIP logo

docker-backblaze-b2's Introduction

Docker Backblaze B2 command line tool image

andreausu/backblaze-b2

Docker image for the official Backblaze B2 command line tool (Backblaze/B2_Command_Line_Tool)

Supported tags and respective Dockerfile links

How to use it

Before you can use any endpoint you have to perform the authorization by using the authorize_account command that will create the /root/.b2_account_info file that will be needed every time you perform actions on B2. This docker image can do that for you, plus refresh the authorization token every time that the authorization fails if you just define the B2_ACCOUNT_ID and B2_APPLICATION_KEY environment variables.

So you can use B2 just by passing the B2_ACCOUNT_ID and B2_APPLICATION_KEY environment variables to the docker run command, eg:

docker run --rm -v $PWD:/root -e B2_ACCOUNT_ID=your-account-id -e B2_APPLICATION_KEY=your-application-key andreausu/backblaze-b2 list_buckets

You can see all the available commands by running:

docker run --rm andreausu/backblaze-b2

Additional commands

This docker image provides some useful additional commands you can use:

  • upload_file_replace this will upload a file and then immediately delete all previous versions of that file

Usage:

docker run --rm -v $PWD:/root -e B2_ACCOUNT_ID=your-account-id -e B2_APPLICATION_KEY=your-application-key andreausu/backblaze-b2 upload_file_replace bucketName localFilePath remoteFilePath

Build and update process

This image is automatically built at every push of this repository and every time that the python:2.7-slim base image gets updated in order to ensure that bugfixes and security updates are immediately applied.

docker-backblaze-b2's People

Contributors

andreausu avatar

Watchers

 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.