aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2015-08-29 15:29:19 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2015-08-29 15:29:19 +0300
commit8713a9cd5248f9547ea4c78ad79a7e4d02c0d032 (patch)
tree943f647fedc23f40c2db1f7c75591694851ff38b
parentb2c1623147b3f00218f635ffcc7f60bdf1f2aedf (diff)
downloadlinaro-git-tools-8713a9cd5248f9547ea4c78ad79a7e4d02c0d032.tar.gz
gerrit-backup: There can be different postgresql versions.
Change-Id: I008e3193ec7d400ca5c9b32819837af947d5b213
-rwxr-xr-xgerrit/gerrit-backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerrit/gerrit-backup b/gerrit/gerrit-backup
index 49bbfee..558d599 100755
--- a/gerrit/gerrit-backup
+++ b/gerrit/gerrit-backup
@@ -12,7 +12,7 @@ sudo -u postgres pg_dump reviewdb --create --column-inserts >gerrit-reviewdb.sql
# Requires DB be stopped first
service postgresql stop
sleep 2
-tar cfj gerrit-postgres.tar.bz2 /var/lib/postgresql/9.1/main
+tar cfj gerrit-postgres.tar.bz2 /var/lib/postgresql/9.*/main
service postgresql start
# Gerrit doesn't like DB connection dropped