Changes

Jump to navigation Jump to search
9 bytes added ,  00:19, 11 September 2015
Line 267: Line 267:  
We have share name (cdocs), path, the valid user created on the Windows client, the path to the rysnc.secrets file, an allowable host (this being the local backup server IP), modes, read only and list.  The options are mostly explained in the file – what it doesn’t show is that if you have a different version of rsync, the rsync.conf file looks a bit different.  This one is for rsync 3.0.9
 
We have share name (cdocs), path, the valid user created on the Windows client, the path to the rysnc.secrets file, an allowable host (this being the local backup server IP), modes, read only and list.  The options are mostly explained in the file – what it doesn’t show is that if you have a different version of rsync, the rsync.conf file looks a bit different.  This one is for rsync 3.0.9
 
  [cdocs]
 
  [cdocs]
  Path = /cygdrive/c/Users/<USERNAME>
+
  Path = /cygdrive/c/Users/<USERNAME>
  comment = c: User Data
+
  comment = c: User Data
  strict modes = false
+
  strict modes = false
  auth users = <valid-back-up-user>
+
  auth users = <valid-back-up-user>
  secrets file = c:/rsyncd/rsyncd.secrets
+
  secrets file = c:/rsyncd/rsyncd.secrets
  hosts allow = 192.168.1.1
+
  hosts allow = 192.168.1.1
  read only = false
+
  read only = false
  list = false
+
  list = false
    
The final thing that must happen to make rsync work properly is to load rysnc as a service on the Windows client.  The file service.bat shows the following command to accomplish this:
 
The final thing that must happen to make rsync work properly is to load rysnc as a service on the Windows client.  The file service.bat shows the following command to accomplish this:
c:/rsyncd/rsync.exe -a "--config=c:/rsyncd/rsyncd.conf --daemon --no-detach"
+
c:/rsyncd/rsync.exe -a "--config=c:/rsyncd/rsyncd.conf --daemon --no-detach"
    
There is also a “gotcha” – sometimes port 873 is blocked by Windows Firewall, so you may need to fix that.
 
There is also a “gotcha” – sometimes port 873 is blocked by Windows Firewall, so you may need to fix that.
11

edits

Navigation menu