https://bugzilla.samba.org/show_bug.cgi?id=9246

Wayne Davison <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Severity|normal                      |enhancement

--- Comment #1 from Wayne Davison <[email protected]> 2012-10-07 18:45:04 UTC ---
One potential solution:

 rsync -aiv --rsync-path="chroot /chroot-path /usr/bin/rsync" src
localhost:/dest

That does require you to have a working rsync inside the chroot, while a
--chroot option would not.

If you don't have working ssh to localhost (or don't want to bother with
localhost encryption), add "-e lsh" to the command and put the "lsh" shell
script from the support dir on your path.  Make sure it is a recent copy, like
this one:

 http://rsync.samba.org/ftp/unpacked/rsync/support/lsh

If you want to make use of lsh's user options, you should instead put lsh into
the chroot (along with rsync) and do this:

 rsync -aive "chroot /chroot-path /usr/local/bin/lsh" src user@localhost:/dest

I'm leaving this bug marked as an enhancement in case we want to add a --chroot
option that makes it do a chroot internally.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to