I am trying to backup some stuff I have on my Ubuntu server to my s3 bucket using s3cmd. This is what I am doing to sync..

s3cmd --dry-run -v sync --exclude="/home/user_name/exclude_me" /home/user_name/ s3://bucket_name/user_name/

I am not able to exclude directories using the above mechanism although it works perfectly to exclude files based on patterns.

Is it possible to exclude directories if yes, what is wrong in the above command?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.