-   Linux - Newbie (
-   -   rsync between windows and linux (

aavika 04-02-2015 07:35 AM

rsync between windows and linux
hello everyone,
i want rsync between windows and linux. For that i installed cygwin and cygwin's packages on windows,which is necessary for rsync. i dont know how to do?, where i have to write commands, in cygwin or in putty? please help me... i am new in cygwin, dont know anything about it

thanks in advance..

JeremyBoden 04-02-2015 07:49 AM

First decide whether you want to run the rsync on the Linux machine or on the Windows machine.

You will also need a network connection between the machines - this doesn't necessarily require cygwin (but might do).

Can you use ssh to give the Windows machine access to the Linux machine?

pan64 04-02-2015 08:02 AM

Yes, in general you need to decide, and it depends on what do you want to achieve. Network connection required, and also you need to know if you want to use rsync directly or over ssh (that means you want to use rsync or ssh server).

veerain 04-02-2015 08:41 AM

Rsync is used for both local filesystem transfer and for network transfer over ssh.

Elaborate more on what you want to do.

aavika 04-02-2015 09:04 AM

thnk u all... JeremyBoden, pan64, veerain

i want to copy my data ( C or D drive) from windows client to linux server, nd run rsync from windows only.
Currently am using cygwin software which is installed on windows.
Actually want to run rsync silently or quietly.. is this possible??

pan64 04-02-2015 09:08 AM

so I suggest you to read the man page of rsync, you will find some simple examples on it and also advanced tips and information about its flags. Of course it has a -q option to work quietly.

aavika 04-02-2015 09:19 AM


i wrote the command on cygwin terminal - rsync -av "/cygdrive/c/vj" "root@"
and it successfully run and gives perfect output what i want

Now problem is.. that black cygwin window should not shw
rsync should be run on background
want rsync as a service.. should be automatically run in background
for this i have to make .exe or what????

Thank u so much for the reply..

JeremyBoden 04-02-2015 09:32 AM

Why does the Linux server allow clients to have root access?

pan64 04-02-2015 09:34 AM

yes, rsync should not use root account, but a regular user.
For the job you want to run: you need to construct a cmd file (or bash script) to do the task and you need to run it from cron (or by the command at on windows)

allend 04-02-2015 09:55 AM


Now problem is.. that black cygwin window should not shw
Requires some work in Windows.

suicidaleggroll 04-02-2015 10:10 AM


Originally Posted by allend (Post 5341447)

cron is a much better solution and requires no work at all, beyond the normal cron setup.

aavika 04-03-2015 12:53 AM

thnks all..

Actually have a condition..
every 15 minutes rsync should be run.
what to u mean by cron? i mean what is cron?
how to create cmd or bash file?? so sorry i dont know .. i am new in this
please help me..

JeremyBoden 04-03-2015 07:52 AM

Here's one that runs every 10 minutes...

aavika 04-03-2015 11:34 PM

thnks for rply..
yeah its good... but cron is for linux/unix. not for windows.
what should i do for windows? i mean rsync from windows command prompt
thats y i installed cygwin.. but get solution yet.. tried many times.
Is there any way rsync or copy data from windows to linux through cygwin??

JeremyBoden 04-04-2015 08:11 AM

How do you make windows run cygwin every 15 minutes?

Why not set up a virtual machine & then you could run proper Linux? :D

All times are GMT -5. The time now is 03:20 AM.