Hi,
Have a look at the man page of tar to find all options.
The easiest way would be to just put it in one command like this:
Code:
tar -czvf /backup/www.tgz /var/www
to create a compressed tar file of /var/www into a file named
www.tgz that will be created under the directory /backup.
Kind regards,
Eric