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",
|
"news",
|
||||||
"niomniom",
|
"niomniom",
|
||||||
"o2",
|
"o2",
|
||||||
|
"omnomnom",
|
||||||
"odlyd",
|
"odlyd",
|
||||||
"owl",
|
"owl",
|
||||||
"pea",
|
"pea",
|
||||||
|
@ -57,7 +58,6 @@ RsyncHosts = [
|
||||||
"titanic",
|
"titanic",
|
||||||
"tracker",
|
"tracker",
|
||||||
"vert",
|
"vert",
|
||||||
# "vo", trop de bordel, rien de critique
|
|
||||||
"xmpp",
|
"xmpp",
|
||||||
"ytrap-llatsni",
|
"ytrap-llatsni",
|
||||||
"zamok",
|
"zamok",
|
||||||
|
@ -153,8 +153,5 @@ DumpPreUserCmd = collections.defaultdict(str)
|
||||||
|
|
||||||
DumpPreUserCmd["thot"] = '$sshPath -q -x -l root $host /usr/scripts/utils/pg_backups.sh'
|
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.
|
# Génération des 28 partitions de backup pour les homes.
|
||||||
HomeHosts = [caractere for caractere in map(chr, range(97, 123))] + ["logs", "mail"]
|
HomeHosts = [caractere for caractere in map(chr, range(97, 123))] + ["logs", "mail"]
|
||||||
|
|
|
@ -195,6 +195,8 @@
|
||||||
profile="true">
|
profile="true">
|
||||||
<Group name="crans-wheezy"/>
|
<Group name="crans-wheezy"/>
|
||||||
<Group name="nginx"/> <!-- Pour backuppc -->
|
<Group name="nginx"/> <!-- Pour backuppc -->
|
||||||
|
<Group name="home-permanent"/>
|
||||||
|
<Group name="backup-homes"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="vo"
|
<Group name="vo"
|
||||||
|
@ -945,6 +947,11 @@
|
||||||
<!-- mirroir de l'archive debian -->
|
<!-- mirroir de l'archive debian -->
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
<Group name="backup-homes">
|
||||||
|
<!-- Serveur de sauvegarde -->
|
||||||
|
<Group name="backup-server-backend"/>
|
||||||
|
</Group>
|
||||||
|
|
||||||
<Group name="backup-server">
|
<Group name="backup-server">
|
||||||
<!-- Serveur de sauvegarde -->
|
<!-- Serveur de sauvegarde -->
|
||||||
<Group name="backup-server-backend"/>
|
<Group name="backup-server-backend"/>
|
||||||
|
|
|
@ -70,5 +70,7 @@ def backuppc_hosts(comment, hostslist):
|
||||||
@#larson 1 bill # <--- example DHCP host entry
|
@#larson 1 bill # <--- example DHCP host entry
|
||||||
@
|
@
|
||||||
|
|
||||||
backuppc_hosts("Backups des homes", ["home-%s" % (homeName,) for homeName in HomeHosts])
|
if has("backup-homes"):
|
||||||
backuppc_hosts("Backups des serveurs", RsyncHosts)
|
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