HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp and linked files
Operating System - HP-UX
1827294
Members
2986
Online
109960
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
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
01-21-2005 12:44 AM
01-21-2005 12:44 AM
scp and linked files
I am using scp -rp to copy a directory structure from one server to another. And it works fine except within the file structure I'm copying ar linked files to directories in the same file system.
When the copy is done it has copied the directory structure, and changed the links to directories and copied them again.
Is there a way to prevent this, or tell scp not to copy linked files ??
When the copy is done it has copied the directory structure, and changed the links to directories and copied them again.
Is there a way to prevent this, or tell scp not to copy linked files ??
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 01:02 AM
01-21-2005 01:02 AM
Re: scp and linked files
scp doesn't understand symbolic links. There are no options (as far as I know) to control the behaviour. The alternative is to archive the files first using tar/cpio/fbackup/whatever and copy the archive across and extract the files from the archive on the far side, or stream the archive across the network.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 01:05 AM
01-21-2005 01:05 AM
Re: scp and linked files
You could use rsync for that, it uses ssh as transport and knows about links, or You simply pipe tar through ssh
tar -cf - /origin | ssh remotebox " tar -xvf - "
tar -cf - /origin | ssh remotebox " tar -xvf - "
yesterday I stood at the edge. Today I'm one step ahead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 01:55 AM
01-21-2005 01:55 AM
Re: scp and linked files
Thanks
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP