aws s3 sync /WordProcessing/DOCUMENTS s3://mybigbucket --delete --include "*" --exclude ".DS_Store"
If somehow .DS_Store made its way to the AWS S3 mybigbucket (from a previous backup), using the above command does not delete the .DS_Store files from the destination, even if I manually:
on the file server.
Am I missing the logic of how aws s3 sync works? It seems to me it should delete the .DS_Store from the destination on the S3 bucket if it has been removed from the source on the file server.
If I take off the --exclude and run the command again, it does delete .DS_Store from the destination when it has been removed from the file server. That doesn't seem right.
Am I taking the wrong approach? What I want to do, is nightly sync the file server and have it not transfer to the S3 bucket the thousands of .DS_Store files.