- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how mv data tree up one dir ?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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