AWS S3 cp will not be able to pass

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://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!

+4
2

, , . , AWS , . ".txt" -exclude "" -include ".txt", , "month__summary.txt "" month_summary_ *", .

+6

, . . , monthly_summary_*!

+1

Source: https://habr.com/ru/post/1547518/


All Articles