HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remote copying (rcp) of symbolic links
Operating System - HP-UX
1833714
Members
2189
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 10:53 PM
03-10-2005 10:53 PM
It appears that 'rcp -r' works differently from 'cp -r' in dealing with symbolic links. Is this a known feature ?
I have a directory A, containing a file B and a sub-directory C. Sub-directory C contains a symbolic link D back to file B.
If recursively copying (cp -r) A to a new location, then link E is correcly copied over within sub-directory D.
However, recursively remote copying 'rcp -r' does not create symbolic link E under directory D in the new location but an actual file of that name. So the amount of storage usage in the new location is much greater.
Is this really a feature of rcp, or am I doing something wrong, or is there a way around it ???
I have a directory A, containing a file B and a sub-directory C. Sub-directory C contains a symbolic link D back to file B.
If recursively copying (cp -r) A to a new location, then link E is correcly copied over within sub-directory D.
However, recursively remote copying 'rcp -r' does not create symbolic link E under directory D in the new location but an actual file of that name. So the amount of storage usage in the new location is much greater.
Is this really a feature of rcp, or am I doing something wrong, or is there a way around it ???
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 11:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 11:44 PM
03-10-2005 11:44 PM
Re: remote copying (rcp) of symbolic links
Martin,
I would expect rcp to behave like this as the inital use of rcp was to copy between machines.
So just copying the link could result in a link to a file which had not been copied.
Example:
link on FileSystemA point to FileSystemB
Just copying the link (without the data) to another machine, without also copying FileSystemB would raise a fault when using the link.
Regards
I would expect rcp to behave like this as the inital use of rcp was to copy between machines.
So just copying the link could result in a link to a file which had not been copied.
Example:
link on FileSystemA point to FileSystemB
Just copying the link (without the data) to another machine, without also copying FileSystemB would raise a fault when using the link.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 12:04 AM
03-11-2005 12:04 AM
Re: remote copying (rcp) of symbolic links
Thanks for the answers !
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP