Using BackBlaze B2 from CentOS 7 to Upload Files
-
# yum install python-pip # pip install --upgrade b2This gives us the b2 command on CentOS 7. Now we can use this to talk to the B2 servers.
$ b2 authorize_account youraccountid Using https://api.backblaze.com Backblaze application key: yourapplicationkeythatyougenerate $ b2 list_bucketsThis will list all of your current buckets. If you need to make a new bucket:
$ b2 create_bucket myBucket allPublic 10f72c8d00b1ea614ceb0319What is returned is the bucket ID. Use your b2 list_buckets command again to see that your list has grown. We can use b2 ls to see that our bucket is empty, too.
$ b2 ls myBucketNow that we have a bucket we can upload a file to it.
$ b2 upload_file myBucket system.bak backups/system.bakThat's it!