[backuppc] Ajout de backuppc dans bcfg2

darcs-hash:20090316154310-ddb99-e9aa4f2567296de6fadc86e265436b34154bcd64.gz
This commit is contained in:
Michel Blockelet 2009-03-16 16:43:10 +01:00
parent 4af7148861
commit ca6e38c840
4 changed files with 2265 additions and 1 deletions

5
Bundler/backuppc.xml Normal file
View file

@ -0,0 +1,5 @@
<Bundle name="backuppc">
<ConfigFile name="/etc/backuppc/config.pl"/>
<ConfigFile name="/etc/backuppc/hosts"/>
<Package name="backuppc"/>
</Bundle>

View file

@ -858,7 +858,7 @@
<Group name="backuppc-server"
category="backup-server-backend">
<!-- TODO: a implementer -->
<Bundle name="backuppc"/>
</Group>
<Group name="rsync"

File diff suppressed because it is too large Load diff

74
Python/etc/backuppc/hosts Normal file
View file

@ -0,0 +1,74 @@
info["owner"] = "root"
info["group"] = "adm"
info["perms"] = 0640
def backuppc_hosts(comment, hostslist):
print "# %s" % comment
for host in hostslist:
print '%s 0 backuppc' % host
print ''
@#============================================================= -*-perl-*-
@#
@# Host file list for BackupPC.
@#
@# DESCRIPTION
@#
@# This file lists all the hosts that should be backed up by
@# BackupPC.
@#
@# Each line in the hosts file contains three fields, separated
@# by white space:
@#
@# - The host name. If this host is a static IP address this
@# must the machine's IP host name (ie: something that can
@# be looked up using nslookup or DNS). If this is a DHCP
@# host then the host name must be the netbios name of the
@# machine. It is possible to have a host name that contains
@# spaces, but that is discouraged. Escape a space with "\", eg:
@#
@# craigs\ pc
@#
@# - DHCP flag. Set to 0 if this is a static IP address host
@# or if the machine can be found using nmblookup. Otherwise,
@# if the client can only be found by looking through the DHCP
@# pool then set this to 1.
@#
@# - User name (unix login/email name) of the user who "owns"
@# or uses this machine. This is the user who will be sent
@# email about this machine, and this user will have permission
@# to stop/start/browse/restore backups for this host. This
@# user name must match the name the user authenticates with
@# via apache.
@#
@# - Optional additional user names (comma separated, no white space) of
@# users who are also allowed to stop/start/browse/restore backups
@# for this client via the CGI interface. These users are not sent
@# email. These do not need to be valid email names; they simply
@# need to match the name the user authenticates with via apache.
@#
@# AUTHOR
@# Craig Barratt <craig@arraycomm.com>
@#
@# COPYRIGHT
@# Copyright (C) 2001 Craig Barratt
@#
@# See http://backuppc.sourceforge.net.
@#
@#========================================================================
@
@#
@# The first non-comment non-empty line gives the field names and should
@# not be edited!!
@#
@host dhcp user moreUsers # <--- do not edit this line
@#farside 0 craig jill,jeff # <--- example static IP host entry
@#larson 1 bill # <--- example DHCP host entry
@
backuppc_hosts("Backups des homes", ["adherentsak", "adherentslz"])
backuppc_hosts("Backups des serveurs",
["komaz", "sila", "sable", "zamok", "rouge", "vert", "pegase", "babar",
"egon", "ovh", "fx", "titanic", "mdr", "irc", "xmpp", "o2", "news",
"munin", "niomniom", "ytrap-llatsni", "canard", "oie", "lapin", "ragnarok"])