Rsyncing Windows directory to a Linux box: problem with spaces
in directory names
charlesnadeau at hotmail.com
Wed Dec 17 11:05:50 EST 2003
Max Kipness wrote:
>> > I am trying to rsync folders/files hosted on a Windows machine to a
>> > Linux machine. Many of the directory names have spaces in them.
>> > How can I list them in a file so that the --include-from option use
>> > them correctly?
>> > Thanks!
>> > Charles
>> try\ escaping\ the\ spaces\ like\ this
>> "or perhaps quoting"
> I just include them with the spaces and it works fine. This is with
> Redhat 8 or 9.
Here are more details on the problem.
The complete script I am using can be found there:
command from this script that cause me problem is: rsync -va --delete
--exclude-from=$excludefile $backup $backuproot/$type.1/
When I execute the script above with a directory name containing space in
include.text, I get the following error message:
building file list ... link_stat /diskbox/Anciens : No such file or
link_stat projets/. : No such file or directory
IO error encountered - skipping file deletion
Anything I could do besides trying to escape the space or putting the whole
directory between double quote?
Charles-E. Nadeau Ph.D
More information about the rsync