Operating System - HP-UX
1758052 Members
2729 Online
108867 Solutions
New Discussion юеВ

Re: TAR of symbolic link and Permissions

 
SOLVED
Go to solution
Jojo Castro
Regular Advisor

TAR of symbolic link and Permissions

Hi all.

I have mount poings /oracle8 and /oracle8_TEMP.
/oracle8 is production directory where oracle client is currently installed. /oracle8_TEMP is new directory where I want to migrate the client. Please advice me if backing up /oracle8 directory then installing it in /oracle8_TEMP is just OK. Just to be sure I will not miss all the links, binaries links, permissions, how will make a tar backup file of /oracle8 and then restore it to /oracle8_TEMP. What are the options? Is it simply tar -cpvhf oracle8.tar /oracle8? Then tar -xpvf oracle8.tar /oracle8_TEMP? Do i still need to trigger relinkall?
3 REPLIES 3
Sharma Sanjeev
Respected Contributor

Re: TAR of symbolic link and Permissions

Hi Jojo Castro

The question here is when we install oracle that it create some files and links under /etc or in OS part also, so we have to look on that part also.Yes, fs we take a tar back with path ./oracle8 that i think it will include that also.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Dennis Handly
Acclaimed Contributor
Solution

Re: TAR of symbolic link and Permissions

>Is it simply tar -cpvhf oracle8.tar /oracle8?

If you give an absolute path, you'll need pax(1) to restore it to /oracle8_TEMP.

tar -cvf path/oracle8.tar -C /oracle8 .
You don't want to follow symlinks with -h. -p is only useful for restore.
To restore:
cd /oracle8_TEMP
tar -xpvf path/oracle8.tar

You may want to remove the -v from one or both.

>Do i still need to trigger relinkall?

Not sure if the old paths are still in the executables or they are handled by LD_LIBRARY_PATH/SHLIB_PATH?
Jojo Castro
Regular Advisor

Re: TAR of symbolic link and Permissions

Thanks all for the answers...