In the following script, How do I exclude a directory in the loop? I want to do this because all files are symlinks pointing to this directory that exists in the same level, so I don't want to add it.
cd /var/www
for dir in */
do
base=$(basename "$dir")
tar -czfh "${base}.tar.gz" "$dir"
done