- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file copy
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
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
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
12-13-2012 10:44 PM
12-13-2012 10:44 PM
file copy
i wan to copy the file from one server to another server ,with the same file permission.what is the command
- Tags:
- Permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 11:04 PM - edited 12-13-2012 11:48 PM
12-13-2012 11:04 PM - edited 12-13-2012 11:48 PM
Re: file copy
How are the systems connected?
NFS: cp -p
ftp: tar it up first or use pax(1), cpio(1) or zip.
scp: scp -p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 11:11 PM
12-13-2012 11:11 PM
Re: file copy
please explain for NFS and scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 11:12 PM
12-13-2012 11:12 PM
Re: file copy
thanks for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 11:13 PM
12-13-2012 11:13 PM
Re: file copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2012 11:48 PM
12-13-2012 11:48 PM
Re: file copy
>either p is small letter or capital.
(There is such a thing as cut & paste, it's magic. ;-)
It's lower case -p.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2012 01:02 AM
12-14-2012 01:02 AM
Re: file copy
Hi rajesh73,
You can use rcp command:
For example from source_server:
rcp -rp .../file.tar root@destination_server:.../file.tar
where .../file.tar is the file in the source server and .../file.tar is the file inside the destination server.
If you want to copy one file to the same directory to a remote server you can go to the directory that you want (for example cd /tmp) and then:
rcp -rp test.txt hpsep2:$pwd
Where test.txt is the file that you want to copy and hpsep2 is the name of your remote server
Best regards,
Spyros