- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copy home/start up scripts
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-06-2006 03:50 AM
12-06-2006 03:50 AM
copy home/start up scripts
Thanks
brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 03:52 AM
12-06-2006 03:52 AM
Re: copy home/start up scripts
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 03:54 AM
12-06-2006 03:54 AM
Re: copy home/start up scripts
# cd /home
# tar cf - * |ssh machineb "cd /home; tar xf -"
HTH,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 03:57 AM
12-06-2006 03:57 AM
Re: copy home/start up scripts
One way would be to create a 'tar' archive of everything you want; 'rcp' the archive to the second server and un-tar it. 'tar' will handle symbolic links by default. See the 'tar' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 04:05 AM
12-06-2006 04:05 AM
Re: copy home/start up scripts
Just to give you an alternative, you could 'cp -rp /home /mnt/home' over NFS. However, I like the 'tar' method better.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 09:08 AM
12-06-2006 09:08 AM
Re: copy home/start up scripts
tar cvf /var/tmp/start.tar /sbin/init.d /sbin/rc?.d /etc/rc.config.d
Then ftp the tar file to system B and untar it there. ftp cannot transfer subdirectories automatically so tar is the choice. But be careful about the OS/apps/patch matching. If they do not match, you'll spend a lot of time cleaning up the bootup errors that will result. It would be a lot better to list the recently added or changed start scripts and links and copy just those specific files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:52 AM
12-07-2006 02:52 AM
Re: copy home/start up scripts
I Think the best way is to tar them.
tar cf - .|(cd /tmp/tar.test; tar xf -)
But Bill also make a good point.
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 04:14 PM
12-07-2006 04:14 PM
Re: copy home/start up scripts
There is also a -C option in tar -c so you can be in your target directory and don't need to cd:
tar -cf - -C /old/path | tar xf -