# Download B2 Binary
wget -q -O /usr/bin/b2 https://github.com/Backblaze/B2_Command_Line_Tool/releases/latest/download/b2-linux
chmod +x /usr/bin/b2
 
# Add B2 Account
b2 authorize-account <b2_id> <b2_secretkey>
 
# Sync Directory
b2 sync "./local/path" "b2://<bucket-name>/<remote-path>"
 
# Upload File
b2 upload-file <bucket-name> <local/path/to/file> <remote/path/to/file>