I am running rsync version 2.6.4 protocol version 29 on HPUX 11.11. The same version of rsync is being used on both the source and destination sides. I am running rsync across an SSH connection. The remote rsync process does not seem to be locating, or even attempting to locate an rsyncd.conf file, in either /etc/rsyncd.conf or the cwd/pwd of the rsync process.
On the client side I am running rsync as a non-root user as shown below. I am using the /var/tmp/rsync.sh script as a wrapper so I can execute rsync under truss on the remote server.
rsync --verbose --progress --stats --rsync-path=/var/tmp/rsync.sh -e ssh tbcsap01:
The script /var/tmp/rsync.sh on the remote host looks like this
#!/bin/ksh
#
echo "Args $*." > /var/tmp/rsync.op
pwd >> /var/tmp/rsync.op
env >> /var/tmp/rsync.op
/usr/local/bin/truss -efa -o /tmp/truss rsync --verbose $*
I see these results, which are correct; a listing of files in my home directory on the remote host.
opsdev 246 $ rsync --verbose --progress --stats --rsync-path=/var/tmp/rsync.sh -e ssh tbcsap01:
[sender] excluding file .ssh/authorized_keys because of pattern /*/*
[sender] excluding file .ssh/id_rsa because of pattern /*/*
[sender] excluding file .ssh/id_rsa.pub because of pattern /*/*
[sender] excluding file .ssh/known_hosts because of pattern /*/*
[sender] excluding file .ssh/prng_seed because of pattern /*/*
.......................
drwxr-x--- 96 2005/02/28 17:17:10 sftp
drwxr-xr-x 96 2005/06/02 13:06:48 skel.ger
drwxr-xr-x 96 2005/06/02 13:06:48 skel.kcs
drwxr-x--- 96 2005/02/17 14:43:52 tdodbc
total: matches=0 tag_hits=0 false_alarms=0 data="">
Number of files: 217
Number of files transferred: 0
Total file size: 53447865 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 5013
File list generation time: 0.365 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 30
Total bytes received: 31884
sent 30 bytes received 31884 bytes 21276.00 bytes/sec
total size is 53447865 speedup is 1674.75
Here is a listing of the rsyncd.conf file in my home directory on the remote server. A copy of this same file exists in /etc/rsyncd.conf
tbcsap01 67 $ cat rsyncd.conf
#motd file = /etc/rsyncd.motd
log file = /var/tmp/rsyncd.log
pid file = /var/tmp/rsyncd.pid
lock file = /var/tmp/rsync.lock
[cluster_files]
path = /home/bb/cluster_rsync_test
comment = My Very Own Rsync Server
read >
write >
hosts allow = opsdev.deca.mil
auth users = tinsless
max verbosity = 3
I cannot run this command successfully to access the "module" defined in the rsyncd.conf file.
rsync --verbose --progress --stats --rsync-path=/var/tmp/rsync.sh -e ssh tbcsap01:cluster_files
My truss o/p saved through the wrapper script shows no attempt by rsync on the remote server to open a file called rsyncd.conf in any directory or location. I get no log files created in /var/tmp/ as specified in the rsyncd.conf file. Any idea why the rsyncd.conf file is not being used? According to what I read in the rsyncd.conf man page....
By default the configuration file is called /etc/rsyncd.conf, unless rsync is running over a remote shell program and is not running as root; in that case, the default name is rsyncd.conf in the current directory on the remote computer (typically $HOME).
I only get this when trying to access the "module" in the rsyncd.conf.
rsync --verbose --progress --stats --rsync-path=/var/tmp/rsync.sh -e ssh tbcsap01:cluster_files
rsync: link_stat "/nfs/home/tinsless/cluster_files" failed: No such file or directory (2)
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: some files could not be transferred (code 23) at main.c(812)
I would appreciate hearing any possible solutions or explanations. Am I misreading the manual page information?
Scott Tinsley - System Administrator
Defense Commissary Agency
804-734-8707
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html