I have combined some simple tool for running Rsync server on Windows 7, i took them from various poppular project like Cygwin, CwRsync, and Instant WIndows Rsync Server from Winsupport, and to make my life simple i created some simple script and config file to running Rsync server.
Here my simple script to runnig Rsync server on Windows 7 :
@echo off
rem
rem Ask which drive is to be shared and create the rsyncd.conf file.
rem
cls
echo.
echo INSTANT RSYNC SERVER
echo.
echo.
echo * * * W A R N I N G * * *
echo.
echo No security is used on this rsync server. Anyone will be able to
echo connect to rsync share and copy files. Be sure to cancel the rsync
echo server when you are finished.
echo.
echo.
echo.Close this windows to stop Rsync Server !!!
echo.
rsync.exe --config rsyncd.conf --daemon --no-detach
rem
rem Ask which drive is to be shared and create the rsyncd.conf file.
rem
cls
echo.
echo INSTANT RSYNC SERVER
echo.
echo.
echo * * * W A R N I N G * * *
echo.
echo No security is used on this rsync server. Anyone will be able to
echo connect to rsync share and copy files. Be sure to cancel the rsync
echo server when you are finished.
echo.
echo.
echo.Close this windows to stop Rsync Server !!!
echo.
rsync.exe --config rsyncd.conf --daemon --no-detach
And here is my rsyncd.conf
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/D/server
read only = false
transfer logging = yes
And save it as rsync.bat and double click it to run rsync server. soon after double click it you will see the Dos Prompt window show up. Close that windows to stop rsync server.
From windows command promt (Windows to Windows) :
rsync.exe 192.168.110.131::The output should test
rsync -avz /cygdrive/d/client 192.168.110.131::test/
Cygdrive/D mean Drive D, cygdrive/d/client mean D:\client
And yes, my files transferred ^^.
From Linux Console (Linux to Windows) :
Testing connection to Rsync server on Windows and the result is test, it mean oke
Transfering file from linux to windows :
rsync -avz crontab-script/ 192.168.110.131::test/
As you can see, it worked too ^^
In Linux world you don't need type /cygdrive/x because cygwin want emulate linux environment on windows, that why it created some layer to accesses windows drive using /cygdrive/windows_drive.
2 comments:
Actually I was using deltacopy as an alternative to rsync and its good but at times it disappointed me with its slow speed. So I searched for an alternative and found that GS Richcopy 360 works really well, its multi threaded file transfer makes the process lightning fast. For me time is everything and this software helped me save time. Try it, Thanks!
I am sure this paragraph about Rsync for Windows has touched all the internet people, its really really nice paragraph on building up new blog.
Post a Comment