I have the following aws s3 sync command:
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
</code>
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
</code>
sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
I’m expecting this command to download all the files in s3://my-bucket/my-root-folder
to /home/output-dir
EXCEPT for any .zip
files and remove any .zip
files that already exist in output-dir.
However when I run find ~/output-dir -type f -name "*.zip"
I am still seeing zip files
I’ve also tried
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
</code>
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
</code>
sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --include "*" --exclude "*.zip"
and
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --exclude "*.zip"
</code>
<code>sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --exclude "*.zip"
</code>
sudo aws s3 sync s3://my-bucket/my-root-folder /home/output-dir --delete --exclude "*.zip"
and in both cases zip files is still included.