I am using s3cmd and i would like to know how to exclude all folders within a bucket and just sync the bucket root.
for example
bucket
folder/two/
folder/two/file.jpg
get.jpg
with the sync i just want it to sync the get.jpg and ignore the folder and its contents.
s3cmd --config sync s3://s3bucket (only sync root) local/
If someone could help that would be amazing i have already tried the --exclude but not sure how to use it in this situation?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With