I think you would have taken the tar by simply typing the "tar -cvf /dev/rmt0. So whenever you try to restore it will restore to the same path. So create a link with the same name in some other location, extract and unlink the link.
so, whenever I extract the files...it will go to the original path? OK, well I only want to restore one directory on a tape with many directories backed up...I dont want to restore all the directories....wouldnt the tar -cvf /dev/rmt0 grab all the files/directories and restore them? I am not understanding how it works.
Thanks!
Tar uses the path name (or file name you supply when creating the tar-file. So tar -cf <device> /mydir can only be restored into /mydir (or a link as mentioned). Path can be checked with tar -tvf <device>.
You could use tar-cvf <device> ./mydir to avoid the problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.