Does sync s3 to s3 works in s3cmd version 1.1.0-beta3 ?
# s3cmd --version
s3cmd version 1.1.0-beta3
Getting following error :
# s3cmd sync --exclude 'reportTemplate/*' 'orders/*' 'customers/*' s3://xxx-storage-bucket-prod-env/ s3://xxxx-storage-bucket-test-env/
ERROR: Parameter problem: Expecting filename or directory instead of: s3://inksedge-app-file-storage-bucket-prod-env/
The AWS Command-Line Interface (CLI) can also do bucket-to-bucket transfers of selected directories:
aws s3 sync s3://source-bucket s3://dest-bucket --exclude "*" --include "folder1/*" --include "folder2/*"
The --exclude
parameter says don't copy anything, while the --include
parameters add selected files/paths to copy.