Rclone is a command line program to manage files on cloud storage.
To add/edit a cloud provider
rclone config
and follow the prompts
Create a bucket
rclone mkdir <provider>:<new-bucker-name>
List all buckets
rclone lsf <provider>:
Delete an empty bucket
rclone rmdir <provider>:<bucket-name>
Delete non-empty bucket
rclone purge <provider>:<bucket-name>
Copy an object from SRC to DST
rclone copy [--progress] SRC DST
List objects
rclone ls <provider>:<bucker>/path
Delete an object
rclone delete[file] <provider>:<bucket>/path
Sync SRC and DST
Use the sync command to sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary.
rclone sync [--progress] SRC DST
RCLONE_CONFIG_PASS=whateverthepasswordis
export $(cat /home/ubuntu/nextcloud/.env | xargs -0)
# ... rclone commands
unset RCLONE_CONFIG_PASS