Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: engine-backup: Do not backup jboss_runtime
......................................................................

packaging: engine-backup: Do not backup jboss_runtime

Do not backup /var/lib/ovirt-engine/jboss_runtime .
It's recreated on engine service start and needlessly takes space
in the backup.

Change-Id: I60a4779ed77fc370ddf1279c3267275d2d338372
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
M packaging/bin/engine-backup.sh
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/00/36500/1

diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh
index e90d506..c71d4ed 100755
--- a/packaging/bin/engine-backup.sh
+++ b/packaging/bin/engine-backup.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # ovirt-engine-backup - oVirt engine backup and restore utility
-# Copyright (C) 2013 Red Hat, Inc.
+# Copyright (C) 2015 Red Hat, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -112,9 +112,11 @@
 /etc/firewalld/services/ovirt-https.xml
 /etc/firewalld/services/ovirt-http.xml
 /etc/firewalld/services/ovirt-postgres.xml"
-# Add /var/lib/ovirt-engine except backups
+# Add /var/lib/ovirt-engine except a few
+VAR_LIB_EXCLUSIONS="/var/lib/ovirt-engine/backups
+/var/lib/ovirt-engine/jboss_runtime"
 for p in /var/lib/ovirt-engine/*; do
-       [ "${p}" != /var/lib/ovirt-engine/backups ] && 
BACKUP_PATHS="${BACKUP_PATHS}
+       echo "${VAR_LIB_EXCLUSIONS}" | grep -q "^${p}\$" || 
BACKUP_PATHS="${BACKUP_PATHS}
 ${p}"
 done
 


-- 
To view, visit http://gerrit.ovirt.org/36500
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I60a4779ed77fc370ddf1279c3267275d2d338372
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to