Problem with many files in rsync server directory ?
Carson Gaspar
carson at taltos.org
Wed Jan 7 19:05:49 GMT 2004
--On Wednesday, January 07, 2004 03:10:23 -0800 jw schultz <jw at pegasys.ws>
wrote:
> I've lost track of the number of times someone has
> complained on this list because blah/blah/* didn't behave as
> he expected and the problem went away when he dropped the
> unnecessary wildcard.
Hmmm... given the following files:
foo/a
foo/b
foo/c/1
how do you do "rsync foo/* bar" without globs? Note that this is _not_
recursive. All I can think of is to replace the glob with an exclude, doing
"rsync -r --exclude='*/*' foo/ bar/", which is an absolutely terrible
construct (please recurse - whoops, just kidding!).
Hmmm... using bash, you can do "rsync --files-from=<(find foo/. -maxdepth 1
! -type d -printf '%P\n') foo bar/", but that's also wretched.
--
Carson
More information about the rsync
mailing list