- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how mv data tree up one dir ?
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
Discussions
Discussions
Forums
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
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
тАО02-11-2009 08:48 AM
тАО02-11-2009 08:48 AM
#####################################
wanted to cp data :
from host:/app
to host1:/app
####################################
used the following cmd on host :
# /usr/bin/rsync -avz -e ssh --rsync-path=/usr/bin/rsync /app host1:/app
####################################
result was on host1 it now has
host1:/app/app
with all the data under /app/app
How do I move the data so it's only host1:/app
?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 08:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 08:55 AM
тАО02-11-2009 08:55 AM
Re: how mv data tree up one dir ?
mv /app /app_bad
mv /app_bad/app /
rmdir /app_bad
or
mv /app/app/* /app
rmdir /app/app
I prefer the first because it does not have to deal with individual files.
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 08:56 AM
тАО02-11-2009 08:56 AM
Re: how mv data tree up one dir ?
# /usr/bin/rsync -avz -e ssh --rsync-path=/usr/bin/rsync /app/ host1:/app/
It makes a big difference. The rsync man page goes into some detail on this difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 09:00 AM
тАО02-11-2009 09:00 AM
Re: how mv data tree up one dir ?
# /usr/bin/rsync -avz -e ssh --rsync-path=/usr/bin/rsync /app/* host1:/app
Pete
Pete