- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "copy" the entire directories structure from anoth...
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
05-17-2004 06:17 AM
05-17-2004 06:17 AM
Now, I want to "copy" (create) the entire structure over to another system. Is there any script I can use or any more automatic way I can use to achieve that? instead of manually creating each one of them?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:19 AM
05-17-2004 06:19 AM
Re: "copy" the entire directories structure from another server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:22 AM
05-17-2004 06:22 AM
Re: "copy" the entire directories structure from another server
If possible you can create a tar archive on one system and then take it to the other system and extract it. This gets everything. Or you can do rcp -r if using rcp.
There are other choices too, but it depends on how much data are we talking about and what choices we have.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:22 AM
05-17-2004 06:22 AM
Re: "copy" the entire directories structure from another server
rcp -rp ./sourceDIR othermachine:/mainDIR
Make sure your "othermachine" has a ".rhosts" file under your login. Which means you need a login on both machines!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:24 AM
05-17-2004 06:24 AM
Re: "copy" the entire directories structure from another server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:30 AM
05-17-2004 06:30 AM
Re: "copy" the entire directories structure from another server
Please check the man page rdist(1) for more details on directory synchronization.
-Siddhartha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:39 AM
05-17-2004 06:39 AM
Re: "copy" the entire directories structure from another server
tar and ftp it.
setup rhosts and use either tar or cpio across the network.
use nfs to mount it then copy it with tar or cpio.
you can try cp -p -r but you may still lose ownership of files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:40 AM
05-17-2004 06:40 AM
Re: "copy" the entire directories structure from another server
On the server with the current structure:
find /yourmountpoint -type d -print >/tmp/dir.list
then copy that to new server...
then on new server:
for i in `cat /tmp/dir.list`
do
mkdir -p $i
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:53 AM
05-17-2004 06:53 AM
Re: "copy" the entire directories structure from another server
If so, there is a real nice utility called uasm that is suited perfectly for this. If you do use Legato, I will post the specifics to the command, no use in posting the specifics if not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:55 AM
05-17-2004 06:55 AM
Re: "copy" the entire directories structure from another server
cd /fromdir
tar cf - . | compress -c | ssh otherhost "zcat - | ( cd /to_dir ; tar xf - )"
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 07:16 AM