rclone is a great tool to manage cloud storage from the commandline. It supports almost all of the popular cloud storage providers, so you can sync up and sync down from any of them using the same commands.
$ sudo apt install rclone
~/.config/rclone/rclone.conf. To create this file use this interactive command:
$ rclone config
Minimally, you will be asked for information like the CSP you want to use, your account, your access key and a name for this CSP account.
Contents of an example
rclone.conf for a Backblaze B2 account:
[backblaze_foobar] type = b2 account = abracadabra key = 0010fae0bf57e8779 endpoint =
Information about all the CSPs supported by rclone and their configs can be found here.
$ rclone sync /local/path/foobar backblaze_foobar:foobar_bucket
$ rclone sync backblaze_foobar:foobar_bucket /local/path/foobar
To get verbose output, add the
To do a dry run without modifying any files, add the
Tried with: rclone 1.50.2 and Ubuntu 20.04