Hey Everybody, I'm trying to use rsync to do a remote backup. First I open a ssh tunnel to the rsync daemon on the server. Then I run rsync through this tunnel. An example follows:
ssh -v -x -p 1999 -L 8730:localhost:873 [EMAIL PROTECTED] -f sleep 5 && rsync --port 8730 --verbose --update --archive --exclude='[Cc]ache' --delete-excluded --password-file /etc/rsync.pwd --timeout=600 --blocking-io /home /exports/data /var/lib/mysql /var/www /exports/devel user@localhost::user The 'user' has an account on the machine as well as an rsync account. Public/private keys are used for the ssh session. Both sides are Debian potato running rsync 2.5.5 and ssh 1.2.3. The server has kernel 2.4.17 and the client has 2.2.19. Below are the last few lines of an strace as well as netstat -ta from both sides. If anything else can help, let me know. I've been wracking my brain over this and searching everywhere for any clues to no avail. Thanks in advance. strace output (not sure how much is relevant) ------------------------------------------------- gettimeofday({1021143005, 991674}, NULL) = 0 select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0}) write(3, "\360\6\0\0", 4) = 4 select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0}) write(3, " \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1776) = 1776 select(4, NULL, [3], NULL, {60, 0}) = 0 (Timeout) select(4, NULL, [3], NULL, {60, 0}) = 0 (Timeout) select(4, NULL, [3], NULL, {60, 0} <unfinished ...> netstat -ta (client) ------------------------------------------------------------------- Proto Recv-Q Send-Q Local Address Foreign Address State tcp 3560 65824 localhost.localdom:8730 localhost.localdom:4547 ESTABLISHE tcp 57220 36376 localhost.localdom:4547 localhost.localdom:8730 ESTABLISHE tcp 0 0 localhost.localdom:8730 *:* LISTEN tcp 58776 0 cm-server:4546 ip68-3-204-169.ph.:1999 ESTABLISHE tcp 0 0 cm-server:ssh cm-gateway:861 ESTABLISHE tcp 0 0 *:6010 *:* LISTEN tcp 0 0 cm-server:ssh cm-gateway:966 ESTABLISHE tcp 0 0 *:netbios-ssn *:* LISTEN tcp 0 0 *:www *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 *:ipp *:* LISTEN tcp 0 0 *:mysql *:* LISTEN tcp 0 0 *:swat *:* LISTEN tcp 0 0 *:smtp *:* LISTEN tcp 0 0 *:time *:* LISTEN tcp 0 0 *:daytime *:* LISTEN tcp 0 0 *:discard *:* LISTEN tcp 0 0 cm-server:domain *:* LISTEN tcp 0 0 localhost.locald:domain *:* LISTEN tcp 0 0 *:706 *:* LISTEN tcp 0 0 *:socks *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN netstat -ta (server) -------------------------------------------------------------------- Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:time *:* LISTEN tcp 0 0 *:rsync *:* LISTEN tcp 0 0 *:discard *:* LISTEN tcp 0 0 *:mysql *:* LISTEN tcp 0 0 *:daytime *:* LISTEN tcp 0 0 *:1999 *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 *:www *:* LISTEN tcp 0 0 *:ftp *:* LISTEN tcp 0 0 *:smtp *:* LISTEN tcp 0 0 *:6010 *:* LISTEN tcp 4344 0 backup:33132 backup:rsync CLOSE_WAIT tcp 53248 0 localhost:33144 localhost:rsync ESTABLISHED tcp 0 16544 backup:1999 ip68-3-239-165.ph:63174 ESTABLISHED tcp 0 20272 backup:1999 wsip68-14-250-49.:63338 ESTABLISHED tcp 0 0 backup:1999 rw-linux.aim.lan:45138 ESTABLISHED tcp 0 86016 localhost:rsync localhost:33144 ESTABLISHED -- Richard Wallace AIM, Inc. (www.a--i--m.com) Information Systems Consultants "Providing New Technology, the Old-Fashioned Way" -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html