[backuppc] Config avec les nouveaux homes.
This commit is contained in:
parent
59d40e7986
commit
7d09c5fb03
2 changed files with 23 additions and 8 deletions
|
@ -38,12 +38,12 @@ RsyncHosts = [
|
||||||
"isc",
|
"isc",
|
||||||
"kdell",
|
"kdell",
|
||||||
"kenobi",
|
"kenobi",
|
||||||
"komaz",
|
|
||||||
"nat64",
|
"nat64",
|
||||||
"nem",
|
"nem",
|
||||||
"news",
|
"news",
|
||||||
"niomniom",
|
"niomniom",
|
||||||
"o2",
|
"o2",
|
||||||
|
"odlyd",
|
||||||
"owl",
|
"owl",
|
||||||
"pea",
|
"pea",
|
||||||
"radius",
|
"radius",
|
||||||
|
@ -64,6 +64,25 @@ RsyncHosts = [
|
||||||
"zbee",
|
"zbee",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# RsyncPeriods : dictionnaire des périodes de backup des
|
||||||
|
# hôtes de la forme
|
||||||
|
# {
|
||||||
|
# "hote" : [incrementalPeriod, fullPeriod],
|
||||||
|
# }
|
||||||
|
RsyncPeriods = {
|
||||||
|
"geet" : [0.97, 6.97],
|
||||||
|
"niomniom" : [0.97, 6.97],
|
||||||
|
"news" : [0.97, 6.97],
|
||||||
|
"odlyd" : [1.97, 11.97],
|
||||||
|
"redisdead" : [1.97, 11.97],
|
||||||
|
"thot" : [0.97, 6.97],
|
||||||
|
"vert" : [0.97, 6.97],
|
||||||
|
"zamok" : [0.97, 6.97],
|
||||||
|
}
|
||||||
|
|
||||||
|
for host in RsyncHosts:
|
||||||
|
_ = RsyncPeriods.setdefault(host, [4.97, 30.97])
|
||||||
|
|
||||||
# RsyncHostsToBackup : dictionnaire d'hôtes de la forme
|
# RsyncHostsToBackup : dictionnaire d'hôtes de la forme
|
||||||
# { "hote" : {
|
# { "hote" : {
|
||||||
# 'nomdepartochecool' : 'emplacement de partoche cool',
|
# 'nomdepartochecool' : 'emplacement de partoche cool',
|
||||||
|
@ -137,9 +156,5 @@ DumpPreUserCmd["thot"] = '$sshPath -q -x -l root $host /usr/scripts/utils/pg_bac
|
||||||
# ip du nfs
|
# ip du nfs
|
||||||
ipnfs = '10.231.136.7'
|
ipnfs = '10.231.136.7'
|
||||||
|
|
||||||
# Génération des 26 partitions de backup pour les homes.
|
# Génération des 28 partitions de backup pour les homes.
|
||||||
HomeHosts = ["home-" + lettre for lettre in map(chr, range(97, 123))]
|
HomeHosts = [caractere for caractere in map(chr, range(97, 123))] + ["logs", "mail"]
|
||||||
|
|
||||||
# Oui, c'est gore, vu que /home n'est qu'une seule partition physique,
|
|
||||||
# il faut enlever à la main chaque lettre de l'alphabet. :'(
|
|
||||||
HomeExclude = { "home-" + lettre : [ "/" + caractere + "*" for caractere in map(chr, range(97, 123)) if caractere != lettre] for lettre in map(chr, range(97, 123))}
|
|
||||||
|
|
|
@ -70,5 +70,5 @@ def backuppc_hosts(comment, hostslist):
|
||||||
@#larson 1 bill # <--- example DHCP host entry
|
@#larson 1 bill # <--- example DHCP host entry
|
||||||
@
|
@
|
||||||
|
|
||||||
backuppc_hosts("Backups des homes", HomeHosts)
|
backuppc_hosts("Backups des homes", ["home-%s" % (homeName,) for homeName in HomeHosts])
|
||||||
backuppc_hosts("Backups des serveurs", RsyncHosts)
|
backuppc_hosts("Backups des serveurs", RsyncHosts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue