specifying a list of files to transfer
Leakin at dfw.Nostrum.com
Wed Jan 15 03:16:00 EST 2003
FYI, pulling multiple files from a daemon currently supported (well, it
works). Given a package of foo you can specify:
rsync -av 'remote::foo/file1 foo/file5' /tmp
It appears the daemon does proper splitting based on either white-space,
or possibly the current value of $IFS in the daemon's environment?
One other note, I did not determine whether it was a Solaris issue, or
string length limit, or file argument limit, but in my tests I could only
specify about 20 files using this method. When I went over the limit no
files were xfered.
I was testing this a while back (just to see if I could), so I don't
remember the exact limit, but I am fairly sure I experimented with shorter
pathnames and it did not effect the max filenames I could specify.
Oh, yes. I did not have the same limitation over ssh. The remote shell
seems to pass any number of filenames to the remote end (of course there
may be limits depending on what login shell is used on the remote server).
---begin quoted text---
> From: Wayne Davison <wayned at users.sourceforge.net>
> To: jw schultz <jw at pegasys.ws>
> Cc: rsync at lists.samba.org
> Subject: Re: specifying a list of files to transfer
> User-Agent: Mutt/1.3.28i
> X-BeenThere: rsync at lists.samba.org
> X-Mailman-Version: 2.0.13
> X-Original-Date: Tue, 14 Jan 2003 18:41:22 -0800
> Date: Tue, 14 Jan 2003 18:41:22 -0800
> On Tue, Jan 14, 2003 at 04:35:40PM -0800, jw schultz wrote:
> > Absolute paths are bad news here. Especially when dealing with an
> > rsync daemon.
> Yes, this is something that needs to be dealt with for daemon mode since
> it does not appear to have been possible to specify multiple filenames
> to pull before (unlike remote-shell mode).
> For non-daemon mode, the code is the same as it always was in this
> regard. For example, this command:
> rsync -av /tmp/one /foo/two /bar/three dest:
> is no different than this command:
> rsync -av --files-from=list /tmp dest:
> where list contains:
> In the patch I posted earlier, daemon mode did not work with the new
> --from-files option. My latest patch has this fixed:
> And it also runs the filenames through sanitize_path() in daemon mode
> (when chroot is not specified, at least -- I haven't tested a chroot
> version yet).
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
---end quoted text---
Lee Eakin - leakin at dfw.nostrum.com
With sufficient thrust, pigs fly just fine. -- RFC 1925
More information about the rsync