http://www.ctserver.org/ftopic699.html

BackupPC Konfiguration mit rsyncd

I also encountered this problem.
My setup was a SuSE linux 10.1 server with backuppc installed and a Windows XP SP2 client . I wanted to backup the Documents and Settings with rsync.
Therefore I installed the cygwin-rsync daemon on my Windows client in the folder c:\rsyncd
Here I edited the C:\rsyncd\rsyncd.conf file accordingly as follows:

Code:
use chroot = false
max connections = 4
log file = c:/rsyncd/rsyncd.log
pid file = c:/rsyncd/rsyncd.pid
lock file = c:/rsyncd/rsyncd.lock

[docs]

    path = c:/Documents and Settings
    comment = Documents and Settings
    strict modes = false
    auth users = root
    secrets file = c:/rsyncd/rsyncd.secrets
    # backuppc server IP
    hosts allow = 192.168.0.1
    read only = true
    list = false

In my c:\rsyncd\rsyncd.secrets I have the following:

Code:
root:secret

On the backuppc serverside I have created the file /storage/pc/192.168.0.2/config.pl
Where /storage is my storage pool.
This is the content of the file:

Code:
# $Conf{RsyncdUserName} = '';
$Conf{RsyncdUserName} = 'root';

# $Conf{RsyncdPasswd} = '';
$Conf{RsyncdPasswd} = 'secret';

$Conf{RsyncShareName} = 'docs';

This is very important because it tells the server to authenticate with the client using the right username and password with the right module, which in fact is a collection of folders and setting specified in C:\rsyncd\rsyncd.conf on the client.

According to the information in the config.pl file, you can also add extra "modules" to backup:

Zitat:
#
# Share name to backup. For $Conf{XferMethod} = "rsync" this should
# be a file system path, eg '/' or '/home'.
#
# For $Conf{XferMethod} = "rsyncd" this should be the name of the module
# to backup (ie: the name from /etc/rsynd.conf).
#
# This can also be a list of multiple file system paths or modules.
# For example, by adding --one-file-system to $Conf{RsyncArgs} you
# can backup each file system separately, which makes restoring one
# bad file system easier. In this case you would list all of the mount
# points:
#
# $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot'];
#

The following website was very useful for me to figure this out:
http://www.topology.org/linux/backuppc.html

Hope this helps.