- Where "Key ID" is
account. - Where "Application key" is
key. - Using
b2as the remote name and used in all task examples (e.g. asb2:).
$ rclone config
# n) New remote
# name: b2
#XX / Backblaze B2
# \ "b2"
# Account ID or Application Key ID
# Enter a string value. Press Enter for the default ("").
# account>
# Application Key
# Enter a string value. Press Enter for the default ("").
# key> All done, confirm settings:
$ cat ~/.config/rclone/rclone.conf
[b2]
type = b2
account = KEY_ID
key = APPLICATION_KEY
hard_delete = true$ rclone lsd b2:
# -1 2019-08-27 23:02:27 -1 BUCKET_01
# -1 2019-08-27 23:02:27 -1 BUCKET_02
# -1 2019-08-27 23:02:27 -1 BUCKET_03Will perform the following:
- Push all files from
/path/to/local/sourceto target bucketBUCKET_NAME. - Files found in target bucket not in source will be deleted.
- Files considered identical if file size and modification date match.
- Progress displayed to terminal, output sent to
/path/to/rclone.log. - Using
--fast-listto actionrcloneto pull all current target bucket files in a single/minimal number of API calls. Based on the number of target bucket files to consider this may have positive/negative execution time/cost benefit. - Use
--transfersto control number of parallel file transfers to target bucket, tune based on available upstream bandwidth.
$ rclone sync \
--fast-list \
--log-file /path/to/rclone.log \
--progress \
--stats-one-line \
--transfers 32 \
--verbose \
/path/to/local/source \
b2:BUCKET_NAME- Identical to Synchronize local files to bucket, but using
--checksumflag means files considered identical if file size and SHA-1 match. - A more thorough synchronization, but will take longer to execute as
rclonemust calculate SHA-1 checksums for every source file - B2 keeps a SHA-1 checksum for every target bucket file, so no additional overhead there.
$ rclone sync \
--checksum \
--fast-list \
--log-file /path/to/rclone.log \
--progress \
--stats-one-line \
--transfers 32 \
--verbose \
/path/to/local/source \
b2:BUCKET_NAMEWill perform the following:
- Verify all files at
/path/to/local/sourceagainst target bucketBUCKET_NAME. - Files considered identical if file size and SHA-1 match.
- To speed up the check, provide the
--size-onlyflag, which will consider files identical if only file sizes match. - Progress displayed to terminal, output sent to
/path/to/rclone.log. - Using
--fast-listto actionrcloneto pull all current target bucket files in a single/minimal number of API calls. Based on the number of target bucket files to consider this may have positive/negative execution time/cost benefit.
$ rclone check \
--fast-list \
--log-file /temp/rclone.log \
--progress \
--verbose \
/path/to/local/source \
b2:BUCKET_NAME