I am trying to create a tar file [site.tar.gz
] to exclude certain folders and without the parent directory structure:
I am able to exclude folders, but when I extract, I see path from the root
tar -czvf site.tar.gz /var/www/html/site --exclude="/var/www/html/site/images"