CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> BackupPC - Windows Backup - Cygwin Setup
UBC Physics & Astronomy
BackupPC servers: zbox (142.103.236.6), borg (142.103.236.30)
n/a

Cygwin Setup - 18-08-20

Restarting Cygwin

If cygwin fails to re-start, you may need to delete the file /var/run/rsync.pid manually and then start it.

Install Cygwin

  1. Download cygwin installation file from http://cygwin.com/install.html
  2. Choose the following packages:
    openssh
    rsync
    nano
  3. Run Cygwin as Administrator, then run the following command with the listed options:
    $ ssh-host-config
    *** Query: Should privilege separation be used? (yes/no) yes
    
    *** Query: Do you want to install sshd as a service?
    *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
    *** Query: Enter the value of CYGWIN for the daemon: [] ntsec mintty
    
    *** Query: Do you want to use a different name? (yes/no) no
    *** Query: Please enter the password for user 'cyg_server':
    *** Query: Reenter:
    
  4. Create rsyncd.conf file
    vi /etc/rsyncd.conf
    #uid = root
    max connections = 50
    syslog facility = local5
    pid file = /var/run/rsyncd.pid
    
    [test]
      path = /cygdrive/c/SOLIDWORKS Data/lang
      hosts allow = 142.103.236.30 142.103.236.6
      read only = yes
    
  5. Ron@CSTMPC ~
    $ cat /etc/rsyncd.conf
    #uid = root
    max connections = 50
    syslog facility = local5
    pid file = /var/run/rsyncd.pid
    
    [STMdata]
      path = /cygdrive/c/STM data
      hosts allow = 142.103.236.30 142.103.236.6
      read only = yes
      secrets file = /etc/rsyncd.secrets
    
    Ron@CSTMPC ~
    $ cat /etc/rsyncd.secrets
    cstmpcsync:rSync.pHas.6224.
    
  6. Install rsyncd as a service
    cygrunsrv --install "rsyncd" --path /usr/bin/rsync --args "--daemon --no-detach" \
     --desc "Starts a rsync daemon for accepting incoming rsync connections" \
     --disp "Rsync Daemon" --type auto
  7. Start the rsyncd service
    net start rsyncd
  8. Open ports 22 and 873 on Windows Firewall