Rclone additional commands
Follow the Getting Started guide to setup Rclone.
The follow are additional commands or options you can consider when using Rclone
Configuration password
For additional security, you should consider using the s) Set configuration password
option. It will encrypt the rclone.conf
configuration file. This way secrets like the Create Access Grant in CLI, the encryption passphrase, and the access grant can't be easily stolen.
Create a Bucket
Use the mkdir
command to create new bucket, e.g., mybucket
.
List All Buckets
Use the lsf
command to list all buckets.
Note the colon (:
) character at the end of the command line.
Delete a Bucket
Use the rmdir
command to delete an empty bucket.
Use the purge
command to delete a non-empty bucket with all its content.
Upload Objects
Use the copy
command to upload an object.
The --progress
flag is for displaying progress information. Remove it if you don't need this information.
Use a folder in the local path to upload all its objects.
Only modified files will be copied.
List Objects
Use the ls
command to list recursively all objects in a bucket.
Add the folder to the remote path to list recursively all objects in this folder.
Use the lsf
command to list non-recursively all objects in a bucket or a folder.
Download Objects
Use the copy
command to download an object.
The --progress
flag is for displaying progress information.
Using --disable-http2
with rclone for Storj is recommended for increased transfer speeds by avoiding HTTP/2 specific issues.
Use a folder in the remote path to download all its objects.
Delete Objects
Use the deletefile
command to delete a single object.
Use the delete
command to delete all object in a folder.
Print the Total Size of Objects
Use the size
command to print the total size of objects in a bucket or a folder.
Sync Two Locations
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.
Since this can cause data loss, test first with the --dry-run
flag to see exactly what would be copied and deleted.
The sync can also be done from Storj to the local file system.
Or between two Storj buckets.
Or even between another cloud storage and Storj.