Notes / Rclone + Backblaze B2

TODO: Add descriptive text and links.

Backblaze B2

Create bucket

Under My Account > Buckets > Create a Bucket. Bucket names are globally unique, e.g. wevaperu.

Create application key

Under My Account > App Keys, create an application key for rclone.

Success! Your new application key has been created. It will only appear here once.
keyID: *************************
keyName: rclone
applicationKey: *******************************

Rclone

Configure b2 remote

$ rclone config
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> b2-remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
...
 5 / Backblaze B2
   \ "b2"
...
Storage>     b2
** See help for b2 backend at: https://rclone.org/b2/ **

Account ID or Application Key ID
Enter a string value. Press Enter for the default ("").
account> *************************                                              # keyID
Application Key
Enter a string value. Press Enter for the default ("").                         # applicationKey
key> *******************************
Permanently delete files on remote removal, otherwise hide files.
Enter a boolean value (true or false). Press Enter for the default ("false").
hard_delete>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
--------------------
[b2-remote]
type = b2
account = *************************
key = *******************************
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:

Name                 Type
====                 ====
b2-remote            b2

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
$ rclone lsd b2-remote:

Configure crypt remote

$ rclone config
Current remotes:

Name                 Type
====                 ====
b2-remote            b2

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> crypt-b2-remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
...
10 / Encrypt/Decrypt a remote
   \ "crypt"
...
Storage>     crypt
** See help for crypt backend at: https://rclone.org/crypt/ **

Remote to encrypt/decrypt.
Normally should contain a ':' and a path, eg "myremote:path/to/dir",
"myremote:bucket" or maybe "myremote:" (not recommended).
Enter a string value. Press Enter for the default ("").
remote> b2-remote:wevaperu
How to encrypt the filenames.
Enter a string value. Press Enter for the default ("standard").
Choose a number from below, or type in your own value
 1 / Don't encrypt the file names.  Adds a ".bin" extension only.
   \ "off"
 2 / Encrypt the filenames see the docs for the details.
   \ "standard"
 3 / Very simple filename obfuscation.
   \ "obfuscate"
filename_encryption>
Option to either encrypt directory names or leave them intact.
Enter a boolean value (true or false). Press Enter for the default ("true").
Choose a number from below, or type in your own value
 1 / Encrypt directory names.
   \ "true"
 2 / Don't encrypt directory names, leave them intact.
   \ "false"
directory_name_encryption>
Password or pass phrase for encryption.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Password or pass phrase for salt. Optional but recommended.
Should be different to the previous password.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Remote config
--------------------
[crypt-b2-remote]
type = crypt
remote = b2-remote:wevaperu
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:

Name                 Type
====                 ====
b2-remote            b2
crypt-b2-remote      crypt

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

Mounting

See rclone mount. On Windows need WinFsp.

$ rclone mount crypt-b2-remote: /mnt/x        # Linux
> rclone mount crypt-b2-remote: X:            # Windows
$ rclone mount b2-remote:wevaperu /mnt/x      # Linux
> rclone mount b2-remote:wevaperu X:          # Windows