I am trying to run a recursive copy command using AWS s3 cp CLI. The command that I run is below (I replaced the name of the real byte 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 am also going to format it so that it matches:
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 does not work. However, it does not record any errors or results of any kind. Is there a syntax error?
I checked that the file corresponding to "month_summary_ *" exists in the bucket at this location. I also verified that I can make the usual aws s3 cp command without -recursive, --exclude and -include and just specify the file name and it will work. Meaning, the code below works, but does not get everything (since it is not recursive):
aws s3 cp s3:
/home/bob/work/NJ/Monthly/2014/06/monthly_summary_201406.txt --region us-east-1
Any help would be greatly appreciated!