From 93f6ca7a30a3cd8f865fb1acdd814124c4a7880f Mon Sep 17 00:00:00 2001 From: hiepxanh Date: Tue, 18 Jul 2023 21:26:36 +0700 Subject: [PATCH 1/2] Update README.md https://github.com/peak/s5cmd/issues/529 add suggestion on sync from between cloud --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0d5d75800..2c1775cae 100644 --- a/README.md +++ b/README.md @@ -400,6 +400,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. You may use s5cmd sync for this: + +``` +s5cmd sync 's3://s3-bucket/path/*' download_folder/ + +s5cmd --endpoint-url 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. From 23e8bb7eea0a45d2dacc5871975c24ab48ef2d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0brahim=20G=C3=BCng=C3=B6r?= Date: Fri, 18 Oct 2024 10:39:33 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c1775cae..ddc86f69b 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,7 @@ 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. You may use s5cmd sync for this: +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/