Sync
This section demonstrates how to sync local objects recursively with a bucket and vice-versa. The following is an example for IDrive® e2’s Chicago region.
You must configure AWS CLI before performing the following operations.
The following command syncs objects within mylocalfolder with bucket mybucket by uploading the local files to IDrive® e2 storage.
aws s3 sync mylocalfolder s3://mybucket --endpoint-url https://storageendpoint
The following command syncs mybucket with mybucket2 by copying the files from mybucket to mybucket2.
aws s3 sync s3://mybucket s3://mybucket2 --endpoint-url https://storageendpoint
The following command syncs objects of bucket mybucket within the cloud storage with a local folder by downloading the objects to the local machine.
aws s3 sync s3://mybucket mylocalfolder --endpoint-url https://storageendpoint