- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copy files with ACL entries
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-25-2011 05:26 AM
тАО03-25-2011 05:26 AM
copy files with ACL entries
The server have lots of files with ACL entries, I need to copy these files to other server and preserve the ACL entries. I tried various options (cpio / tar / scp / cp) are not working.
Any other suggestions?
Thanks,
Simon
- Tags:
- ACLs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 05:38 AM
тАО03-25-2011 05:38 AM
Re: copy files with ACL entries
Not very detailed descriptions of anything.
uname -a
Have you looked at fbackup/frecover? (Or,
perhaps, GNU "tar"?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 05:45 AM
тАО03-25-2011 05:45 AM
Re: copy files with ACL entries
for example, this file has the following ACL setting (by getacl command)
# getacl /home/abc/mytest
# file: /home/abc/mytest
# owner: ual
# group: ual
user::rwx
user:train1:r--
user:train2:r-x
user:train3:r-x
user:train4:r--
group::r-x
class:r-x
other:r-x
I want to copy this file from Server A to Server B and preserve the ACL setting. Both servers have the same user setup.
I tried differnt commands (cp / scp /tar / cpio), I can copy the files but not the ACL setting.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 06:16 AM
тАО03-25-2011 06:16 AM
Re: copy files with ACL entries
You need preserve these attributes from source to target, please review -p (preserve) option at rcp or cp commands.
Also you can encapsulate requested files in source host using tar command, the untar at target host. The files keeps whole source's atributes. UID/GID must be equals en both hosts to keep source ownership.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 07:18 AM
тАО03-25-2011 07:18 AM
Re: copy files with ACL entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 07:19 AM
тАО03-25-2011 07:19 AM
Re: copy files with ACL entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2011 10:19 AM
тАО03-25-2011 10:19 AM
Re: copy files with ACL entries
> ACL [...]
Yes, I know what an ACL is.
> I want to copy this file from Server A to
> Server B [...]
I also understand what "copy" means, but I
still don't know what "Server A" or "Server
B" is. Which part of "uname -a" was unclear?
> I tried differnt commands (cp / scp /tar /
> cpio), [...]
I understood this the first time you said it.
> Have you looked at fbackup/frecover? [...]
I'm still wondering. Do you ever _answer_
questions, or do you only ask the same ones,
over and over?
> [...] I can use rsync [...]
Nice sledgehammer. I'm not sure that your
flies justify its use.