LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2010, 10:57 AM   #1
Norwood
Member
 
Registered: Feb 2010
Location: A Smidge South O' Boston
Distribution: Debian
Posts: 41

Rep: Reputation: 15
Cygwin - how to set shares


So I am trying to learn a little about Cygwin and rsync.

I'd like to rsync some data from a Windows machine to a Linux machine.

I've got Cygwin installed but I can't figure out how to tell Cygwin were rsync will be pulling the data from; basically, how to set the directories that I want to be rsnyc'd.

I've googled and googled but I can't seem to find the answer to this exact question.
 
Old 04-08-2010, 12:27 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Your mention of "shares" is a bit confusing.

Are you trying to rsync from local drives on the Windows machine to Linux? If so you don't need any shares. You simply rsync the files from current location to remote location.

e.g. rsync c:/windows/win.ini linuxuser@linuxhost:/windows

Alternatively you COULD setup shares the normal way from Windows (as if you were sharing out to another Windows machine) then install and configure Samba on the Linux host to mount the share. Once you did that you would use the cp (copy) command on the Linux host to copy the file from the share to another location.
 
Old 04-08-2010, 12:54 PM   #3
Norwood
Member
 
Registered: Feb 2010
Location: A Smidge South O' Boston
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MensaWater View Post
Your mention of "shares" is a bit confusing.

Are you trying to rsync from local drives on the Windows machine to Linux?
I'm trying to rsync files from a remote Windows machine to a local Debian machine.

Quote:
Originally Posted by MensaWater View Post
If so you don't need any shares. You simply rsync the files from current location to remote location.

e.g. rsync c:/windows/win.ini linuxuser@linuxhost:/windows
OK, I guess that's where my problem is. If I want to run rsync from a script on a nightly basis, how do I configure Cygwin to "listen(?)" for incoming rsync requests.

I had done this years ago, but I've forgotten how I did it.

I had a script run rsync every night to backup one machine to another.
 
Old 04-08-2010, 03:13 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You can run rsync in daemon mode to listen for requests with "rsync --daemon". You'd start that from a Cygwin window.

This requires an /etc/rsyncd.conf be setup. Typing "man rsyncd.conf" will give you some details on that.

I haven't done this on a Cygwin install myself (I usually would push from Windows). Of course you could do an automatic push from Windows by installing Vixie Cron into your Cygwin then using it to do an rsync at a scheduled point.
 
Old 04-09-2010, 12:44 PM   #5
Norwood
Member
 
Registered: Feb 2010
Location: A Smidge South O' Boston
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks!
 
  


Reply



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
how do i set samba to password certain shares or ip restrict them mrgreaper Linux - Newbie 3 09-26-2009 03:24 PM
Could I get rid of Cygwin.dll/Cygwin1.dll in program compiled under Cygwin ? Kunsheng Programming 1 05-17-2009 08:30 PM
Have you ever used cygwin, i've met a problem with the command stat from cygwin andy820303 Linux - Newbie 0 03-11-2009 03:37 AM
How to set up QUOTAS on Samba Shares (user home dirs) Obig Linux - Server 2 05-28-2008 04:36 AM
set permanent read-write permission on shares Randall Slack Linux - Networking 1 10-30-2005 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration