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?