Page History

rclone-cheatsheet

Leonardus Kristaris Sastra edited this page on 16 Feb 2020

Clone this wiki locally

Cheatsheet

The S3 backend can be used with a number of different providers:

  • AWS S3
  • Alibaba Cloud (Aliyun) Object Storage System (OSS)
  • Ceph
  • DigitalOcean Spaces
  • Dreamhost
  • IBM COS S3
  • Minio
  • Scaleway
  • StackPath
  • Wasabi

If you see remote then adjust it to name of your remote.

Paths are specified as remote:bucket (or remote: for the lsd command.) You may put subdirectories in too, eg remote:bucket/path/to/dir.

Once you have made a remote (see the provider specific section above) you can use it like this:

See all buckets

$ rclone lsd remote:

Make a new bucket

$ rclone mkdir remote:bucket

List the contents of a bucket

$ rclone ls remote:bucket

Copy file to remote bucket

$ rclone copy /path/to/file remote:bucket

Sync/home/local/directory to the remote bucket, deleting any excess files in the bucket.

$ rclone sync /home/local/directory remote:bucket

Note : You can change /home/local/directory path to your file/directory path, customize your needs.

Refer on https://rclone.org/s3/