Esempio:

tar -pczf /tmp/site.tar.gz /var/www/html/site --exclude=/var/www/html/site/cache --exclude=/var/www/html/site/logs --exclude=/var/www/html/site/moduli/attachments