Skip to content

Instantly share code, notes, and snippets.

@bse666
Last active June 20, 2016 10:26
Show Gist options
  • Save bse666/60ce99c686a9508572922ef0ebb7354f to your computer and use it in GitHub Desktop.
Save bse666/60ce99c686a9508572922ef0ebb7354f to your computer and use it in GitHub Desktop.
Custom Service in Windows

How to Custom Service for Windows

rsync your windows for extreme backup's

  • rsync for windows
    • chocolatey
    • or cygwin version
  • instserv.exe and srvany.exe from Win2k3 Resource Kit [http://www.microsoft.com/en-us/download/confirmation.aspx?id=17657]
  • put the files above and the config files in c:\rsyncd
  • CMD: instsrv.exe rsyncd "C:\rsyncd\srvany.exe"
  • run the reg file to configure the service
  • start the service with your control panel
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\rsyncd\Parameters]
"AppDirectory"="C:\\rsyncd\\"
"Application"="C:\\rsyncd\\rsync.exe"
"AppParameters"="--config=C:\\rsyncd\\rsyncd.conf --daemon --no-detach"
use chroot = false
strict modes = false
log file = C:\rsyncd\rsyncd.log
hosts allow = 192.168.1.0/24
hosts deny = *
[cdrive]
path = /cygdrive/c/
read only = yes
list = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment