diff options
author | Mattia Rizzolo <mattia@debian.org> | 2017-06-15 20:54:06 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-16 11:15:20 +0200 |
commit | ef7fe352e2bb940ac2495e1f303d5ca7c8385b38 (patch) | |
tree | 3068dbd0ec60ad2f328e7ac1aae76c6f950b0f8a /bin/reproducible_maintenance.sh | |
parent | 5733372ce16786f8cc51afc1482dc7392274d978 (diff) | |
download | jenkins.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-x | bin/reproducible_maintenance.sh | 2 |
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 |