Package: rsync
Version: 3.0.6-1
Severity: wishlist

As detailed in section "USING RSYNC-DAEMON FEATURES VIA
A REMOTE-SHELL CONNECTION" in the manpage, it is possible to use
daemon features with a remote-shell connection. The way this seems
to work is that the daemon is started via the remote-shell
connection, then the data are transferred *via the remote-shell
tunnel*, and the daemon is taken down at the end of it all.

It would be nice if, in case rsync is used to transfer non-sensitive
data, or data that is already encrypted, this sort of ad-hoc setup
could be used to create a dynamic rsync protocol connection: instead
of via the remote-shell tunnel, the data travels directly between
client and daemon process via the TCP stack.

I envision it as follows:

  rsync -a -e ssh --dynport host::module /dest

This would cause rsync to

  1. spawn an ssh connection to host
  2. start rsync --daemon there, using a dynamically allocated port
  3. communicate that port back to the client
  4. the client now connects to that port using the rsync protocol
  5. it reads 'module' and rsynchronises with /dest
  6. it terminates the daemon process
  7. it closes the ssh connection
  8. it exits

This is obviously all possible to do with a shell script, but having
all of this integrated with rsync would make it a whole lot more
robust.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-rc5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rsync depends on:
ii  base-files                    5.0.0      Debian base system miscellaneous f
ii  libacl1                       2.2.47-3   Access control list shared library
ii  libc6                         2.9-19     GNU C Library: Shared libraries
ii  libpopt0                      1.14-4     lib for parsing cmdline parameters
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip

rsync recommends no packages.

Versions of packages rsync suggests:
ii  openssh-client                1:5.1p1-6  secure shell client, an rlogin/rsh
ii  openssh-server                1:5.1p1-6  secure shell server, an rshd repla

-- no debconf information


-- 
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to