- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copy /home to another Box
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
03-09-2006 03:39 AM
03-09-2006 03:39 AM
Copy /home to another Box
Thanks
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:42 AM
03-09-2006 03:42 AM
Re: Copy /home to another Box
Why not use rsync for acomplish this task?
See http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.6.4/
Schimidt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:43 AM
03-09-2006 03:43 AM
Re: Copy /home to another Box
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.4/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:43 AM
03-09-2006 03:43 AM
Re: Copy /home to another Box
Do you have NFS available? If so, I would proceed like this:
(from the target machine)
cd /nfs/source_machine/home
find . |cpio -pdumxl /home
The find command will chase down through the source machines home directory structure, piping everything it encounters to cpio, which, in turn, will reproduce same on the target machine.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:02 AM
03-09-2006 04:02 AM
Re: Copy /home to another Box
The answer is already there above. I would prefer rsync, it's an OK tool, though you may have trouble getting the right version for right platform, etc from site. You need to get the right binary.
Yes, you need to copy /home from A to B, and it should be an incremental copy, am I right?
Rsync can do this. it can copy all the newly created files and also delete if anything deleted at source.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:12 AM
03-09-2006 04:12 AM
Re: Copy /home to another Box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:12 AM
03-09-2006 04:12 AM
Re: Copy /home to another Box
If your main purpose is to make the same set of files available for a user in 2 different unix box, The elegant method is to export and share the home directories through NFS.
For configuring NFS server...
http://docs.hp.com/en/5991-1153/ch02s02.html
For configuring NFS Client...
http://docs.hp.com/en/5991-1153/ch02s03.html
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:48 AM
03-09-2006 04:48 AM
Re: Copy /home to another Box
Thanks
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 05:06 AM
03-09-2006 05:06 AM
Re: Copy /home to another Box
You could automount your home directory and the fact that /home/xxx is actually on another box would be completely invisible to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 05:12 AM
03-09-2006 05:12 AM
Re: Copy /home to another Box
I did not realize that you were using the old system as well. Please go ahaed with the plan. It is just fine. Rather use rsync then.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 12:55 AM
03-14-2006 12:55 AM
Re: Copy /home to another Box
Thanks. Sorry for the delayed response..
Clay..do you want me to NFS mount the /home on to the box with RAID? Can u explain pl?
Thanks
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 01:28 AM
03-14-2006 01:28 AM
Re: Copy /home to another Box
Install rsync on machineA and machineB. Install/Config SecureShell (keys) on both machines so root@machineB can ssh to root@machineA without a password.
On machineB, set up to execute (say every 5 minutes)via CRON:
rsync -avz --delete --exclude="lost+found" roo@machineA:/home /
(Above makes /home of machineB exactly as /home of machineA - meaning whatever new or changed files on machineB that are not on machineA will be deleted). Remove the "--delete" if you want to maintain new files on machineB.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 03:06 AM
03-14-2006 03:06 AM
Re: Copy /home to another Box
What I'll do is to use cfengine.
It's a great toolbox I've been using for two years and it can do this. It can survey files or use scripts you wrote, edit files,...
You can do it accross many type of OS ,many releases. You can have the server in HPUX and clients in HPUX (10,11,11i),solaris(8,9), linux too. It's a great tool box. Look at it.
Regards
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 06:34 AM
03-14-2006 06:34 AM
Re: Copy /home to another Box
Basically, you simply export the file system from the new, mirrored box and then mount it under the /home directory on the older system.
What you will get at that point is a file system on the older box that will work just like you are used to, but all the user's information will actually live on the new box, not the old one.
This would eliminate the need to do a copy from the old system to the new just to keep a current copy on the mirrored file system since all the important information would live there and be accessed there.
Does that make sense to you, or did I muck up the explanation too much?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 06:40 AM
03-14-2006 06:40 AM
Re: Copy /home to another Box
rsync -avzS -e ssh
Note the ending / (slashes), important for not to create a directory under directory.
Check for recent rsync version to have better support your copy.
I did tar too... fbackup and frecover also should work, only time taken by rsync is much less comparitively..
Good luck
Prashant