I can't seem to get the aws sync s3
command to exclude directories. I am backing up a mounted filesystem from OpenVZ which is located at /vz/root/100.
My command is:
aws s3 sync /vz/root/100 s3://[mybucket]/vz/root/100 --exclude="proc/*" --exclude="sys/*"
I have tried:
--exclude="proc/"
--exclude="/proc"
--exclude="*/proc/*"
--exclude="/vz/root/100/proc"
No matter what I do, the sync process still recurses through the proc directory. I saw an issue back in 2013 that exclude wasn't working but it is "fixed" according to them.
# aws --version
aws-cli/1.9.5 Python/2.6.6 Linux/2.6.32-042stab111.12 botocore/1.3.5
Any ideas?