- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: users' home directory migration
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
12-08-2006 10:29 AM
12-08-2006 10:29 AM
users' home directory migration
I share the /home on 1 and mount it on 2 in /mnt
1. mount machine1:/home /mnt
2. cd /mnt
3. cp -rp * /home
will this copy all contents under /home of machine1 to machine2's /home.
Thanks
Thomas
3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2006 10:55 AM
12-08-2006 10:55 AM
Re: users' home directory migration
Assuming that you don't have any largefiles to accomodate, I'd do this:
...on server-1:
# tar -cvf /somepath/archive /home
# rcp /somepath/archive server2:/somepath/archive
...on server-2:
# tar -xvf /somepath/archive /home
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2006 02:06 PM
12-09-2006 02:06 PM
Re: users' home directory migration
one minor concern or point..
verify each acct name on "machine2".. by:
cd /home
ls -l
if you happen to see ### numbers as the "owner" of the directory, then you will have to Re-Set the Acct Owner names.
ex:
cd /home/thomas
chown thomas .
find . -exec chown thomas {} \;
# verify
find . -exec ls -l {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2006 03:25 PM
12-09-2006 03:25 PM
Re: users' home directory migration
If you have tape drive on both the system , you can simply do , tar -cvf and in the other tar -xvf for the home directory.
Also you can NFS mount the /home of the source into the target and use cp -rp ,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2006 07:15 AM
12-10-2006 07:15 AM
Re: users' home directory migration
yes it would normally work.
Nevertheless by using James proposal with tar, you got an extra check...
tar would complain if any files changes during the operation.
here's another proposal for your evaluation:
server2# cd /home
server2# ssh root@server1 "cd /home;tar -cf - ./ | /usr/contrib/bin/gzip -c " | gunzip -c | tar -xf -
Use tvf instead of xf in case you want to check what you're pulling over.
In this example I used ssh, but if you have remsh setup, you surely could use this instead. If you don't have gzip/gunzip you could use compress/zcat or simply don't try to perform any compression.
If you transfer over a wan I would consider to store to file, perform a checksum of the file, transfer it, checksum again, unpack.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2006 07:33 AM
12-10-2006 07:33 AM
Re: users' home directory migration
vxdump 0f - /
find . -depth | cpio -dumpv /
remote copy though ssh:
tar cf - . | ssh user@host "(cd
for local use i think the find way is the fastes.
If you think that you may have most of the data on the destination, and only what to overright it if it is newer than the destination, you could use the tool rsync.
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.8/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2006 06:15 PM
12-10-2006 06:15 PM
Re: users' home directory migration
Why dont you do a fbackup of server 1
home directory, and download that backup on to server 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 12:47 AM
12-11-2006 12:47 AM
Re: users' home directory migration
Thanks
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 03:43 AM
12-11-2006 03:43 AM
Re: users' home directory migration
On ServerA
# cd /home/userhome/dirA
# (find . -xdev|cpio -coax)|remsh serverB "cd /home/userhome/newdir;cpio -icdmuxla"
Test it out on some test files before you try it on the user home.
Geetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2006 04:26 AM
12-11-2006 04:26 AM
Re: users' home directory migration
Thanks
Thomas