problem with file permissions of file systems

Hi,

I want to increase space of my current file system

/usr/sap/PRD to suit my upgrade to SAP 4.7 Enterprise.

For this i backed up my file system /usr/sap/PRD to /free

using the command # cp -p -r /usr/sap/PRD/* /free

so that i can retrieve the contents of /usr/sap/PRD from /free

latter after increasing the size of /usr/sap/PRD size.

This copy command copied all files and subdirectories of

/usr/sap/PRD to /free with corresponding permissions.

except for two files Global and profile which are having links

to /sapmnt/PRD/global and /sapmnt/PRD/profile

So these files are copied but they are not showing as links.

and their ownership original was root and group other

when copied the ownership shows prdadm and group sapsys.

Can anyone please advice is there any command to copy as links

or is it required to create the links manually after restoring files.

Regards,

Venkat Yalla.

[1016 byte] By [venkatyalla] at [2007-11-25 23:23:19]
# 1

instead of copying the files across you could have just gone for a filesystem / directory backup on tape. That would have preserved the ownership rights to the files as well as the links. But since now its late enuf to get a tape backup what you could do is mv the files to another location and then create a link to the original file as root.

-Piyush

fundoo72 at 2007-7-5 18:10:35 > top of Java-index,General,Talk to the Sysop...