Skip to content

Commit

Permalink
readme: syncing different cloud providers is not supported (#598)
Browse files Browse the repository at this point in the history
Fixes #529 

---------

Co-authored-by: İbrahim Güngör <igungor@gmail.com>
  • Loading branch information
hiepxanh and igungor authored Oct 18, 2024
1 parent c280956 commit 6bc84f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,14 @@ cp s3://bucket/prefix/index.html index.html
cp s3://bucket/prefix/test.html test.html
```
We don't support syncing between 2 storage endpoints out of the box. The current solution is to sync remote objects to your local disk first, then sync your local files to the target remote storage. For example, if you'd like to sync S3 and Google Cloud Storage:
```
s5cmd sync 's3://s3-bucket/path/*' download_folder/

s5cmd --endpoint-url <gcs-endpoint> sync 'download_folder/*' s3://gcs-bucket/path/
```
##### Strategy
###### Default
By default `s5cmd` compares files' both size **and** modification times, treating source files as **source of truth**. Any difference in size or modification time would cause `s5cmd` to copy source object to destination.
Expand Down

0 comments on commit 6bc84f9

Please sign in to comment.