diff --git a/Cfg/etc/backuppc/config/backups.py/backups.py b/Cfg/etc/backuppc/config/backups.py/backups.py index 1556a00..cee9488 100644 --- a/Cfg/etc/backuppc/config/backups.py/backups.py +++ b/Cfg/etc/backuppc/config/backups.py/backups.py @@ -43,6 +43,7 @@ RsyncHosts = [ "news", "niomniom", "o2", + "omnomnom", "odlyd", "owl", "pea", @@ -57,7 +58,6 @@ RsyncHosts = [ "titanic", "tracker", "vert", -# "vo", trop de bordel, rien de critique "xmpp", "ytrap-llatsni", "zamok", @@ -153,8 +153,5 @@ DumpPreUserCmd = collections.defaultdict(str) DumpPreUserCmd["thot"] = '$sshPath -q -x -l root $host /usr/scripts/utils/pg_backups.sh' -# ip du nfs -ipnfs = '10.231.136.7' - # Génération des 28 partitions de backup pour les homes. HomeHosts = [caractere for caractere in map(chr, range(97, 123))] + ["logs", "mail"] diff --git a/Metadata/groups.xml b/Metadata/groups.xml index 424d9ff..f901270 100644 --- a/Metadata/groups.xml +++ b/Metadata/groups.xml @@ -195,6 +195,8 @@ profile="true"> + + + + + + + diff --git a/Python/etc/backuppc/hosts b/Python/etc/backuppc/hosts index a572847..e82f967 100644 --- a/Python/etc/backuppc/hosts +++ b/Python/etc/backuppc/hosts @@ -70,5 +70,7 @@ def backuppc_hosts(comment, hostslist): @#larson 1 bill # <--- example DHCP host entry @ -backuppc_hosts("Backups des homes", ["home-%s" % (homeName,) for homeName in HomeHosts]) -backuppc_hosts("Backups des serveurs", RsyncHosts) +if has("backup-homes"): + backuppc_hosts("Backups des homes", ["home-%s" % (homeName,) for homeName in HomeHosts]) +if has("backup-server"): + backuppc_hosts("Backups des serveurs", RsyncHosts)