Socket
Socket
Sign inDemoInstall

b2pipe

Package Overview
Dependencies
127
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    b2pipe

A command-line tool that lets you stream large amounts of data into a b2 bucket.


Version published
Weekly downloads
1
Maintainers
1
Install size
10.8 MB
Created
Weekly downloads
 

Readme

Source

b2pipe

An easy way to stream an unknown amount of data into a file on b2 cloud.

options

Options:
  --help         Show help                                             [boolean]
  --version      Show version number                                   [boolean]
  --concurrency  max concurrent connections                        [default: 20]
  --path         path on b2 container                                 [required]
  --bucket       bucket on b2                                         [required]
  --type         content-type for the file being uploaded       [default: "raw"]
  --account      b2 account                                           [required]
  --key          b2 key                                               [required]
  --silent       will not output to stderr                      [default: false]
  --attempts     max upload attempts                               [default: 30]
  --chunk                                                     [default: 5000000]

example

Extremely simple example

echo "hello world" | b2pipe --account B2_ACCOUNT --key B2_KEY --bucket B2_BUCKET --path "helloworld.txt" --type "text/plain"

Of course you can do more complex things like the following

zfs send pool@latest | pigz | b2pipe --concurrency 20 --account B2_ACCOUNT --key B2_KEY --bucket B2_BUCKET --path "pool.gz"

Which would effectively stream+gzip, a ZFS pool to b2 cloud.

FAQs

Last updated on 10 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc