Upload a directory to S3 except some files
CautionSyncs the directory to the bucket, skipping every path that matches the exclude pattern.
aws s3 sync . s3://bucket --exclude '*.log'Edit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/aws-s3.md), licensed under CC BY 4.0.