User Tools

Site Tools


wiki:cygwin_install_backuppc_rsyncd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:cygwin_install_backuppc_rsyncd [2015/06/03 20:12] jrdalrymplewiki:cygwin_install_backuppc_rsyncd [2018/09/27 02:29] (current) – external edit 127.0.0.1
Line 18: Line 18:
   - Cleanup   - Cleanup
  
-<file dos cygwin_install.cmd>+<file DOS cygwin_install.cmd>
 mkdir C:\cygwin_install mkdir C:\cygwin_install
-copy /Y \\mn-ms3.gsellc.local\cygwin_install C:\cygwin_install+copy /Y \\fileserver\cygwin_install C:\cygwin_install
  
 C:\cygwin_install\setup-x86_64.exe -q -D -s http://mirrors.xmission.com/cygwin -l C:\cygwin64 -L C:\cygwin64 -P base-cygwin,wget,git,git-svn,openssh,cygrunsrv,rsync C:\cygwin_install\setup-x86_64.exe -q -D -s http://mirrors.xmission.com/cygwin -l C:\cygwin64 -L C:\cygwin64 -P base-cygwin,wget,git,git-svn,openssh,cygrunsrv,rsync
Line 42: Line 42:
 rmdir C:\cygwin_install rmdir C:\cygwin_install
 </file> </file>
 +== doit.cmd ==
 +This is just a psexec launcher. Very straightforward and worthless:
 +<file DOS doit.cmd>
 +.\psexec.exe \\%1 -e -s -c cygwin_install.cmd
 +</file>
 +So when it's time to "do it" you will just `.\doit hostname`\\ 
 +== rsyncd.conf ==
 +I shouldn't need to help you with this, but this file is going to be required eventually, so here is a sample:
 +<file ini rsyncd.conf>
 +gid = 544
 +uid = 18
 +use chroot = false
 +transfer logging = true
 +log format = %h %o %f %l %b
 +log file = /var/log/rsyncd.log
 +max connections = 1
 +pid file = /var/run/rsyncd.pid
 +lock file = /var/run/rsyncd.lock
  
 +[cDrive]
 + path = /cygdrive/c
 + comment = Entire C Drive
 + auth users = backuppc
 + secrets file = /etc/rsyncd.secrets
 + hosts allow = backuppc_ip
 + strict modes = false
 + read only = true
 + list = false
 + 
 +[CompanyShare]
 + path = /cygdrive/d/MyCompany
 + comment = Maybe useful for a shared fileserver for your entire company
 + auth users = backuppc
 + secrets file = /etc/rsyncd.secrets
 + hosts allow = backuppc_ip
 + strict modes = false
 + read only = true
 + list = false
 + 
 + [dbbackups]
 + path = /cygdrive/c/dbbackups
 + comment = Microsoft SQL Server backups
 + auth users = backuppc
 + secrets file = /etc/rsyncd.secrets
 + hosts allow = backuppc_ip
 + strict modes = false
 + read only = true
 + list = false
 +</file>
 +== rsyncd.secrets ==
 +This is also required, at least it is using the rsync config specified above:
 +<file ini rsyncd.secrets>
 +# Also: make sure this file ends in a newline.  Otherwise the last
 +# username/password pair will be ignored.
 +#
 +#UUU:PPP
 +
 +
 +backuppc:backuppcpasswordfromserver
 +</file>
 +== update.cmd ==
 +This file is optional, but useful for updating your server(s) without going through the entire install process again:
 +<file DOS update.cmd>
 +.\psexec.exe \\%1 -e -s -c rsyncd_update.cmd
 +</file>
 +Called like doit.cmd - add a hostname after
 +== rsyncd_update.cmd ==
 +The meat and potatoes called when the helper above is used:
 +<file DOS rsyncd_update.cmd>
 +mkdir C:\cygwin_install
 +copy /Y \\fileserver\cygwin_install C:\cygwin_install
 +
 +copy C:\cygwin_install\rsyncd.conf C:\cygwin64\etc\rsyncd.conf
 +copy C:\cygwin_install\rsyncd.secrets C:\cygwin64\etc\rsyncd.secrets
 +net stop rsyncd
 +net start rsyncd
 +
 +del /Q C:\cygwin_install
 +rmdir C:\cygwin_install
 +</file>
 +Yes - this is just a trimmed down version of the other command file.
 +==== Final thoughts ====
 +I keep a working copy of this directory on a workstation of mine to call it from. Really most of the scripts don't need to be pulled down by the remote host, basically just the cygwin setup file and the rsyncd config files. It's easiest to just keep everything together though. Alternatively, if you can get to a command prompt on the fileserver you can just run doit and/or update from there.
 ==== Related Links ==== ==== Related Links ====
 [[wiki:backuppc_mssql|Here is the addendum for dbbackups]]\\  [[wiki:backuppc_mssql|Here is the addendum for dbbackups]]\\ 
 [[wiki:backuppc_vsc|Here is the addendum for enabling Volume Shadow Copies]] [[wiki:backuppc_vsc|Here is the addendum for enabling Volume Shadow Copies]]
wiki/cygwin_install_backuppc_rsyncd.1433362375.txt.gz · Last modified: 2018/09/27 02:30 (external edit)