Quote:
Originally Posted by netpumber
Why this happens ? It try to extract it somewhere else maybe ?
|
Read tuxdev's post. Tar stores paths.
cd /home/net
tar cfvz /some/place/backup.tar.gz pictures
tar..$OPTIONS.....$OUT-PUT-FILE........$DIRECTORY-OR-FILES-TO-TAR
without the .... of course
This will create a tar gzipped file containing only the directory pictures, and the files beneath it. When you extract the archive, it will create a directory
pictures and populate that directory with the files.