Welcome, Guest! Log In | Create Account

RsyncdWindowsClients

From backuppc

Jump to: navigation, search
  • Install Cygwin (base installation + ssh + rsync
I have added ssh because it is always good to have access to your clients in case you need to modify local configuration files on the client.
See: http://backuppc.wiki.sourceforge.net/CygwinSSHWindows
  • Make sure to replace PASSWORD and BACKUPPC-IP with the correct values for your setup :-)
  • Create a file /etc/rsyncd.conf on your client:
gid = users
read only = true
use chroot = false
transfer logging = false
log file = /var/log/rsyncd.log
log format = %h %o %f %l %b
hosts allow = BACKUPPC-IP
hosts deny = 0.0.0.0/0
strict modes = false
[root]
path = /cygdrive/
auth users = backuppc
secrets file = /etc/rsyncd.secret
  • Create a file /etc/rsyncd.secret on your client:
backuppc:PASSWORD
  • Install rsync as a system service (command should be in one line)
cygrunsrv.exe -I "Rsync" -p /cygdrive/c/cygwin/bin/rsync.exe -a "--config=/cygdrive/c/cygwin/etc/rsyncd.conf --daemon --no-detach" -f "Rsync daemon service"
  • Start rsync
net start rsync
  • On your Backuppc-Server your Client.pl could like this:
$Conf{FullPeriod} = 6.97;
$Conf{IncrPeriod} = 0.97;

$Conf{FullKeepCnt} = 2;
$Conf{IncrKeepCnt} = 31;

$Conf{XferMethod} = "rsyncd";
$Conf{RsyncdUserName} = "backuppc";
$Conf{RsyncdPasswd} = "PASSWORD";
$Conf{RsyncShareName} = "root";

$Conf{BackupFilesExclude} =
['pagefile.sys','hiberfil.sys','System?Volume?Information','RECYCLER'];
$Conf{XferLogLevel} = 1;
$Conf{CompressLevel} = 3;
  • add the new client to your /etc/backuppc/hosts

That's all, since this is the first version of the howto please give feedback (kurt.tunko at web.de) if you find any mistakes or something doesn't work.