17
3
I'm trying to run rsync on Windows with the cwrsync port.
I'm issuing the following command (note that this is just a dry run):
rsync -nPaAz foouser@webxx.example.com:/home/foobar/webapps/barbaz/ C:\\mybackupfolder\
but I get the following error
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1148) [Receiver=3.0.8]
Could someone point me in the right direction?
This actually works for me. You can just prepend /cygdrive/ before any windows drive. I installed rsync through Chocolatey (therefore cygwin based). – seb – 2019-08-08T11:36:43.110
Gotcha about the colon! But it doesn't seem to help. Tried this other version (%CD% is an env variable pointing to the current dir) too but still failing:
rsync -nPaAz foouser@webxx.example.com:/home/foobar/webapps/barbaz/ %CD% – Lorenzo – 2011-09-20T22:38:10.840
2what about changing to the destination directory and then just use "." for the destination? – jftuga – 2011-09-21T02:30:41.600