almost never...
one exception: suppose you have to restore
something ABSOLUTE in a RELATIVE path.
g.e.: you have to restore TARFILE (a tar file of
/usr/bin) *** NOTE the absolute path, not ./usr/bin
you can and will not overwrite YOUR /usr/bin
in this case chroot is your friend, see man pages
mkdir /XXX
cp the-statically-linked-tar-cmd to /XXX/s_tar
and also the TARFILE; then
chroot /XXX
now you can read the TARFILE locally to /XXX/usr/bin
./s_tar xfv TARFILE
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.