Ah, assumptions, the mother of all the problems, I did assume you will
understand.

:)

Let me go back one step.

rsync,

rsync is a tool that can be used local or remote. for local, you use rsync
source destination, done

for remote, you have 2 options

rsync.remote.1 Use an rsync daemon, quite fast, etc, but requirees a daemon
port, so most people go to method 2.
rsync.remote.2 use SSH to encapsulate rsync traffic.

Lets' talk about rsync remote using ssh.

this is a client server thing, so, it require, on host and destination have
rsync installed.
in order to use rsync over ssh, requires ssh server running on destination,
ssh client on host.

put this into your setup, you have.

Physical host, windows
require ssh binary
require rsync binary

Guest host, linux
require ssh server running
require rsync binary


Let's clear out all the assumptions out,
If you can connect to the guest with vagrant ssh or ssh localhost -p <port
that vagrant tells you, say 2222>
you have the ssh part running on the guest
once connected to the guest, do which rsync, if you see an rsync command,
then the guest requirement are set


Back to your host, and now I will not make assumptions.

>From Vagrant manual:

"As long as rsync is installed in both the host and the guest, this will *just
work*. Since rsync is a standard utility for Mac and most Linux
distributions, this just works most of the time! For Windows users,
msysgit<https://code.google.com/p/msysgit/>,
MinGW <https://www.mingw.org/>, and Cygwin <https://www.cygwin.org/> all
provide rsync."


On your windows machine, if you want to use rsync, be sure, both rsync and
ssh (from the same distribution you used to get rsync), are available from
the path.

Test it.

vagrant up
vagrant ssh-config

ssh -p <port> vagrant@localhost

if you see a prompt and you get asked by password, then ssh is working

Not, test rsync

rsync -e 'ssh -p <port>' vagrant@localhost

same, if you see the prompt, is most likely it's working

Now you can test vagrant rsync and *should* work

test from command line to any linux/unix box you have with a valid user
password to ensure both ssh and rsync works

hope this clarify better.

Alvaro.,


On Tue, Apr 29, 2014 at 2:44 AM, Ian Anderson Gray <[email protected]>wrote:

> Are you referring to the guest OS or the host? I know the the guest
> (Ubuntu) has the ssh utility installed. Not sure about Windows.
>
> Unfortunately I don't really understand what I should be doing. Are you
> saying I need to configure rsync on Windows more? Or do I need to do
> something in my Vagrant file.
>
> It's been a very frustrating journey trying to get Vagrant running on
> Windows, but I hope I can eventually get there. Thanks for your help.
>
> Ian
>
> On Monday, April 28, 2014 11:37:43 AM UTC+1, Alvaro Miranda Aguilera wrote:
>>
>> usually those rsync came with an ssh utility , and you should use it as
>>
>> rsync -e 'path/to/ssh'
>>
>> try to use the rsync from command line and test
>>
>> i havent used the rsync sync from vagrant but as command line rsync i use
>> this one
>> http://www.opbyte.it/grsync/download.html
>>
>> take note it require to use the ssh that came in the same software, in
>> case you have more than one ssh in the path/ prompt..
>>
>> Alvaro.
>>
>>
>> On Mon, Apr 28, 2014 at 9:00 PM, Ian Anderson Gray <[email protected]>wrote:
>>
>>> I'm not sure how many Windows users there are in this group, but I
>>> thought I'd give a quick update...
>>>
>>> I managed to get rsync on Windows by installing cwRsync. I installed the
>>> free version using the instructions here - http://www.rsync.net/
>>> resources/howto/windows_rsync.html
>>>
>>> That didn't work, but after Googling I found an answer to a similar
>>> question. It had to do with adding the path to the environmental variables
>>> so rsync could be accessed from all folders:
>>> http://stackoverflow.com/questions/20493309/cwrsync-in-
>>> windows-not-being-recognised
>>>
>>> Unfortunately I am still getting errors with I do vagrant up. I really
>>> don't understand what the problem is. I know there were issues with
>>> previous versions of Vagrant, but I am on the latest one (v1.5.4)
>>>
>>> Here are the error messages:
>>>
>>> ==> default: Rsyncing folder: /cygdrive/c/Users/IanAnderson/
>>> Documents/Sites/Vagrants/Primary-Vagrant/vagrant-local/sites
>>> /stable.wordpress.vagrant/ => /var/www/stable.wordpress.vagrant
>>> ==> default:   - Exclude: [".vagrant/", ".git/"]
>>> There was an error when attempting to rsync a synced folder.
>>> Please inspect the error message below for more info.
>>>
>>> Host path: /cygdrive/c/Users/IanAnderson/Documents/Sites/Vagrants/
>>> Primary-Vagrant/vagrant-local/sites/stable.wordpress.v
>>> agrant/
>>> Guest path: /var/www/stable.wordpress.vagrant
>>> Command: rsync --verbose --archive --delete -z --chmod=ugo=rwX
>>> --no-perms -e ssh -p 2222 -o StrictHostKeyChecking=no -i
>>> 'C:/Users/IanAnderson/.vagrant.d/insecure_private_key' --exclude
>>> .vagrant/ --exclude .git/ /cygdrive/c/Users/IanAnderson
>>> /Documents/Sites/Vagrants/Primary-Vagrant/vagrant-local/
>>> sites/stable.wordpress.vagrant/ [email protected]:/var/www/stabl
>>> e.wordpress.vagrant
>>> Error: Warning: Permanently added '[127.0.0.1]:2222' (RSA) to the list
>>> of known hosts.
>>> rsync: connection unexpectedly closed (0 bytes received so far)
>>> [Receiver]
>>> rsync error: error in rsync protocol data stream (code 12) at io.c(605)
>>> [Receiver=3.0.9]
>>> rsync: read error: Connection reset by peer (104)
>>> rsync error: error in rsync protocol data stream (code 12) at io.c(759)
>>> [sender=3.0.6]
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Vagrant" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to