![]() In order to see the raw request headers you may export B2_DEBUG_HTTP=1 before calling the CLI. Please pay attention not to launch the tool from the directory that you are syncing, or the logs will get synced to the remote server (unless that is really what you want to achieve).įor advanced users, a hidden option -logConfig can be used to enable logging in a user-defined format and verbosity. Verbose logs to stdout can be enabled with the -verbose flag.Ī hidden flag -debugLogs can be used to enable logging to a b2_cli.log file (with log rotation at midnight) in current working directory. Or mapping to a directory where account info will be kept:ĭocker run -rm -it -v :/b2 b2:latest authorize-accountĭocker run -rm -v :/b2 b2:latest create-bucket test-bucket allPrivateĭocker run -rm -v :/b2 -v :/data b2:latest upload-file test-bucket /data/local-file remote-fileĭocker run -rm -v :/b2 -v :/data b2:latest ls test-bucketĭocker run -rm -v :/b2 -v :/data b2:latest download-file-by-name test-bucket remote-file /data/local-file-2 Contrib Detailed logs 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 environment 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 You can also mount with rclone and use the native file browser though I’ve had some odd issues with uploading that way. Including the experimental (first party) web GUI. But you could look into rclone and some of the GUIs there. When authorizing with application keys, this tool requires that the key Well, FWIW, there is no first party B2 GUI for any platform and the first party command line client does do much. To get more details on a specific command use b2 -help. The default file to use is: ~/.b2_account_info. ![]() 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |