Rsyncing Windows directory to a Linux box: problem with spacesin directory names

Wayne Davison wayned at samba.org
Wed Dec 17 14:15:11 EST 2003


On Tue, Dec 16, 2003 at 09:00:06PM -0600, Max Kipness wrote:
> You are right about the splitting above, however I can use spaces in
> my include file without issue.

Yes, the include/exclude files are entirely parsed by rsync, so there
are no shell-compatibility issues there.  The problem Charles is having
is due to the file list being expanded from a shell variable rather than
being directly specified on the command-line.  J.W.'s suggestion to have
Charles go up a level, specify just the starting directory, and do all
the limiting via the include/exclude directives would bypass all shell
interactions and avoid the problem with spaces.  Other than that (and
the similar idea of switching to --files-from), Charles will need to
change his shell's variable expansion to not split it on spaces.

..wayne..



More information about the rsync mailing list