Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restoring symbolic files and link files

Status
Not open for further replies.

aixlurker

Technical User
Jun 20, 2002
39
PH
i have two files that i want to restore to node1 from node2. telnet, rsh, rlogin from node1 to node2 are not available but i can ftp and rcp.

the files in node1:

#pwd
/usr/sbin
-r-sr-xr-x 1 root security 37883 Nov 14 17:22 tsm

#pwd
/etc
-lrwxrwxrwx 1 root security 13 Nov 14 16:33 tsm -> /usr/sbin


i have tried to use ftp and rcp to restore the files at node2 but the /etc/tsm file permission and ownership was not preserved. how do i transfer these 2 files to node2 preserving the attributes?

the system:
RS/6000 SP
Aix 4.3.3.0
 
i tried it but it did not work either.. thanks anyway

at node1, tring to copy /etc/tsm:
# rcp -p tsm node2:/etc

at node2:
# ftp> ls -l
-r-sr-xr-x 1 root system...

note the changes for file permission (-lrwxrwxrwx originally) and group (security) of /etc/tsm.

rcp of /usr/sbin/tsm is OK.
 
the problem has been solved through the perspectives launch pad then extract and restore the files from there.
now i can telnet back to node2. .
 
Hi,

just tar your files, links or directories (works recursive):

tar cvf myarchive.tar source1 source2 source3

Then ftp'it to the other machine and untar it with

"tar xvf myarchive.tar"

Time, rights and links will be preserved. If you have a nfs-mount maybe, you can also transfer with a

"find . -print | cpio -dumpv /target"

Preserves everything too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top