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
08-01-2006 11:53 PM
08-01-2006 11:53 PM
rcp
/etc/passwd
/etc/hosts
/home/* ( need to exclude root )
and /tcb/*
How can I write a script which will do the above task.
Want the owner and perm to be the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 12:02 AM
08-02-2006 12:02 AM
Re: rcp
do
rcp -rp /etc/passwd target:/etc
rcp -rp /etc/hosts target:/etc
in scripts from command line
for i in /etc/passwd /etc/hosts /home /tcb
do
echo $i
rcp -rp $i
done
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 12:30 AM
08-02-2006 12:30 AM
Re: rcp
I had used the rcp command but my main issue was to exclude root from /home and copy the rest /home/* to the test prod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 12:39 AM
08-02-2006 12:39 AM
Re: rcp
man tar for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 12:40 AM
08-02-2006 12:40 AM
Re: rcp
Do this getting rid of root from /home
ls -lrt |grep -v root|awk '{print $9}' >/tmp/test
then
for i in $(cat /tmp/test)
do
rcp -rp /home/$i
done
For tcp best way is to cp the "r/root" directory on the target server to /tmp.
once copying is complete mv /tmp/root /r/root
Chan