- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp and permissions
Operating System - HP-UX
1822818
Members
4210
Online
109645
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-12-2010 11:05 AM
тАО03-12-2010 11:05 AM
rcp and permissions
When does rcp apply permissions? We have millions of files to move from one server to another and we are using rcp. I initiated the command from the source box using the -rp switches. When I look at the target the permissions are not the same as the source. Does rcp wait till the job is done?
Thanks in advance
Mike
Thanks in advance
Mike
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 11:41 AM
тАО03-12-2010 11:41 AM
Re: rcp and permissions
Hi,
AFAIK, rcp should preserve permissions on a target, after copy completing, but rsync is preferable. One can use it for copying files and, in addition to the fact that it preserves everything, in case of an interruptions of the process, repeated execution of rsync does not copy alredy copied files.
HTH
AFAIK, rcp should preserve permissions on a target, after copy completing, but rsync is preferable. One can use it for copying files and, in addition to the fact that it preserves everything, in case of an interruptions of the process, repeated execution of rsync does not copy alredy copied files.
HTH
Entities are not to be multiplied beyond necessity - RTFM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 12:11 PM
тАО03-12-2010 12:11 PM
Re: rcp and permissions
You may also consider using tar/pax to copy over mass quantities of files. This can preserve ownership and access dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 01:34 PM
тАО03-12-2010 01:34 PM
Re: rcp and permissions
> [...] the permissions [...]
Which "the permissions"? On what, exactly?
> [...] Does rcp wait till the job is done?
I know nothing, but in some cases, it would
need to wait. For example, setting read-only
permissions on a directory before populating
that directory might make it rather difficult
to populate it. This argument holds for any
such program, not only "rcp". (Note that
directories are not actually _copied_ to the
destination, they are _created_ at the
destination, and populated with files which
are copied from the source. Permissions on
plain files can be set immediately, but not,
in general, those on directories. The
distinction between copying and creating a
directory is especially important if not all
the files in the source directory are being
copied. Everything's complicated.)
> [...] tar/pax [...]
That'd be my choice.
> [...] rsync does not copy alredy copied
> files.
So, if things are changing, the extra bother
of configuring "rsync" can be worth the
effort. In a static-source situation, I'd
likely choose a "tar"(-like) pipeline,
possibly with compression, depending on CPU
and network speeds, and other
situation-specific factors of which I know
nothing.
Which "the permissions"? On what, exactly?
> [...] Does rcp wait till the job is done?
I know nothing, but in some cases, it would
need to wait. For example, setting read-only
permissions on a directory before populating
that directory might make it rather difficult
to populate it. This argument holds for any
such program, not only "rcp". (Note that
directories are not actually _copied_ to the
destination, they are _created_ at the
destination, and populated with files which
are copied from the source. Permissions on
plain files can be set immediately, but not,
in general, those on directories. The
distinction between copying and creating a
directory is especially important if not all
the files in the source directory are being
copied. Everything's complicated.)
> [...] tar/pax [...]
That'd be my choice.
> [...] rsync does not copy alredy copied
> files.
So, if things are changing, the extra bother
of configuring "rsync" can be worth the
effort. In a static-source situation, I'd
likely choose a "tar"(-like) pipeline,
possibly with compression, depending on CPU
and network speeds, and other
situation-specific factors of which I know
nothing.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP