Now when I make a tarball I like to keep all the path's from which the file is
in. For this use the -P switch (absolute path)
Code:
tar -zPvcf filename.tar.gz /path/to/file
When I extract it I will see a new directory called /path
and under that I will see the "to" directory, and the "file" is under "to"