Latest versions of cygwin - Paths with spaces

André Bleau andre_bleau@hotmail.com
Wed May 18 03:28:28 GMT 2022


Hi Giovani.

Giovani Erthal wrote:
 
> I'm using rsync to perform backups. But I have errors in paths with spaces.
> 
> Source: C:\Users\giova\Downloads\Teste com espaço
> Destination: C:\Users\giova\Downloads\Destino com espaço
> 
> Command:
> 
> rsync.exe -avz -s --no-perms --no-owner --no-group --chmod=ugo=rw /cygdrive/C/Users/giova/Downloads/Teste" 
> 
> "com" "Espaço /cygdrive/C/Users/giova/Downloads/Destino" "com" "espaço

Wrong space quoting. Try:

rsync.exe -avz -s --no-perms --no-owner --no-group --chmod=ugo=rw "/cygdrive/C/Users/giova/Downloads/Teste com Espaço" "/cygdrive/C/Users/giova/Downloads/Destino com espaço"

> 
> Result:
> 
> sending incremental file list
> rsync: link_stat "/cygdrive/C/Users/giova/Downloads/Teste" "com" "Espaço" failed: No such file or directory (2)
> 
> sent 18 bytes  received 12 bytes  60.00 bytes/sec
> total size is 0  speedup is 0.00
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
> 
> Initially I was using cwrsync 6.2.4 (it has the same problem). Using cwrsync 5.5.0 everything works perfectly.
> 
> Now I downloaded cygwin and installed rsync (latest version), but the problem is the same.
> 
> How to make this work without using an old version of cygwin?

Regards,

- André Bleau


More information about the Cygwin mailing list