Linux Server backuping Windows machine over Rsync?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Linux Server backuping Windows machine over Rsync?
I want to backup the data from my few unfortunate windows machine to my central linux server. I experimented with rsync on linux and would love to use it.
After installing OpenSSH on the windoze box, the linux machine is trying to access it with rsync, but cannot.
Does anybody know what the windows (xp) machine has to run besides OpenSSH to accomplish that?
I don't want to run rsync on the windows machine and "push" it to the linux machine, since there are much too many reinstalls in windows to make it efficient. Also, the task sheduler in windows is a monster that I do not like to get to know.
If this can be done with cygwin (don't have any clue about that yet), how could I run a minimum of it, so it does not hog the (already strained) win CPU?
If you want to use rsync u need to have it installed on both machines. And as far as I know there is no rsync for Windows so u ll have to search for different solution...
Here's my notes from the last time I setup cygwin to rsync Windows files up to a Linux computer.
Note: replace "remote" with the name or ip address of Windows computer.
Download the cygwin packages to a folder and run setup.
The ssh package is in the net selection.
After cygwin is installed, click on the cygwin icon and run these commands;
type: ssh-host-config -y
type: cygrunsrv -S sshd
type: ssh localhost
Check to make sure the service is started...
My Computer \ Control Panel \ Administrative Tools \ Services.....
Cygwin sshd set to automatic and under the Log On tab, set it to run as a service.
Right click on My Computer \ Properties \ Advanced tab \
Environment Variables....
Variable Name: CYGWIN
Variable Value: ntsec tty
Edit: Path to add ;c:\cygwin\bin;c:\
Set up the secure key from the Linux computer while logged on as the same account on the Windows computer. When asked for a key phrase, press the enter key ( blank ) to allow you to connect without entering the key phrase or password. Very useful for cron scheduling.
ssh-keygen -t dsa -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub | ssh fred@remote 'cat - >>
~/.ssh/authorized_keys'
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
To upload the files to the Linux computer from the Windows computer, use the following syntax...
rsync -e ssh -avzr fred@remote:c:/mydirectory /home/fred
To download file from the Linux computer to the Windows computer, use the following syntax....
rsync -e ssh -avzr /home/fred fred@remote:c:/mydirectory
when getting files with rsync from win xp professional (if that can be called professional ;-) to a linux machine, rsync tells me on linux:
Received disconnect from XX.XX.XX.XX: 2: Licensing limits exceeded.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
My script on the linux machine calls rsync twice, the first time it works, the second I receive this error.
Now, who is blocking me with licenses? XP? cygwin? OpenSSH or rsync? (and therefore needs replacing with a open source clean free alternative)
I know that XP does have some DUMB limits when it comes to incoming connections, so you cannot misuse it as a server.
Now, who is blocking me with licenses? XP? cygwin? OpenSSH or rsync? (and therefore needs replacing with a open source clean free alternative)
I'm not sure what is going on there but it sounds like the first connection may not have timed out completely when the second on is used. I wonder why your script calles rsync twice.
Well, it is maybe still a little imperfect.
I call it twice to get two different directories. Is there a way to give rsync a file which contains the dirs one wants to sync?
I found out BTW that with a 10 second delay between the action it will work.
So is XP so crappy that it will not allow me two concurrent connections? What a load of garbage! So I would need to shell out even more to buy a server edition.... Incredible. I predict that Linux will grow, grow and grow...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.