BackupPC-users

Re: [BackupPC-users] example of configuration file config.pl

2008-07-24 09:28:25
Subject: Re: [BackupPC-users] example of configuration file config.pl
From: Kurt Tunkko <kurt.tunko AT web DOT de>
Date: Thu, 24 Jul 2008 15:26:59 +0200
fatima ech-charif wrote:

> i install backuppc in ubuntu 7.10
> and i want tio backup host client linux
> so do you have some example file configuration for  linux client
> thanks

As Nils suggested:

 > See the documentation: http://backuppc.sourceforge.net/faq/
 > BackupPC.html If you have a specific problem, please tell us about it.

Have you read the backuppc manual/faq - most stuff I learned from there 
- then in case of a specific problem you'll find great feedback here.

Reading the documentation is important to learn and understand how your 
backup-system is working :-)

regarding your question:

I'm backing up my server with backuppc via rsyncd.

You need to install rsyncd:
https://help.ubuntu.com/community/rsync

I don't use xinetd but can start rsync with

# sudo /etc/init.d/rsync start

Here you'll see a working configuration for an ubuntu server:
(btw. if someone with mopre experience can look at my /etc/rsyncd.conf 
and give some hints about what are the most secured settings I would 
appriciate that, since I just tried to get rsyncd working :-o)

- Kurt


*** BEGIN /etc/backuppc/localhost.pl ***

$Conf{FullPeriod} = '6.97';
$Conf{IncrPeriod} = '0.97';
$Conf{FullKeepCnt} = [
   '2'
];
$Conf{IncrKeepCnt} = '14';
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncdUserName} = 'YOUR-RSYNCD-USERNAME';
$Conf{RsyncdPasswd} = 'YOUR-RSYNCD-PASSWORD';
$Conf{RsyncShareName} = [
   'YOUR-RSYNCD-MODULE-NAME'
];
$Conf{BackupFilesExclude} = {
   '*' => [
     '/proc',
     '/dev',
     '/cdrom',
     '/media',
     '/floppy',
     '/mnt',
     '/var/lib/backuppc',
     '/lost+found',
     '/sys'
   ]
};
$Conf{XferLogLevel} = '1';
$Conf{CompressLevel} = '3';
$Conf{IncrLevels} = [
   '1',
   '2',
   '3'
];



*** BEGIN /etc/rsyncd.conf

#gid = user
max connections = 0
#transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log

[YOUR-RSYNCD-MODULE-NAME]
path = /
read only = no
uid = root
gid = nogroup
list = yes
auth users = YOUR-RSYNCD-USER
secrets file = /etc/rsyncd.secrets


*** BEGIN /etc/rsyncd.secrets

YOUR-RSYNCD-USER:YOUR-RSYNCD-PASSWORT






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/