tar with directory path
Hi: how do I create a tar file with a directory path, so that when its extracted it'll create the directory path I specify and place the files in it?
Thanks |
Not sure if you can create directories with tar.
I'd say either put the directory tree within the tar file, or do "mkdir -p /path/to/new/directory" and extract into the new directory tree. |
tar --help
is pretty useful. Somewhere in that it says... -P, --absolute-names don't strip leading `/'s from file names Don't forget if you exclude the directories when you create the tar ball, they won't be created when your extract the files. |
All times are GMT -5. The time now is 02:35 PM. |