Exclude multiple folders using AWS S3 sync

前端 未结 3 799
谎友^
谎友^ 2021-02-02 05:43

How to exclude multiple folders while using aws s3 syn ?

I tried :

# aws s3 sync  s3://inksedge-app-file-storage-bucket-prod-env   s3://inksedge-app-file         


        
3条回答
  •  醉梦人生
    2021-02-02 06:43

    From a Windows command prompt, only double quote works so use " " around wildcards, eg:

    aws s3 sync  s3://bucket-1/ . --exclude "reportTemplate/*" --exclude "orders/*"
    

    Single quote doesn't work (as tested with the --dryrun option) on Windows 10.

提交回复
热议问题