Hey, I hope I'm posting this in the right forum. I'm compressing a bunch of files to tar.gz, then uploading them to my webhosts ftp server, and then trying to uncompress them on my server using a php script that enables me to run some shell commands (since we don't have shell access).
The command I'm using right now is "tar xzf archivename.tar.gz"
The problem with this is, the archive consists of files within directories, within directories. But when I extract them, it extracts everything to the same directory, and appends the directory path to the file names, rather then putting them all in their own directories.
What command do I use to extract them while keeping the directory structure in place?