wiki:cygwin_install_backuppc_rsyncd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:cygwin_install_backuppc_rsyncd [2015/06/03 20:18] – jrdalrymple | wiki:cygwin_install_backuppc_rsyncd [2018/09/27 02:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| <file DOS cygwin_install.cmd> | <file DOS cygwin_install.cmd> | ||
| mkdir C: | mkdir C: | ||
| - | copy /Y \\mn-ms3.gsellc.local\cygwin_install C: | + | copy /Y \\fileserver\cygwin_install C: |
| C: | C: | ||
| Line 47: | Line 47: | ||
| .\psexec.exe \\%1 -e -s -c cygwin_install.cmd | .\psexec.exe \\%1 -e -s -c cygwin_install.cmd | ||
| </ | </ | ||
| - | So when it's time to "do it" you will just `.\doit hostname` | + | So when it's time to "do it" you will just `.\doit hostname`\\ |
| + | == rsyncd.conf == | ||
| + | I shouldn' | ||
| + | <file ini rsyncd.conf> | ||
| + | gid = 544 | ||
| + | uid = 18 | ||
| + | use chroot = false | ||
| + | transfer logging = true | ||
| + | log format = %h %o %f %l %b | ||
| + | log file = / | ||
| + | max connections = 1 | ||
| + | pid file = / | ||
| + | lock file = / | ||
| + | [cDrive] | ||
| + | path = /cygdrive/c | ||
| + | | ||
| + | auth users = backuppc | ||
| + | | ||
| + | hosts allow = backuppc_ip | ||
| + | | ||
| + | read only = true | ||
| + | list = false | ||
| + | |||
| + | [CompanyShare] | ||
| + | path = / | ||
| + | | ||
| + | auth users = backuppc | ||
| + | | ||
| + | hosts allow = backuppc_ip | ||
| + | | ||
| + | read only = true | ||
| + | list = false | ||
| + | |||
| + | | ||
| + | path = / | ||
| + | | ||
| + | auth users = backuppc | ||
| + | | ||
| + | hosts allow = backuppc_ip | ||
| + | | ||
| + | read only = true | ||
| + | list = false | ||
| + | </ | ||
| + | == 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. | ||
| + | # username/ | ||
| + | # | ||
| + | #UUU:PPP | ||
| + | |||
| + | |||
| + | backuppc: | ||
| + | </ | ||
| + | == 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 | ||
| + | </ | ||
| + | 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: | ||
| + | copy /Y \\fileserver\cygwin_install C: | ||
| + | |||
| + | copy C: | ||
| + | copy C: | ||
| + | net stop rsyncd | ||
| + | net start rsyncd | ||
| + | |||
| + | del /Q C: | ||
| + | rmdir C: | ||
| + | </ | ||
| + | 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, | ||
| ==== Related Links ==== | ==== Related Links ==== | ||
| [[wiki: | [[wiki: | ||
| [[wiki: | [[wiki: | ||
wiki/cygwin_install_backuppc_rsyncd.1433362717.txt.gz · Last modified: 2018/09/27 02:30 (external edit)