This will work:
sudo aws s3 sync s3://xxxx-app-file-storage-bucket-prod-env s3://xxxx-app-file-storage-bucket-test-env --exclude 'customers/*' --exclude 'orders/*' --exclude 'reportTemplate/*'
*: Matches everything
?: Matches any single character
[sequence]: Matches any character in the sequence
[!sequence]: Matches any character not in sequence
Need help mastering AWS Lambda and other AWS skills? Go through AWS Training Page and become an AWS expert!