- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copy files & Directories while preserving the ...
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
тАО03-21-2008 02:09 PM
тАО03-21-2008 02:09 PM
Re: Copy files & Directories while preserving the same ownership & permission
Well, not if "-C" works everywhere you do,
but I prefer to use a smaller (more reliably
available) feature set, especially when it
makes things more symmetrical, hence easier
to remember:
( cd src ; tar cf - xxx ) | \
( cd dst ; tar xf - )
Learn it once, then relax.
Using parentheses on the "src" side leaves
the user's environment unchanged, which is
nicer than a bare "cd", I claim. For a good
time, you can also slide an "rsh" onto either
side to add some remoteness without dragging
NFS into the argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 09:03 PM
тАО03-21-2008 09:03 PM
Re: Copy files & Directories while preserving the same ownership & permission
If you have same users and groups (uid and gid) on both server, you can also try to do a remote copy using: scp
e.g.
scp -p -r ./mydir otherserver:/home/yogeeraj/
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 05:24 AM
тАО03-22-2008 05:24 AM
Re: Copy files & Directories while preserving the same ownership & permission
Does "scp -r" handle links (hard and soft)
any better than "cp -R"? (See reference
above to previous "cp"-related complaint.)
I'd assume not.
Replace "rsh" (above) with "ssh", if you'd
like an ssh=based method which wouldn't have
the same problems as "cp".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 07:12 PM
тАО03-22-2008 07:12 PM
Re: Copy files & Directories while preserving the same ownership & permission
#### In destination server
1). vi /.rhosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 07:18 PM
тАО03-22-2008 07:18 PM
Re: Copy files & Directories while preserving the same ownership & permission
Ok. I give up. You win. Do whatever you
want. It probably doesn't matter if links
are handled well or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2008 02:26 AM
тАО03-23-2008 02:26 AM
Re: Copy files & Directories while preserving the same ownership & permission
we really appreciate your post and concern. In many cases, we often forget the possibility that links to files might exist.
if the initial poster could give us some feedback of its relevance, then maybe we could come to consensus here :)
We really appreciate your contributions and insights. I have learned a lot from your posts..
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2008 10:10 AM
тАО03-24-2008 10:10 AM
Re: Copy files & Directories while preserving the same ownership & permission
ah...well I was looking at an 11.0 box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2008 11:48 AM
тАО04-11-2008 11:48 AM
Re: Copy files & Directories while preserving the same ownership & permission
- « Previous
-
- 1
- 2
- Next »