Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.