AWS S3 cp failing to go through
amazon-s3, amazon-web-services
Solution
I figured it out. It appears the AWS command line tools do not support wild cards fully, they only support them as far as file extensions. So ".txt" will work with the --exclude "" --include ".txt" logic, but wildcards such as "monthly__summary.txt" or "monthly_summary_*" will not work.
Problem
I'm trying to run a recursive copy command using AWS s3 cp CLI. The command I'm running is below (I replaced the real bucket name with "mybucket"): ``` aws s3 cp s3://mybucket/NJ/Monthly/2014/06/ /home/bob/work/NJ/Monthly/2014/06/ --recursive --exclude "*" --include “monthly_summary_*” --region us-east-1 ``` I'm also going to format it so that it fits: ``` aws s3 cp s3://mybucket/NJ/Monthly/2014/06/ /home/bob/work/NJ/Monthly/2014/06/ --recursive --exclude "*" --include “monthly_summary_*” --region us-east-1 ``` For some reason, this is failing to work. However, it doesn't log any errors or output of any kind. Is there a syntactical error? I have verified that the file matching the "monthly_summary_*" does exist in the bucket at that location. I have also verified that I can do a normal aws s3 cp command without --recursive, --exclude, and --include and just specifying a file name and it will work. Meaning, the below code works but does not get everything (since it's not recursive): ``` aws s3 cp s3://mybucket/NJ/Monthly/2014/06/monthly_summary_201406.txt /home/bob/work/NJ/Monthly/2014/06/monthly_summary_201406.txt --region us-east-1 ``` Any help would be greatly appreciated!