Changes

From SME Server
Jump to navigationJump to search
2,424 bytes added ,  01:06, 11 September 2015
Line 247: Line 247:     
Now you can go to the admin backuppc panel to set your host<br />
 
Now you can go to the admin backuppc panel to set your host<br />
 +
 +
====Backup a Windows Client with rsync====
 +
 +
To configure a Windows client to be backed up via rsync, install rsync on the Windows client.  rysnc needs to be running as a service on the Windows client to ensure communication.
 +
There are several options/versions of rsync – the first I was able to get working was from http://sourceforge.net/projects/backuppc/files/cygwin-rsyncd/2.6.8_0/
 +
The zip file contains 7 files – the site goes into more detail about each of the files.  Depending on how you wish to use BackupPC will determine which files to edit.
 +
I use rsync without ssh keys – to do so create a local user with sufficient rights to the directory or directories on the Windows client, then edit rsync.secrets to include the UserID & Password.  You then use that same UserID & Password within the configuration from the BackupPC webpage – where you chose to back-up the client with Samba, rsync etc. 
 +
You will have to create a “Cygwin share” – using the rsync.conf file.  The “Cygwin share” is the name you choose within the square brackets.  My rsync.conf file with a share name of “cdocs” (after removal of all the information and detail) looks like this:
 +
[cdocs]
 +
    path = c:/User
 +
    comment = c: Drive documents
 +
    auth users = <valid-back-up-user>
 +
    secrets file = c:/rsyncd/rsyncd.secrets
 +
    hosts allow = 192.168.1.1
 +
    strict modes = false
 +
    read only = true
 +
    list = false
 +
 +
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]
 +
  Path = /cygdrive/c/Users/<USERNAME>
 +
  comment = c: User Data
 +
  strict modes = false
 +
  auth users = <valid-back-up-user>
 +
  secrets file = c:/rsyncd/rsyncd.secrets
 +
  hosts allow = 192.168.1.1
 +
  read only = false
 +
  list = false
 +
 +
The finale thing that must to make rsync work properly is to load rysnc as a service on the Windows client.  The file sevice.bat shows the following command to accomplish this:
 +
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.
    
====Remove backups====
 
====Remove backups====
11

edits

Navigation menu