summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintenance.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-06-15 20:54:06 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-16 11:15:20 +0200
commitef7fe352e2bb940ac2495e1f303d5ca7c8385b38 (patch)
tree3068dbd0ec60ad2f328e7ac1aae76c6f950b0f8a /bin/reproducible_maintenance.sh
parent5733372ce16786f8cc51afc1482dc7392274d978 (diff)
downloadjenkins.debian.net-ef7fe352e2bb940ac2495e1f303d5ca7c8385b38.tar.xz
reproducible debian: maintenance: do not dump database ACL in the backups
1) they are totally useless and actually problematic for people using this dumps in dev envs (as restore fails due to lack of 'jenkins' user, or lack of superuser powers to commit those changes) 2) we don't have any real ACL, jenkins can do pretty much anything in the db, so the information is actually just noise Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-xbin/reproducible_maintenance.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index be830f28..66cee4ab 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -40,7 +40,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
if [ ! -f $BACKUPFILE.xz ] ; then
# make the backup
DATE=$(date '+%Y-%m-%d')
- pg_dump -O --column-inserts $PGDATABASE > "$BACKUPFILE"
+ pg_dump -x -O --column-inserts $PGDATABASE > "$BACKUPFILE"
xz "$BACKUPFILE"
# make the backup public