Docker imageĪn official docker image is provided for these who want to use B2 Command Line Tool in a docker environment.Īn example workflow could be (with passing environmental variables):ī2_APPLICATION_KEY= B2_APPLICATION_KEY_ID= docker run -rm -e B2_APPLICATION_KEY -e B2_APPLICATION_KEY_ID b2:latest authorize-accountī2_APPLICATION_KEY= B2_APPLICATION_KEY_ID= docker run -rm -e B2_APPLICATION_KEY -e B2_APPLICATION_KEY_ID b2:latest create-bucket test-bucket allPrivateī2_APPLICATION_KEY= B2_APPLICATION_KEY_ID= docker run -rm -e B2_APPLICATION_KEY -e B2_APPLICATION_KEY_ID -v :/data b2:latest upload-file test-bucket /data/local-file remote-fileī2_APPLICATION_KEY= B2_APPLICATION_KEY_ID= docker run -rm -e B2_APPLICATION_KEY -e B2_APPLICATION_KEY_ID -v :/data b2:latest ls test-bucketī2_APPLICATION_KEY= B2_APPLICATION_KEY_ID= docker run -rm -e B2_APPLICATION_KEY -e B2_APPLICATION_KEY_ID -v :/data b2:latest download-file-by-name test-bucket remote-file /data/local-file-2 Note that using many threads could in some cases be detrimental to the other users on your network. Experiment with using the -threads parameter to increase performance. Users with high performance networks, file sets with very small files or high network latency, will usually benefit from increased parallelism. You can find the details for each command in the help for Each different command may required additionalĬapabilities. You provide on the command line and translate them into bucket IDs for theī2 Storage service. Have the 'listBuckets' capability so that it can take the bucket names When authorizing with application keys, this tool requires that the key The default file to use is: ~/.b2_account_infoįor more details on one command: b2 -help The environment variable B2_ACCOUNT_INFO specifies the sqliteįile to use for caching authentication information. B2 authorize-account ī2 cancel-all-unfinished-large-files bucketNameī2 copy-file-by-id
0 Comments
Leave a Reply. |