- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Copying file to remote server using rsync
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
тАО10-17-2006 03:12 AM
тАО10-17-2006 03:12 AM
I am trying to use rsync to copy files over preserving owners, rights, group etc. but am having some problem:
rsync -avzopg -e "ssh -i /var/home/hchua/fr1httpmo01-rysnc-key" testing.txt hchua@192.168.60.71:/opt
building file list ... done
testing.txt
mkstemp .testing.txt.RSQLLk failed: Permission denied
wrote 250 bytes read 36 bytes 572.00 bytes/sec
total size is 417 speedup is 1.46
rsync error: some files could not be transferred (code 23) at main.c(620)
May I know wat is wrong?
I create the key in my home dir.. do i need special previlege to do this?
Thanks!
regards
Henry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 04:06 AM
тАО10-17-2006 04:06 AM
Re: Copying file to remote server using rsync
http://www.jdmz.net/ssh/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 07:12 AM
тАО10-17-2006 07:12 AM
Re: Copying file to remote server using rsync
mkstemp .testing.txt.RSQLLk failed: Permission denied
Check the permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 01:32 PM
тАО10-17-2006 01:32 PM
Re: Copying file to remote server using rsync
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 03:48 PM
тАО10-17-2006 03:48 PM
SolutionMake sure you are allowed to write in /opt. Usually ordinary users may not write over there, and you are trying to do that as user hchua. I guess you will have to run as root something similar to one of the following commands on the target computer:
chmod a+w /opt
or
chgrp hchua /opt && chmod g+w /opt
or
setfacl -m u:hchua:w /opt
The last one assumes /opt resides on a filesystem which was mount with extended acl rights (mount -o remount,acl /opt)
If you are not allowed to modify /opt, then either transfer to you home dir or to /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 06:21 AM
тАО10-18-2006 06:21 AM
Re: Copying file to remote server using rsync
rsync must run as root. Rsync normally creates
a new file and moves it into place once it is
copied. Newer versions also have an inplace
option to update files without copying them.
I am waiting for my log source to updated so
I don't copy current logs on the log server.