I'm trying to tar a whole directory except some subdirs..
The dir my-base-dir
is zipped but the excluded dirs/files are also included?
tar -cf my-base-dir/bak/site/site.tar my-base-dir --exclude=my-base-dir/bak/db/* --exclude=my-base-dir/bak/site/*
The excluded paths are correct relative to the current working dir.. Because the output tar file is put in one of them