Rsync + Windows 7 - backing up to linux server

Max Pyziur pyz at brama.com
Mon Aug 23 02:50:56 UTC 2010


On Sun, 22 Aug 2010, Larry Brower wrote:

> Max Pyziur wrote:
>> Greetings,
>>
>> I have successfully been using rsync to backup my Linux desktop and laptop
>> for several years.
>>
>> My current goal is to automatically backup a Windows 7 desktop to a linux
>> server using rsync. I've found guidance here:
>> http://www.gaztronics.net/rsync.php
>>
>> I have installed Cygwin along with the rsync option.
>>
>> For the Windows 7 machine I've written a short batch file who's critical
>> line reads as follows:
>> c:\cygwin\bin\rsync -vrtz  -e "c:\cygwin\bin\ssh -i
>> /home/someuser/.ssh/id_rsa" /cygdrive/b
>> someuser at leeloo:/var/backup/arrakis
>>
>
>
> The above does not look right. The path to the key would need to be on
> the machine calling  rsync, in other words the Windows box. That being
> said /home/someuser/.ssh/id_rsa wouldnt be the correct path.

That part of the line works. Until I generated the correct key (ssh-keygen 
-t rsa -b 2048), I kept getting error messages that the key couldn't be 
found.

This isn't the problem.

The problem is that the backup machine (a Linux box) requests 
authentication from the Windows 7 machine when the Windows 7 machine 
initiates the rsync script to backup contents to the linux box.

Max Pyziur
pyz at brama.com



More information about the users mailing list