LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2015, 07:35 AM   #1
aavika
Member
 
Registered: Dec 2014
Posts: 82

Rep: Reputation: Disabled
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..
 
Old 04-02-2015, 07:49 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,039

Rep: Reputation: 206Reputation: 206Reputation: 206
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?
 
Old 04-02-2015, 08:02 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,644

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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).
 
Old 04-02-2015, 08:41 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Rsync is used for both local filesystem transfer and for network transfer over ssh.

Elaborate more on what you want to do.
 
Old 04-02-2015, 09:04 AM   #5
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
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??
 
Old 04-02-2015, 09:08 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,644

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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.
 
Old 04-02-2015, 09:19 AM   #7
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
hey,

i wrote the command on cygwin terminal - rsync -av "/cygdrive/c/vj" "root@192.168.1.149:/home/vbox/2012/"
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..
 
Old 04-02-2015, 09:32 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,039

Rep: Reputation: 206Reputation: 206Reputation: 206
Why does the Linux server allow clients to have root access?
 
Old 04-02-2015, 09:34 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,644

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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)
 
Old 04-02-2015, 09:55 AM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,501

Rep: Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383Reputation: 1383
Quote:
Now problem is.. that black cygwin window should not shw
Requires some work in Windows. https://cygwin.com/ml/cygwin/2014-10/msg00377.html
 
Old 04-02-2015, 10:10 AM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
Quote:
Originally Posted by allend View Post
cron is a much better solution and requires no work at all, beyond the normal cron setup.
 
Old 04-03-2015, 12:53 AM   #12
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
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..
 
Old 04-03-2015, 07:52 AM   #13
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,039

Rep: Reputation: 206Reputation: 206Reputation: 206
Here's one that runs every 10 minutes...

http://www.cyberciti.biz/faq/crontab-every-10-min/
 
Old 04-03-2015, 11:34 PM   #14
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
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??
 
Old 04-04-2015, 08:11 AM   #15
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,039

Rep: Reputation: 206Reputation: 206Reputation: 206
How do you make windows run cygwin every 15 minutes?

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Options? rsync from Windows 7 to Linux haertig Linux - Software 1 03-19-2013 08:23 PM
rsync windows linux zerocool22 Linux - Server 4 05-23-2008 11:18 AM
How to rsync over ssh from Windows to Linux hareeshvv Linux - Networking 8 07-06-2006 10:11 PM
Rsync Backup From Windows To Linux Problem sectrean Linux - Networking 0 10-18-2004 04:11 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration