Module: check_mk
Branch: master
Commit: ba66ec2a015ba042e6bdc8f42d2cc202bcde49c9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba66ec2a015ba0…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jun 2 10:27:12 2014 +0200
FIX WATO snapshots: excluded some superfluous files from nagvis backup domaim
The nagvis backup domain contained some files with hardcoded site names.
This caused problems if this snaphot was restored on a different site.
---
.werks/933 | 9 +++++++++
ChangeLog | 1 +
web/plugins/wato/backup_domains.py | 6 ++++++
3 files changed, 16 insertions(+)
diff --git a/.werks/933 b/.werks/933
new file mode 100644
index 0000000..47b238f
--- /dev/null
+++ b/.werks/933
@@ -0,0 +1,9 @@
+Title: WATO snapshots: excluded some superfluous files from nagvis backup domaim
+Level: 1
+Component: wato
+Version: 1.2.5i3
+Date: 1401697554
+Class: fix
+
+The nagvis backup domain contained some files with hardcoded site names.
+This caused problems if this snaphot was restored on a different site.
diff --git a/ChangeLog b/ChangeLog
index 799e864..67b6c80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -126,6 +126,7 @@
* 0904 FIX: Fixed exception in host parameter overview...
* 0971 FIX: Fix missing authentication of PHP addons in D-WATO when activation mode
is reload...
* 0972 FIX: Do not loose site specific global settings anymore when chaning a
site's configuration...
+ * 0933 FIX: WATO snapshots: excluded some superfluous files from nagvis backup
domaim...
Notifications:
* 0754 Allow users to disable their notifications completely...
diff --git a/web/plugins/wato/backup_domains.py b/web/plugins/wato/backup_domains.py
index 14d7c6c..49d273d 100644
--- a/web/plugins/wato/backup_domains.py
+++ b/web/plugins/wato/backup_domains.py
@@ -194,6 +194,12 @@ else:
"nagvis": {
"title" : _("NagVis Maps, Configurations and User
Files"),
"prefix" : defaults.omd_root,
+ "exclude" : [
+ "etc/nagvis/apache.conf",
+ "etc/nagvis/conf.d/omd.ini.php",
+ "etc/nagvis/conf.d/cookie_auth.ini.php",
+ "etc/nagvis/conf.d/urls.ini.php"
+ ],
"paths" : [
("dir", "local/share/nagvis"),
("dir", "etc/nagvis"),