On 2022-05-18, André Bleau wrote: > 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"
André's quoting is unusual, but it's not wrong. For example: $ cat foo #!/bin/bash for word in "$@" do echo "$word" done $ ./foo one two" "three four one two three four However, I've always seen the C: drive under /cygdrive as /cygdrive/c, with a lower-case c. Regards, Gary -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple