Package: autopostgresqlbackup Version: 1.0-3 Severity: normal Tags: patch Hi,
controlling the restore functionality from the backup files I encountered several databases, that couldn't be restored correctly from the sql files. I have to use the custom format of pg_dump to be able to backup and restore those files. When I wanted to configure this it turned out that the OPT-variable in the script is created after sourcing the default configuration file. Attached patches move the source entry to the correct place and add the option to defaults. Please consider to add those patches to the package. Thanks, Mathias -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (500, 'oldstable'), (400, 'unstable'), (300, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/bash
--- autopostgresqlbackup.old 2013-09-24 19:25:00.000000000 +0200 +++ autopostgresqlbackup 2013-10-17 02:28:17.000000000 +0200 @@ -99,14 +99,6 @@ # Command run after backups (uncomment to use) #POSTBACKUP="/etc/postgresql-backup-post" -# =============================== -# === Debian specific options === -#================================ - -if [ -f /etc/default/autopostgresqlbackup ]; then - . /etc/default/autopostgresqlbackup -fi - #===================================================================== # Options documentation #===================================================================== @@ -269,6 +261,14 @@ BACKUPFILES="" OPT="" # OPT string for use with pg_dump ( see man pg_dump ) +# =============================== +# === Debian specific options === +#================================ + +if [ -f /etc/default/autopostgresqlbackup ]; then + . /etc/default/autopostgresqlbackup +fi + # Add --compress pg_dump option to $OPT if [ "$COMMCOMP" -gt 0 ]; then
--- autopostgresqlbackup.old 2013-09-23 22:24:00.000000000 +0200 +++ autopostgresqlbackup.default 2013-10-17 14:16:21.027339521 +0200 @@ -86,3 +86,5 @@ # Command run after backups (uncomment to use) #POSTBACKUP="/etc/postgresql-backup-post" +# OPT string for use with pg_dump ( see man pg_dump ) +OPT=""

