- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copying files between systems but not link fil...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
04-10-2003 07:32 AM
04-10-2003 07:32 AM
/data1
/data2
/data3
/data4
from one machine to another. My problem is that the original machine has several link files linking directories eg.
/data2/abc/tst -> /abc/tst
When copying the data, it appears to physically copy the data from the link and not the link file.
I'm using rcp to copy between machines but I don't want to copy link files.
Can anyone help ? Points allocated for valuable help !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:47 AM
04-10-2003 07:47 AM
Re: Copying files between systems but not link files
On machine A
=============
# cd /data2
# (find . -xdev|cpio -coax) | remsh machineB "cd /data2;cpio -icdmula"
I've been using this method for quite some time now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:49 AM
04-10-2003 07:49 AM
Re: Copying files between systems but not link files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:53 AM
04-10-2003 07:53 AM
Re: Copying files between systems but not link files
# cd /data2
# remsh machineA "cd /data2;find . -xdev|cpio -coa"|cpio -icdmula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 07:56 AM
04-10-2003 07:56 AM
Re: Copying files between systems but not link files
I missed the quotes
# find /dir | cpio -ov | remsh server " cd /dir ; cpio -idvum"
sorry,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 08:10 AM
04-10-2003 08:10 AM
Re: Copying files between systems but not link files
nfs mount the remote machine.
cd on the local machine to the top level directory, then:
find . -depth -print | cpio -pdxm /newlocaldir/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:54 AM
04-10-2003 10:54 AM
Re: Copying files between systems but not link files
tar cf - /data1 /data2 /data3 /data4 | ssh host2 tar xf -
tar will write its archive to standard output (- option), which is piped into the ssh command.
ssh in turns sends the output to host2, where it is fed as standard input to the tar command there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 04:26 AM
04-11-2003 04:26 AM
Re: Copying files between systems but not link files
Regards
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 11:49 AM
04-11-2003 11:49 AM
Re: Copying files between systems but not link files
you can tar the directory first, then rcp to the other server, then untar it.
tar will not include the real datafile of a link but only the link itself.
thanks,
Gary