Omnomnom gère les homes
This commit is contained in:
parent
b45ee5695c
commit
2ca39a03b0
3 changed files with 12 additions and 6 deletions
|
@ -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"]
|
||||
|
|
|
@ -195,6 +195,8 @@
|
|||
profile="true">
|
||||
<Group name="crans-wheezy"/>
|
||||
<Group name="nginx"/> <!-- Pour backuppc -->
|
||||
<Group name="home-permanent"/>
|
||||
<Group name="backup-homes"/>
|
||||
</Group>
|
||||
|
||||
<Group name="vo"
|
||||
|
@ -945,6 +947,11 @@
|
|||
<!-- mirroir de l'archive debian -->
|
||||
</Group>
|
||||
|
||||
<Group name="backup-homes">
|
||||
<!-- Serveur de sauvegarde -->
|
||||
<Group name="backup-server-backend"/>
|
||||
</Group>
|
||||
|
||||
<Group name="backup-server">
|
||||
<!-- Serveur de sauvegarde -->
|
||||
<Group name="backup-server-backend"/>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue