commit 1a100d8b1151b8976e4e1cc8ae7012977b7bf1d3152e6ed4ad65841feb9583a3 Author: Bruno Friedmann Date: Wed Oct 30 08:19:18 2024 +0000 - update to version 2.54.0 * Fix PostgreSQL query performance for large datasets. * Allow repositories on versioned storage to be read at a target time. * Allow requested standby backup to proceed with no standby. * Summarize backup reference list for info command text output. * Refresh web-id token for each S3 authentication. * Correctly display current values for indexed options in help. * Save backup.info only when contents have changed. * Remove limitation on reading files in parallel during restore. * Improve SFTP error messages. * Add performance tuning section to user guide. * Documentation improvements OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=77 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README.SUSE b/README.SUSE new file mode 100644 index 0000000..970f7fa --- /dev/null +++ b/README.SUSE @@ -0,0 +1,3 @@ + SUSE Changes to pgbackrest + +move the lock file to /run/pgbackrest and make sure that it gets created with the postgres user and group. diff --git a/libpq-fe.h_localisation.patch b/libpq-fe.h_localisation.patch new file mode 100644 index 0000000..76bcd82 --- /dev/null +++ b/libpq-fe.h_localisation.patch @@ -0,0 +1,32 @@ +Index: pgbackrest-release-2.54.0/src/postgres/client.c +=================================================================== +--- pgbackrest-release-2.54.0.orig/src/postgres/client.c ++++ pgbackrest-release-2.54.0/src/postgres/client.c +@@ -3,7 +3,7 @@ Postgres Client + ***********************************************************************************************************************************/ + #include "build.auto.h" + +-#include ++#include + + #include "common/debug.h" + #include "common/io/fd.h" +Index: pgbackrest-release-2.54.0/src/configure +=================================================================== +--- pgbackrest-release-2.54.0.orig/src/configure ++++ pgbackrest-release-2.54.0/src/configure +@@ -3655,12 +3655,12 @@ else $as_nop + as_fn_error $? "library 'pq' is required" "$LINENO" 5 + fi + +-ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" ++ac_fn_c_check_header_compile "$LINENO" "pgsql/libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" + if test "x$ac_cv_header_libpq_fe_h" = xyes + then : + + else $as_nop +- as_fn_error $? "header file is required" "$LINENO" 5 ++ as_fn_error $? "header file is required" "$LINENO" 5 + fi + + diff --git a/pgbackrest-2.52.1.tar.gz b/pgbackrest-2.52.1.tar.gz new file mode 100644 index 0000000..19c61ab --- /dev/null +++ b/pgbackrest-2.52.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edfdbfd5a40913990c27f00f4df7da0d146452b7bc4eaefc44995f53f5a9356a +size 2680590 diff --git a/pgbackrest-2.53.1.tar.gz b/pgbackrest-2.53.1.tar.gz new file mode 100644 index 0000000..b41211b --- /dev/null +++ b/pgbackrest-2.53.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a8ea2aec0090896dbeeb0c9979c537f7eeeb7eb33b54dea54cf0df464a3311e +size 2696024 diff --git a/pgbackrest-2.53.tar.gz b/pgbackrest-2.53.tar.gz new file mode 100644 index 0000000..34842ed --- /dev/null +++ b/pgbackrest-2.53.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb4fd81729dc3b562fd0f0a3c0dbf39f8b97b8140de9898bc8d2a19884b7a12 +size 2693089 diff --git a/pgbackrest-2.54.0.tar.gz b/pgbackrest-2.54.0.tar.gz new file mode 100644 index 0000000..cfd9822 --- /dev/null +++ b/pgbackrest-2.54.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b41872b9baeee1a7f0280e0c7745275a5b36e6737112b70c2a48a1cfdf3faa0 +size 2727332 diff --git a/pgbackrest-diff@.service b/pgbackrest-diff@.service new file mode 100644 index 0000000..8fa33c7 --- /dev/null +++ b/pgbackrest-diff@.service @@ -0,0 +1,15 @@ +[Unit] +Description=pgbackrest backup diff for %i +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +ConditionACPower=true +PartOf=pgbackrest.target + +[Service] +Type=oneshot +User=postgres +Group=postgres +ExecStart=/usr/bin/pgbackrest --log-level-console=info --stanza=%i --type=diff backup +# Give a reasonable amount of time for job to finish +TimeoutSec=7200 + diff --git a/pgbackrest-diff@.timer b/pgbackrest-diff@.timer new file mode 100644 index 0000000..6b8d1d2 --- /dev/null +++ b/pgbackrest-diff@.timer @@ -0,0 +1,14 @@ +[Unit] +Description=Weekly pgbackrest diff backup (sun) +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +PartOf=pgbackrest.target + +[Timer] +#OnCalendar=Sun *-*-8..31 05:05:05 +OnCalendar=Wed *-*-* 05:05:05 +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/pgbackrest-full@.service b/pgbackrest-full@.service new file mode 100644 index 0000000..b2680a3 --- /dev/null +++ b/pgbackrest-full@.service @@ -0,0 +1,15 @@ +[Unit] +Description=pgbackrest backup full for %i +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +ConditionACPower=true +PartOf=pgbackrest.target + +[Service] +Type=oneshot +User=postgres +Group=postgres +ExecStart=/usr/bin/pgbackrest --log-level-console=info --stanza=%i --type=full backup +# Give a reasonable amount of time for the job to run before timeout +TimeoutSec=7200 + diff --git a/pgbackrest-full@.timer b/pgbackrest-full@.timer new file mode 100644 index 0000000..45ae9b9 --- /dev/null +++ b/pgbackrest-full@.timer @@ -0,0 +1,14 @@ +[Unit] +Description=Montly pgbackrest full backup (1st sun) +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +PartOf=pgbackrest.target + +[Timer] +#OnCalendar=Sun *-*-1..7 05:05:05 +OnCalendar=Sun *-*-* 05:05:05 +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/pgbackrest-incr@.service b/pgbackrest-incr@.service new file mode 100644 index 0000000..795c604 --- /dev/null +++ b/pgbackrest-incr@.service @@ -0,0 +1,15 @@ +[Unit] +Description=pgbackrest backup incremental for %i +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +ConditionACPower=true +PartOf=pgbackrest.target + +[Service] +Type=oneshot +User=postgres +Group=postgres +ExecStart=/usr/bin/pgbackrest --log-level-console=info --stanza=%i --type=incr backup +# Give a reasonable amount of time for the job to finish +TimeoutSec=7200 + diff --git a/pgbackrest-incr@.timer b/pgbackrest-incr@.timer new file mode 100644 index 0000000..624dfac --- /dev/null +++ b/pgbackrest-incr@.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Daily pgbackrest incremental backup (mon-sat) +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +PartOf=pgbackrest.target + +[Timer] +OnCalendar=Mon..Sat *-*-* 05:05:05 +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/pgbackrest.changes b/pgbackrest.changes new file mode 100644 index 0000000..2bef2b8 --- /dev/null +++ b/pgbackrest.changes @@ -0,0 +1,1355 @@ +------------------------------------------------------------------- +Sat Oct 26 09:37:59 UTC 2024 - Andrea Manzini + +- update to version 2.54.0 + * Fix PostgreSQL query performance for large datasets. + * Allow repositories on versioned storage to be read at a target time. + * Allow requested standby backup to proceed with no standby. + * Summarize backup reference list for info command text output. + * Refresh web-id token for each S3 authentication. + * Correctly display current values for indexed options in help. + * Save backup.info only when contents have changed. + * Remove limitation on reading files in parallel during restore. + * Improve SFTP error messages. + * Add performance tuning section to user guide. + * Documentation improvements + +------------------------------------------------------------------- +Tue Aug 20 06:28:25 UTC 2024 - Andrea Manzini + +- update to version 2.53.1 + * Fix permissions when restore run as root user + * Fix segfault on delayed connection errors + * Skip local repository duplicate check for SFTP + * PostgreSQL 17beta3 support + +------------------------------------------------------------------- +Tue Jul 23 10:00:46 UTC 2024 - Andrea Manzini + +- update to version 2.53 + * IMPORTANT NOTE: The log-level-stderr option default has been changed from warn to off. + This makes it easier to capture errors when only redirecting stdout. + To preserve the prior behavior set log-level-stderr=warn + * Fixed SFTP renaming failure when file already exists + * Allow backups to run concurrently on different repositories + * Support IP-based SANs for TLS certificate validation. + * Default log-level-stderr option to off + * Allow alternative WAL segment sizes for PostgreSQL ≤ 10 + * Add hint to check SFTP authorization log + * Documentation Improvements: Clarify archive-push multi-repo behavior + +------------------------------------------------------------------- +Wed Jun 26 07:19:48 UTC 2024 - Andrea Manzini + +- update to version 2.52.1 + * Fix issue with files larger on the replica than on the primary. + +------------------------------------------------------------------- +Fri May 31 13:27:30 UTC 2024 - Andrea Manzini + +- update to version 2.52 + * Add GCS batch delete support + * S3 SSE-C encryption support + * PostgreSQL 17 support + * Update start/stop documentation to reflect actual functionality. + +- switch rpm build to meson build system + +------------------------------------------------------------------- +Fri Mar 29 09:05:56 UTC 2024 - Andrea Manzini + +- update to version 2.51 + * Bug Fixes: + + Skip zero-length files for block incremental delta restore. + + Fix performance regression in storage list. + + Fix progress logging when file size changes during backup. + * Improvements: + + Improved support for dual stack connections. + + Make meson the primary build system. + + Detect files that have not changed during non-delta incremental backup. + + Prevent invalid recovery when backup_label removed. + + Improve archive-push WAL segment queue handling. + + Limit resume functionality to full backups. + + Update resume functionality for block incremental. + + Allow --version and --help for version and help. + + Add detailed backtrace to autoconf/make build. + * Documentation Improvements: + + Update references to recovery.conf. (Reviewed by Stefan Fercot. Suggested by Stephen Frost.) + +------------------------------------------------------------------- +Wed Jan 24 08:00:32 UTC 2024 - Andrea Manzini + +- update to version 2.50 + * Bug Fixes: + + Fix short read in block incremental restore. + + Fix overflow suppressing backup progress in info output. + + * Improvements: + + Preserve partial files during block incremental delta restore. + + Add support for alternate compile-time page sizes. + + Skip files truncated during backup when bundling. + + Improve SFTP storage error messages. + +------------------------------------------------------------------- +Tue Nov 28 16:20:55 UTC 2023 - Andrea Manzini + +- update to version 2.49 + * Bug Fixes: + + Fix regression in retries + + Fix recursive path remove in SFTP storage driver + + * Improvements: + + Remove support for PostgreSQL 9.3 + + * Documentation Features: + + Document maintainer options + + Update point-in-time recovery documentation for PostgreSQL >= 13 + + * Test Suite Improvements + +------------------------------------------------------------------- +Thu Sep 28 07:31:44 UTC 2023 - Andrea Manzini + +- update to version 2.48 + * Bug Fixes: + + Fix issue restoring block incremental without a block list. + + [doc] Fix configuration reference example for the tls-server-address option. + + [doc] Fix command reference example for the filter option. + + * Features: + + Add --repo-storage-tag option to create object tags. + + Add known hosts checking for SFTP storage driver. + + Support for dual stack connections. + + Add backup size completed/total to info command JSON output. + + * Improvements: + + Multi-stanza check command. + + Retry reads of pg_control until checksum is valid. + + Optimize WAL segment check after successful backup. + + Improve GCS multi-part performance. + + Allow archive-get command to run when stanza is stopped. + + Accept leading tilde in paths for SFTP public/private keys. + + Reload GCS credentials before renewing authentication token. + + * Test Suite Improvements + +- refreshed patches; release.xml has been splitted into individual files + +------------------------------------------------------------------- +Mon Aug 7 06:11:25 UTC 2023 - Andrea Manzini + +- update to version 2.47 + * Bug Fixes: + + Preserve block incremental info in manifest during delta backup + + Fix block incremental file names in verify command + + Fix spurious automatic delta backup on backup from standby + + Skip recovery.signal for PostgreSQL >= 12 when recovery type=none + + Fix unique label generation for diff/incr backup + + Fix time-based archive expiration when no backups are expired + * Improvements: + + Improve performance of SFTP storage driver + + Add timezone offset to info command date/time output + + Centralize error handling for unsupported features + * Documentation Improvements: + + Clarify preference to install from packages in the user guide + +------------------------------------------------------------------- +Sun May 28 19:30:47 UTC 2023 - Andrea Manzini + +- update to version 2.46 + * Features: + + Block incremental backup. (Reviewed by John Morris, Stephen Frost, Stefan Fercot.) + + SFTP support for repository storage. (Contributed by Reid Thompson. Reviewed by Stephen Frost, David Steele.) + + PostgreSQL 16 support. (Reviewed by Stefan Fercot.) + * Improvements: + + Allow page header checks to be skipped. (Reviewed by David Christensen. Suggested by David Christensen.) + + Avoid chown() on recovery files during restore. (Reviewed by Stefan Fercot, Marcelo Henrique Neppel. Suggested by Marcelo Henrique Neppel.) + + Add error retry detail for HTTP retries. + * Documentation Improvements: + + Add warning about using recovery type=none. (Reviewed by Stefan Fercot.) + + Add note about running stanza-create on already-created repositories. + +------------------------------------------------------------------- +Mon Mar 27 07:13:19 UTC 2023 - Andrea Manzini + +- update to version 2.45 + + Bug Fix: Skip writing recovery.signal by default for restores of offline backups. + + Features: Block incremental backup (BETA) + + Improvements: Keep only one all-default group index. + + Documentation improvements + +------------------------------------------------------------------- +Mon Feb 6 07:53:56 UTC 2023 - Andrea Manzini + +- update to version 2.44 + + Remove support for PostgreSQL 9.0/9.1/9.2. + + Restore errors when no backup matches the current version of PostgreSQL. + + Add compress-level range checking for each compress-type. + + Documentation improvements + +------------------------------------------------------------------- +Tue Dec 6 16:32:27 UTC 2022 - Andrea Manzini + +- update to version 2.43 + + Bug Fixes: + - Fix missing reference in diff/incr backup. + + Improvements: + - Add hint when an option is specified without an index. + +- update to version 2.42 + + Bug Fixes: + - Fix memory leak in file bundle backup/restore. + - Fix protocol error on short read of remote file. + + Improvements: + - Do not store references for zero-length files when bundling. + - Use more generic descriptions for pg_start_backup()/pg_stop_backup(). + +------------------------------------------------------------------- +Tue Sep 20 18:33:00 UTC 2022 - Marcus Rueckert + +- update to version 2.41 + + Bug Fixes: + - Fix incorrect time expiration being used for non-default + repositories. (Reviewed by Stefan Fercot. Reported by Adam + Brusselback.) + - Fix issue when listing directories recursively with a filter. + (Reviewed by Stephen Frost. Reported by Efremov Egor.) + + Features: + - Backup key/value annotations. (Contributed by Stefan Fercot. + Reviewed by David Steele. Suggested by Adam Berlin.) + + Improvements: + - Support --set in JSON output for info command. (Contributed + by Stefan Fercot. Reviewed by David Steele. Suggested by + Anton Kurochkin.) + - Update archive.info timestamps after a successful backup. + (Reviewed by Stefan Fercot. Suggested by Alex Richman.) + - Move standby timeline check after checkpoint. (Reviewed by + Stefan Fercot, Keith Fiske. Suggested by Keith Fiske.) + - Improve warning message on backup resume. (Suggested by + Cynthia Shang.) + + Additional Notes + - Documentation Improvements: + - Add absolute path for kill in pgbackrest.service. (Suggested + by Don Seiler.) +- changes from 2.40 OpenSSL 3 Support + + Improvements: + - OpenSSL 3 support. (Reviewed by Stephen Frost.) + - Create snapshot when listing contents of a path. (Reviewed by + John Morris, Stephen Frost.) + - Force target-timeline=current when restore type=immediate. + (Reviewed by Stephen Frost.) + - Truncate files during delta restore when they are larger than + expected. (Reviewed by Stephen Frost.) + - Disable incremental manifest save when resume=n. (Contributed + by Reid Thompson. Reviewed by David Steele.) + - Set backup percent complete to zero before copy start. + (Contributed by Reid Thompson. Reviewed by David Steele.) + - Use S3 IsTruncated flag to determine list continuation. + (Reviewed by John Morris, Soulou. Suggested by Christian + Montagne.) + + Documentation Bug Fixes: + - Skip internal options in the configuration reference. + (Reported by Francisco Miguel Biete.) + + Documentation Improvements: + - Add link to PostgreSQL configuration in repository host + section. (Reviewed by Stefan Fercot. Suggested by Julien + Cigar.) + + Test Suite Improvements: + - Add experimental Meson build. (Reviewed by Eli Schwartz, Sam + Bassaly.) + - Allow any path to be passed to the --test-path option. + (Contributed by Andrey Sokolov. Reviewed by David Steele.) + - Fix compile error when DEBUG_EXEC_TIME is defined without + DEBUG. (Contributed by Andrey Sokolov. Reviewed by David + Steele.) +- refreshed patches to apply cleanly again: + - libpq-fe.h_localisation.patch + - use-run-pgbackrest.patch + +------------------------------------------------------------------- +Mon Jun 27 12:45:15 UTC 2022 - Bruno Friedmann + +- update to version 2.39 + + Bug Fixes: + - Fix error thrown from FINALLY() causing an infinite loop. + - Error on all lock failures except another process holding the lock. + + Features: + - Backup file bundling for improved small file support. + - Verify command to validate the contents of a repository. + - PostgreSQL 15 support. + - Show backup percent complete in info output. + - Auto-select backup for restore command --type=lsn. + - Suppress existing WAL warning when archive-mode-check is disabled. + - Add AWS IMDSv2 support. + + Improvements: + - Allow repo-hardlink option to be changed after full backup. + - Increase precision of percent complete logging for backup and restore. + - Improve path validation for repo-* commands. + - Improve stop command to honor stanza option. + - Improve error message for invalid repo-azure-key. + - Add hint to check the log on archive-get/archive-push async error. + - Add ClockError for unexpected clock skew and timezone changes. + - Strip extensions from history manifest before showing in error message. + - Add user:group to lock permission error. + + Documentation Bug Fixes: + - Fix incorrect reference to stanza-update in the user guide. + - Fix example for repo-gcs-key-type option in configuration reference. + - Fix tls-server-auth example and add clarifications. + + Documentation Improvements: + - Simplify messaging around supported versions in the documentation. + - Add option type descriptions. + - Add FAQ about backup types and restore speed. + - Document required base branch for pull requests. +- update copyright year + +------------------------------------------------------------------- +Mon Apr 18 13:47:07 UTC 2022 - Marcus Rueckert + +- update to version 2.38 + IMPORTANT NOTE: Repository size reported by the info command is + now entirely based on what pgBackRest has written to storage. + Previously, in certain cases, pgBackRest could detect if + additional compression was being applied by the storage but this + is no longer supported. + + - Bug Fixes: + - Retry errors in S3 batch file delete. (Reviewed by Reid + Thompson. Reported by Alex Richman.) + - Allow case-insensitive matching of HTTP connection header + values. (Reviewed by Reid Thompson. Reported by Rémi Vidier.) + - Features: + - Add support for AWS S3 server-side encryption using KMS. + (Contributed by Christoph Berg. Reviewed by David Steele, + Tharindu Amila.) + - Add archive-missing-retry option. (Reviewed by Stefan + Fercot.) + - Add backup type filter to info command. (Contributed by + Stefan Fercot. Reviewed by David Steele.) + - Improvements: + - Retry on page validation failure during backup. (Reviewed by + Stephen Frost, David Christensen.) + - Handle TLS servers that do not close connections gracefully. + (Reviewed by Rémi Vidier, David Christensen, Stephen Frost.) + - Add backup LSNs to info command output. (Contributed by + Stefan Fercot. Reviewed by David Steele.) + - Automatically strip trailing slashes for repo-ls paths. + (Contributed by David Christensen. Reviewed by David Steele.) + - Do not retry fatal errors. (Reviewed by Reid Thompson.) + - Remove support for PostgreSQL 8.3/8.4. (Reviewed by Reid + Thompson, Stefan Fercot.) + - Remove logic that tried to determine additional file system + compression. (Reviewed by Reid Thompson, Stefan Fercot.) + - Documentation Bug Fixes: + - Move repo options in TLS documentation to the global section. + (Reported by Anton Kurochkin.) + - Remove unused backup-standby option from stanza commands. + (Reported by Stefan Fercot.) + - Fix typos in help and release notes. (Fixed by Daniel + Gustafsson. Reviewed by David Steele.) + - Documentation Improvements: + - Add aliveness check to systemd service configuration. + (Suggested by Yogesh Sharma.) + - Add FAQ explaining WAL archive suffix. (Contributed by Stefan + Fercot. Reviewed by David Steele.) + - Note that replications slots are not restored. (Contributed + by Reid Thompson. Reviewed by David Steele, Stefan Fercot. + Suggested by Christophe Courtois.) + +------------------------------------------------------------------- +Mon Mar 7 21:41:10 UTC 2022 - Marcus Rueckert + +- Move lock file default to /run/pgbackrest and make sure it gets + created with user and group postgres + - Add use-run-pgbackrest.patch + - Add README.SUSE +- Track series file to make quilt setup easier +- refresh libpq-fe.h_localisation.patch + +------------------------------------------------------------------- +Fri Feb 18 18:01:39 UTC 2022 - Marcus Rueckert + +- make sure all unit files have unix line endings + +------------------------------------------------------------------- +Fri Feb 18 17:48:11 UTC 2022 - Marcus Rueckert + +- add systemd services: + - diff/full/incremental backup + - pgbackrest services for the TLS server + - add pgbackrest.target to restart/stop all sub services +- add Requires(pre) for postgresql-server to make sure the + postgresql user is available for file permissions +- change permissions of the config file from 0644 to 0640 as the + file can contain passwords and encryption keys. +- modernize the spec file + +------------------------------------------------------------------- +Tue Jan 25 13:27:08 UTC 2022 - Marcus Rueckert + +- enable zstd support + +------------------------------------------------------------------- +Tue Jan 25 10:49:49 UTC 2022 - Marcus Rueckert + +- update to version 2.37 + IMPORTANT NOTE: If the restore command is unable to find a backup + that matches a specified time target then an error will be + thrown, whereas before a warning was logged. + + IMPORTANT NOTE: The default TLS server port has not yet been + approved by IANA and is subject to change once the approval + process is complete. + + - Bug Fixes: + - Fix restore delta link mapping when path/file already exists. + (Reviewed by Reid Thompson. Reported by Younes Alhroub.) + - Fix socket leak on connection retries. (Reviewed by Reid + Thompson. Reported by James Coleman.) + - Features: + - Add TLS server. (Reviewed by Stephen Frost, Reid Thompson, + Andrew L'Ecuyer.) + - Add --cmd option. (Contributed by Reid Thompson. Reviewed by + Stefan Fercot, David Steele. Suggested by Virgile CREVON.) + - Improvements: + - Check archive immediately after backup start. (Reviewed by + Reid Thompson, David Christensen.) + - Add timeline and checkpoint checks to backup. (Reviewed by + Stefan Fercot, Reid Thompson.) + - Check that clusters are alive and correctly configured during + a backup. (Reviewed by Stefan Fercot.) + - Error when restore is unable to find a backup to match the + time target. (Reviewed by Reid Thompson, Douglas J Hunley. + Suggested by Douglas J Hunley.) + - Parse protocol/port in S3/Azure endpoints. (Contributed by + Reid Thompson. Reviewed by David Steele.) + - Add warning when checkpoint_timeout exceeds db-timeout. + (Contributed by Stefan Fercot. Reviewed by David Steele.) + - Add verb to HTTP error output. (Contributed by Christoph + Berg. Reviewed by David Steele.) + - Allow y/n arguments for boolean command-line options. + (Contributed by Reid Thompson. Reviewed by David Steele.) + - Make backup size logging exactly match info command output. + (Contributed by Reid Thompson. Reviewed by David Steele. + Suggested by Mahomed Hussein.) + - Documentation Improvements: + - Display size option default and allowed values with + appropriate units. (Reviewed by Reid Thompson.) + - Fix typos and improve documentation for the + tablespace-map-all option. (Reviewed by Reid Thompson. + Suggested by Reid Thompson.) + - Remove obsolete statement about future multi-repository + support. (Suggested by David Christensen.) + +------------------------------------------------------------------- +Sat Dec 4 16:36:19 UTC 2021 - Bruno Friedmann + +- update to version 2.36 + + Bug Fixes: + - Allow "global" as a stanza prefix. + - Fix segfault on invalid GCS key file. + + Improvements: + - Allow link-map option to create new links. + - Increase max index allowed for pg/repo options to 256. + - Add WebIdentity authentication for AWS S3. + - Report backup file validation errors in backup.info. + - Add recovery start time to online backup restore log. + - Report original error and retries on local job failure. + - Rename page checksum error to error list in info text output. + - Add hints to standby replay timeout message. +- update to version 2.35 Binary protocol + ** IMPORTANT NOTE **: The log level for copied files in the + backup/restore commands has been changed to detail. This makes + the info log level less noisy but if these messages are required + then set the log level for the backup/restore commands to detail. + + Bug Fixes: + - Detect errors in S3 multi-part upload finalize. + - Fix detection of circular symlinks. + - Only pass selected repo options to the remote. + + Improvements: + - Binary protocol. + - Automatically create data directory on restore. + - Allow restore --type=lsn. + - Change level of backup/restore copied file logging to detail. + - Loop while waiting for checkpoint LSN to reach replay LSN. + - Log backup file total and restore size/file total. + + Documentation Bug Fixes: + - Fix incorrect host names in user guide. + + Documentation Improvements: + - Update contributing documentation and add pull request template. + - Rearrange backup documentation in user guide. + - Clarify restore --type behavior in command reference. + - Fix documentation and comment typos. + + Test Suite Improvements: + - Add check for test path inside repo path. + - Add CodeQL static code analysis. + - Update tests to use standard patterns. +- packaging: + + Added new build requirement libyaml-devel + +------------------------------------------------------------------- +Tue Jul 27 15:07:25 UTC 2021 - Predrag Ivanović + +- update to version 2.34 with Postgresql-14 support + + Bug Fixes: + - Fix issues with leftover spool files from a prior restore. + - Fix issue when checking links for large numbers of tablespaces. + - Free no longer needed remotes so they do not timeout during restore. + - Fix help when a valid option is invalid for the specified command. + + Features: + - Add PostgreSQL 14 support. + - Add automatic GCS authentication for GCE instances. + - Add repo-retention-history option to expire backup history. + - Add db-exclude option. + + Improvements: + - Change archive expiration logging from detail to info level. + - Remove stanza archive spool path on restore. + - Do not write files atomically or sync paths during backup copy. + + Documentation Improvements: + - Update contributing documentation. + - Clarify that repo-s3-role is not an ARN. + +------------------------------------------------------------------- +Thu Apr 29 09:33:00 UTC 2021 - Bruno Friedmann + +- update to version 2.33 with Multi-Repository and GCS Support + + Bug Fixes: + - Fix option warnings breaking async archive-get/archive-push. + - Fix memory leak in backup during archive copy. + - Fix stack overflow in cipher passphrase generation. + - Fix repo-ls / on S3 repositories. + + Features: + - Multiple repository support. + - GCS support for repository storage. + - Add archive-header-check option. + + Improvements: + - Include recreated system databases during selective restore. + - Exclude content-length from S3 signed headers. + - Consolidate less commonly used repository storage options. + - Allow custom config-path default with ./configure --with-configdir. + - Log archive copy during backup. + + Documentation Improvements: + - Update reference to include links to user guide examples. + - Update selective restore documentation with caveats. + - Add compress-type clarification to archive-copy documentation. + - Add compress-level defaults per compress-type value. + - Add note about required NFS settings being the same as PostgreSQL. + +------------------------------------------------------------------- +Thu Feb 25 10:25:04 UTC 2021 - Bruno Friedmann + +- update to version 2.32 + + Bug Fixes: + - Fix resume after partial delete of backup by prior resume. + + Features: + - Add repo-ls command. + - Add repo-get command. + - Add archive-mode-check option. + + Improvements: + - Improve archive-get performance. + + Documentation Improvements: + - Improve expire command documentation. +- Packaging: spec-cleaner minimal (copyright year, pkgconfig order) + +------------------------------------------------------------------- +Sat Dec 26 11:54:52 UTC 2020 - Bruno Friedmann + +- update to version 2.31 + + Bug Fixes: + - Allow [, #, and space as the first character in database names. + - Create standby.signal only on PostgreSQL 12 when restore type + is standby. + + Features: + - Expire history files. + - Report page checksum errors in info command text output. + - Add repo-azure-endpoint option. + - Add pg-database option. + + Improvements: + - Improve info command output when a stanza is specified but + missing. + - Improve performance of large file lists in backup/restore + commands. + - Add retries to PostgreSQL sleep when starting a backup. + + Documentation Improvements: + Replace RHEL/CentOS 6 documentation with RHEL/CentOS 8. + +------------------------------------------------------------------- +Tue Oct 13 12:30:00 UTC 2020 - Bruno Friedmann + +- update to version 2.30 + + Bug Fixes: + - Error with hints when backup user cannot read pg_settings. + + Features: + - PostgreSQL 13 support. + + Improvements: + - Improve PostgreSQL version identification. + - Improve working directory error message. + - Add hint about starting the stanza when WAL segment not found. + - Add hint for protocol version mismatch. + + Documentation Improvements: + Add note that pgBackRest versions must match when running remotely. + Move info command text to the reference and link to user guide. + Update yum repository path for CentOS/RHEL user guide. +- Packaging + + Remove non needed perl_requires + + Allow build on i586 as source are now 100% C + +------------------------------------------------------------------- +Thu Sep 10 09:35:27 UTC 2020 - Bruno Friedmann + +- update to version 2.29 - Auto S3 Credentials on AWS + + Bug Fixes: + - Suppress errors when closing local/remote processes. Since the + command has completed it is counterproductive to throw an + error but still warn to indicate that something unusual happened. + - Fix issue with = character in file or database names. + + Features: + - Automatically retrieve temporary S3 credentials on AWS instances. + - Add archive-mode option to disable archiving on restore. + + Improvements: + - PostgreSQL 13 beta3 support. Changes to the control/catalog/WAL + versions in subsequent betas may break compatibility but + pgBackRest will be updated with each release to keep pace. + - Asynchronous list/remove for S3/Azure storage. + - Improve memory usage of unlogged relation detection in + manifest build. + - Proactively close file descriptors after forking async process. + - Delay backup remote connection close until after archive check. + - Improve detailed error output. + - Improve TLS error reporting. + + Additional Notes + - Documentation Bug Fixes: + Add none to compress-type option reference and fix example. + Add missing azure type in repo-type option reference. + Fix typo in repo-cipher-type option reference. + - Documentation Improvements: + Clarify that expire must be run regularly when expire-auto + is disabled. + +------------------------------------------------------------------- +Wed Aug 19 07:46:40 UTC 2020 - Bruno Friedmann + +- update to version 2.28 - Azure Repository Storage + + Bug Fixes: + - Fix restore --force acting like --force --delta. This caused + restore to replace files based on timestamp and size rather + than overwriting, which meant some files that should have been + updated were left unchanged. Normal restore and restore + --delta were not affected by this issue. + + Features: + - Azure support for repository storage. + - Add expire-auto option. This allows automatic expiration + after a successful backup to be disabled. + + Improvements: + - Asynchronous S3 multipart upload. + - Automatic retry for backup, restore, archive-get, and archive-push. + - Disable query parallelism in PostgreSQL sessions used for backup control. + - PostgreSQL 13 beta2 support. Changes to the control/catalog/WAL + versions in subsequent betas may break compatibility but + pgBackRest will be updated with each release to keep pace. + - Improve handling of invalid HTTP response status. + - Improve error when pg1-path option missing for archive-get command. + - Add hint when checksum delta is enabled after a timeline switch. + - Use PostgreSQL instead of postmaster where appropriate. + + Documentation Bug Fixes: + - Fix incorrect example for repo-retention-full-type option. + - Remove internal commands from HTML and man command references. + + Documentation Improvements: + - Update PostgreSQL versions used to build user guides. Also add + version ranges to indicate that a user guide is accurate for a + range of PostgreSQL versions even if it was built for a + specific version. + - Update FAQ for expiring a specific backup set. + - Update FAQ to clarify default PITR behavior. + +------------------------------------------------------------------- +Sat May 30 13:46:41 UTC 2020 - Bruno Friedmann + +- update to version 2.27 Expiration Improvements Compression Drivers + + Bug Fixes: + - Fix issue checking if file links are contained in path links. + - Allow pg-path1 to be optional for synchronous archive-push. + - The expire command now checks if a stop file is present. + - Handle missing reason phrase in HTTP response. + - Increase buffer size for lz4 compression flush. + - Ignore pg-host* and repo-host* options for the remote command. + - Fix possibly missing pg1-* options for the remote command. + + Features: + - Time-based retention for full backups. + The --repo-retention-full-type option allows retention of full + backups based on a time period, specified in days. + - Ad hoc backup expiration. Allow the user to remove a specified + backup regardless of retention settings. + - Zstandard compression support. Note that setting compress-type=zst + will make new backups and archive incompatible (unrestorable) + with prior versions of pgBackRest. + - bzip2 compression support. Note that setting compress-type=bz2 + will make new backups and archive incompatible (unrestorable) + with prior versions of pgBackRest. + - Add backup/expire running status to the info command. + + Improvements: + - Expire WAL archive only when repo-retention-archive threshold + is met. WAL prior to the first full backup was previously + expired after the first full backup. Now it is preserved + according to retention settings. + - Add local MD5 implementation so S3 works when FIPS is enabled. + - PostgreSQL 13 beta1 support. Changes to the control/catalog/WAL + versions in subsequent betas may break compatibility but + pgBackRest will be updated with each release to keep pace. + - Reduce buffer-size default to 1MiB. + - Throw user-friendly error if expire is not run on repository host. +- Packaging : add bz2 buildrequire + +------------------------------------------------------------------- +Fri May 1 16:13:03 UTC 2020 - Bruno Friedmann + +- update to version 2.26 : Non-blocking TLS + + Bug Fix : Remove empty subexpression from manifest regular + expression. MacOS was not happy about this though other + platforms seemed to work fine. + + Improvements: + - N on-blocking TLS implementation. + - Only limit backup copy size for WAL-logged files. The prior + behavior could possibly lead to postgresql.conf or + postgresql.auto.conf being truncated in the backup. + - TCP keep-alive options are configurable. + - Add io-timeout option. +- update to version 2.25 : LZ4 Compression Support + + Features: + - Add lz4 compression support. Note that setting + compress-type=lz4 will make new backups and archive incompatible + (unrestorable) with prior versions of pgBackRest. + - Add --dry-run option to the expire command. Use dry-run to see + which backups/archive would be removed by the expire command + without actually removing anything. + + Improvements: + - Improve performance of remote manifest build. + - Fix detection of keepalive options on Linux. + - Add configure host detection to set standards flags correctly. + - Remove compress/compress-level options from commands where unused. + - Limit backup file copy size to size reported at backup start. + If a file grows during the backup it will be reconstructed by + WAL replay during recovery so there is no need to copy the + additional data. +- Packaging: + + Add new requirement lz4 + + Redo patch libpq-fe.h_localisation.patch to include configure + +------------------------------------------------------------------- +Tue Mar 24 14:34:27 UTC 2020 - Bruno Friedmann + +- update to 2.24 version : Bugfix + + Bug Fixes: + - Prevent defunct processes in asynchronous archive commands. + - Error when archive-get/archive-push/restore are not run on a + PostgreSQL host. + - Read HTTP content to eof when size/encoding not specified. + - Fix resume when the resumable backup was created by Perl. In + this case the resumable backup should be ignored, but the C + code was not able to load the partial manifest written by Perl + since the format differs slightly. + Add validations to catch this case and continue gracefully. + + Features: + - Auto-select backup set on restore when time target is specified. + Auto-selection is performed only when --set is not specified. + If a backup set for the given target time cannot not be found, + the latest (default) backup set will be used. + + Improvements: + - Skip pg_internal.init temp file during backup. + - Add more validations to the manifest on backup. + + Documentation Improvements: + - Prevent lock-bot from adding comments to locked issues. +- Packaging + + use %autopatch + + use a normalized name for source %name-%version.tar.gz + + spec cleaning + + Refresh patch libpq-fe.h_localisation.patch + + Delete merged upstream_wrongly_bring_back_pg_config.patch + +------------------------------------------------------------------- +Mon Jan 27 20:27:02 UTC 2020 - Bruno Friedmann + +- update to 2.23 : Bugfix + + Bug Fixes: + - Fix missing files corrupting the manifest. If a file was + removed by PostgreSQL during the backup (or was missing from + the standby) then the next file might not be copied and updated + in the manifest. If this happened then the backup would error + when restored. + + Improvements: + - Use pkg-config instead of xml2-config for libxml2 build options. + - Validate checksums are set in the manifest on backup/restore. +- Introduce upstream_wrongly_bring_back_pg_config.patch to fix + upstream code (using pg_config in client code) + Upstream issue #920 + +------------------------------------------------------------------- +Thu Jan 23 14:26:33 UTC 2020 - Bruno Friedmann + +- update to 2.22 : Bugfix + + Fix error in timeline conversion. The timeline is required to + verify WAL segments in the archive after a backup. The conversion + was performed base 10 instead of 16, which led to errors when the + timeline was ≥ 0xA. +- update to 2.21 : C Migration Complete + + Bug Fixes + - Fix options being ignored by asynchronous commands. The + asynchronous archive-get/archive-push processes were not + loading options configured in command configuration sections, + e.g. [global:archive-get]. + - Fix handling of \ in filenames. \ was not being properly + escaped when calculating the manifest checksum which prevented + the manifest from loading. Since instances of \ in cluster + filenames should be rare to nonexistent this does not seem + likely to be a serious problem in the field. + + Features: + - pgBackRest is now pure C. + - Add pg-user option. Specifies the database user name when + connecting to PostgreSQL. If not specified pgBackRest will + connect with the local OS user or PGUSER, which was the previous + behavior. + - Allow path-style URIs in S3 driver. + + Improvements: + - The backup command is implemented entirely in C. +- update to 2.20 : Bug fixes + + Fix archive-push/archive-get when PGDATA is symlinked. These + commands tried to use cwd() as PGDATA but this would disagree + with the path configured in pgBackRest if PGDATA was symlinked. + If cwd() does not match the pgBackRest path then chdir() to the + path and make sure the next cwd() matches the result from the + first call. + + Fix reference list when backup.info is reconstructed in expire + command. Since the backup command is still using the Perl version + of reconstruct this issue will not express unless 1) there is a + backup missing from backup.info and 2) the expire command is run + directly instead of running after backup as usual. This unlikely + combination of events means this is probably not a problem in the + field. + + Fix segfault on unexpected EOF in gzip decompression. +- Update and cleanup spec + + Remove all uneeded Perl related part + + Update copyright + +------------------------------------------------------------------- +Wed Dec 4 13:47:03 UTC 2019 - Bruno Friedmann + +- update to 2.19 : C Migrations and Bug Fixes + + Bug Fixes: + - Fix remote timeout in delta restore. When performing a delta + restore on a largely unchanged cluster the remote could timeout + if no files were fetched from the repository within + protocol-timeout. Add keep-alives to prevent remote timeout. + - Fix handling of repeated HTTP headers. When HTTP headers are + repeated they should be considered equivalent to a single + comma-separated header rather than generating an error, which + was the prior behavior. + + Improvements: + - JSON output from the info command is no longer pretty-printed. + Monitoring systems can more easily ingest the JSON without linefeeds. + External tools such as jq can be used to pretty-print if desired. + - The check command is implemented entirely in C. + + Documentation Improvements: + - Document how to contribute to pgBackRest. + - Document maximum version for auto-stop option. + + Test Suite Improvements: + - Fix container test path being used when --vm=none. + - Fix mismatched timezone in expect test. + - Don't autogenerate embedded libc code by default. +- Cleanup spec (license and pkgconfig) + +------------------------------------------------------------------- +Sun Oct 6 14:09:55 UTC 2019 - Bruno Friedmann + +- Update to 2.18 version PostgreSQL 12 Support + + Features: + - PostgreSQL 12 support. + - Add info command set option for detailed text output. + - Add standby restore type. This automatically adds + standby_mode=on to recovery.conf for PostgreSQL < 12 + and creates standby.signal for PostgreSQL ≥ 12, creating a + common interface between PostgreSQL versions. + + Improvements: + - The restore command is implemented entirely in C. + + Documentation Improvements: + - Document the relationship between db-timeout and protocol-timeout. + - Add documentation clarifications regarding standby repositories. + - Add FAQ for time-based Point-in-Time Recovery. +- Update to 2.17 version C Migrations and Bug Fixes + + Bug fixes: + - Improve slow manifest build for very large quantities of + tables/segments. + - Fix exclusions for special files. + + Improvements: + - The stanza-create/update/delete commands are implemented entirely in C. + - The start/stop commands are implemented entirely in C. + - Create log directories/files with 0750/0640 mode. + + Documentation Bug Fixes: + - Fix yum.p.o package being installed when custom package specified. + + Documentation Improvements: + - Build pgBackRest as an unprivileged user. + +------------------------------------------------------------------- +Sat Aug 24 16:31:39 UTC 2019 - Bruno Friedmann + +- Update to 2.16 release C Migrations and Bug Fixes + + Bug Fixes: + - Retry S3 RequestTimeTooSkewed errors instead of immediately + terminating. + - Fix incorrect handling of transfer-encoding response to HEAD + request. + - Fix scoping violations exposed by optimizations in gcc 9. + + Features: + - Add repo-s3-port option for setting a non-standard S3 + service port. + + Improvements: + - The local command for backup is implemented entirely in C. + - The check command is implemented partly in C. +- Packaging adding new libpq-fe dependency +- Added patch libpq-fe.h_localisation.patch + +------------------------------------------------------------------- +Thu Jul 11 12:09:42 UTC 2019 - Bruno Friedmann + +- Update to 2.15.1 release + + Bug Fixes: + Fix archive retention expiring too aggressively. + + Improvements: + The expire command is implemented entirely in C. + The local command for restore is implemented entirely in C. + Remove hard-coded PostgreSQL user so $PGUSER works. + Honor configure --prefix option. + Rename repo-s3-verify-ssl option to repo-s3-verify-tls. + The new name is preferred because pgBackRest does not support + any SSL protocol versions (they are all considered to be insecure). + The old name will continue to be accepted. +- Packaging: + + export %optflag as CFLAG + + fix make install with new supported prefix + +------------------------------------------------------------------- +Thu Jun 6 05:59:01 UTC 2019 - Bruno Friedmann + +- Emergency rollback, 2.14 segv + +------------------------------------------------------------------- +Wed Jun 5 15:24:17 UTC 2019 - Bruno Friedmann + +- Update to 2.14 release + + Bug Fixes: + Fix segfault when process-max > 8 for archive-push/archive-get. + + Improvements: + Bypass database checks when stanza-delete issued with force. + Add configure script for improved multi-platform support. + + Documentation Features: + Add user guides for CentOS/RHEL 6/7. +- 2.13 release + + Bug Fixes: + Fix zero-length reads causing problems for IO filters that + did not expect them. + Fix reliability of error reporting from local/remote processes. + Fix Posix/CIFS error messages reporting the wrong filename on + write/sync/close. +- 2.12 release + + IMPORTANT NOTE: The new TLS/SSL implementation forbids dots in + S3 bucket names per RFC-2818. This security fix is required for + compliant hostname verification. + + Bug Fixes: + Fix issues when a path option is / terminated. + Fix issues when log-level-file=off is set for the archive-get + command. + Fix C code to recognize host:port option format like Perl does. + Fix issues with remote/local command logging options. + + Improvements: + The archive-push command is implemented entirely in C. + Increase process-max limit to 999. + Improve error message when an S3 bucket name contains dots. + + Documentation Improvements: + Clarify that S3-compatible object stores are supported. +- Packaging: add autoconf upstream is now using configure. + +------------------------------------------------------------------- +Mon Mar 11 09:10:56 UTC 2019 - Bruno Friedmann + +- Update to 2.11 release + + C Implementation of Archive Get + + Bug Fixes: + - Fix possible truncated WAL segments when an error occurs + mid-write. + - Fix info command missing WAL min/max when stanza specified. + - Fix non-compliant JSON for options passed from C to Perl. + + Improvements: + - The archive-get command is implemented entirely in C. + - Enable socket keep-alive on older Perl versions. + - Error when parameters are passed to a command that does not + accept parameters. + - Add hints when unable to find a WAL segment in the archive. + - Improve error when hostname cannot be found in a + certificate. + - Add additional options to backup.manifest for debugging + purposes. + + Documentation Improvements: + - Update default documentation version to PostgreSQL 10. +- Packaging: + + Remove merge upstream patch (2cd204f.patch) + + Fix install destination to %{_bindir} + +------------------------------------------------------------------- +Wed Feb 20 08:15:24 UTC 2019 - Bruno Friedmann + +- Include upstream patch 2cd204f.patch to fix issue#677 + +------------------------------------------------------------------- +Sun Feb 17 10:02:49 UTC 2019 - Bruno Friedmann + +- Update to 2.10 version bug fixes + + Add unimplemented S3 driver method required for archive-get. + + Fix check for improperly configured pg-path. +- Packaging: + + Fix trailing space in changes (jengelh) + + Use a factual description (jengelh) + +------------------------------------------------------------------- +Fri Feb 8 20:02:00 UTC 2019 - Bruno Friedmann + +- Update to 2.09 version bug fixes and improvements + + Fix issue with multiple async status files causing a hard error. + + info command is implemented entirely in C. + + Simplify info command text message when no stanzas are present + by replacing the repository path with "the repository". + + Add _DARWIN_C_SOURCE flag to Makefile for MacOS builds. + + Update address lookup in C TLS client to use modern methods. + + Include Posix-compliant header for strcasecmp() and fd_set. +- Packaging: remove comments/remark fixed and merged issue #659 + +------------------------------------------------------------------- +Sat Jan 26 10:00:00 UTC 2019 - Bruno Friedmann + +- Update to 2.08 version : bug fixes and improvement + See more information https://pgbackrest.org/release.html +- Add libxml2-devel as buildrequires +- Add a comment about gethostbyname() upstream issue #659 +- Update spec (date and order) + +------------------------------------------------------------------- +Sat Dec 1 08:58:07 UTC 2018 - Bruno Friedmann + +- Re-add all needed Perl (upstream issue #629): not all the code + is ported to C + +------------------------------------------------------------------- +Tue Nov 20 13:36:49 UTC 2018 - Bruno Friedmann + +- Update to 2.07 version : bug fixes and improvement + See more information https://pgbackrest.org/release.html + +------------------------------------------------------------------- +Sat Oct 27 20:12:17 UTC 2018 - Bruno Friedmann + +- Bug fix and improvement 2.06 version + See more information https://pgbackrest.org/release.html +- Packaging : Remove Requires perl, it not more used + +------------------------------------------------------------------- +Wed Oct 3 08:07:18 UTC 2018 - Bruno Friedmann + +- Bug fix and improvement 2.05 version + See more information https://pgbackrest.org/release.html + +------------------------------------------------------------------- +Sat Jul 14 16:25:46 UTC 2018 - bruno@ioda-net.ch + +- Fix packaging : Avoid segv backtrace + + Don't package and distribute perl or LibC + They are already in final binary. + Ref https://github.com/pgbackrest/pgbackrest/issues/558 + + As a result : tests are no more usable, (only vagrant runs) + use a simple call of the binary (pgbackrest version) to exclude + futur backtrace + + Clean spec: licence and remove macro for file + +------------------------------------------------------------------- +Wed Jul 11 07:49:49 UTC 2018 - bruno@ioda-net.ch + +- Critical bug fix release 2.04 (Backup Resume) + + IMPORTANT NOTE: This release fixes a critical bug in the backup + resume feature. All resumed backups prior to this release should + be considered inconsistent. + See more information https://pgbackrest.org/release.html + + Bug Fixes: + - Fix critical bug in resume that resulted in inconsistent + backups. A regression in v0.82 removed the timestamp comparison + when deciding which files from the aborted backup to keep on + resume. + - Fix error in selective restore when only one user database + exists in the cluster. + - Fix non-compliant ISO-8601 timestamp format in S3 authorization + headers. AWS and some gateways were tolerant of space rather than + zero-padded hours while others were not. + + Features: + - PostgreSQL 11 Beta 2 support. + + Improvements: + - Improve the HTTP client to set content-length to 0 when not + specified by the server. S3 (and gateways) always set + content-length or transfer-encoding but HTTP 1.1 does not require + it and proxies (e.g. HAProxy) may not include either. + - Set search_path = 'pg_catalog' on PostgreSQL connections + + Documentation Improvements: + - Create a new section to describe building pgBackRest and + build on a separate host. + - Add sample S3 policy to restrict bucket privileges. +- Packaging : + + Explicitly requires all perl deps + + Define make_build for 42.3 compilation + +------------------------------------------------------------------- +Mon May 28 08:21:30 UTC 2018 - bruno@ioda-net.ch + +- Urgent fix : add perl as BuildRequires and Requires to force + presence of libperl.so : Otherwise pgbackrest binary can't find + it +- Spec : use %make_build macros + +------------------------------------------------------------------- +Wed May 23 09:55:27 UTC 2018 - bruno@ioda-net.ch + +- Update release 2.03 version + + Bug Fixes: + - Fix potential buffer overrun in error message handling. + - Fix archive write lock being taken for the synchronous + archive-get command. + + Improvements: + - Embed exported C functions and Perl modules directly into + the pgBackRest executable. + - Use time_t instead of __time_t for better portability. + - Print total runtime in milliseconds at command end. + +------------------------------------------------------------------- +Thu May 10 10:12:23 UTC 2018 - bruno@ioda-net.ch + +- Update to bugfix & improvement 2.02 version + Parallel Asynchronous Archive Get and Configuration Includes + Released May 6, 2018 + + Bug Fixes: + - Fix directory syncs running recursively when only the + specified directory should be synced. + - Fix archive-copy throwing "path not found" error for incr/diff + backups. + - Fix failure in manifest build when two or more files in PGDATA + are linked to the same directory. + - Fix delta restore failing when a linked file is missing. + - Fix rendering of key/value and list options in help. + + Features: + - Add asynchronous, parallel archive-get. This feature maintains + a queue of WAL segments to help reduce latency when PostgreSQL + requests a WAL segment with restore_command. + - Add support for additional pgBackRest configuration files in the + directory specified by the --config-include-path option. + Add --config-path option for overriding the default base path + of the --config and --config-include-path option. + - Add repo-s3-token option to allow temporary credentials tokens + to be configured. pgBackRest currently has no way to request new + credentials so the entire command (e.g. backup, restore) must + complete before the credentials expire. + + Improvements: + - Update the archive-push-queue-max, manifest-save-threshold, + and buffer-size options to accept values in KB, MB, GB, TB, PB + where the multiplier is a power of 1024. + - Make backup/restore path sync more efficient. Scanning the + entire directory can be very expensive if there are a lot of + small tables. The backup manifest contains the path list so use + it to perform syncs instead of scanning the backup/restore path + - Show command parameters as well as command options in initial + info log message. + - Rename archive-queue-max option to archive-push-queue-max to + avoid confusion with the new archive-get-queue-max option. + The old option name will continue to be accepted. + + Documentation Bug Fixes: + - Update docs with 32-bit support and caveats. + 32-bit support was added in v1.26. + + Documentation Improvements: + - Add monitoring examples using PostgreSQL and jq. + - Add example of command section usage to archiving configuration. + - Remove documentation info --output=json as experimental. + - Update out-of-date description for the spool-path option. + + Test Suite Features: + - Use lcov for C unit test coverage reporting. Switch from + Devel::Cover because it would not report on branch coverage + for reports converted from gcov. Incomplete branch coverage + for a module now generates an error. Coverage of unit tests + is not displayed in the report unless they are incomplete for + either statement or branch coverage. +- Changes of previous 2.01 version from March 6th 2018 + + Bug Fixes: + - Fix --target-action and --recovery-option options being reported + as invalid when restoring with --type=immediate. + - Immediately error when a secure option (e.g. repo1-s3-key) is + passed on the command line. Since pgBackRest would not pass + secure options on to sub-processes an obscure error was thrown. + The new error is much clearer and provides hints about how to fix + the problem. Update command documentation to omit secure options + that cannot be specified on the command-line. + - Fix issue passing --no-config to embedded Perl. + - Fix issue where specifying log-level-stderr > warn would cause a + local/remote process to error on exit due to output found on + stderr when none was expected. The max value for a local/remote + process is now error. + - Fix manifest test in the check command when tablespaces are + present. + + Improvements: + - Error when multiple arguments are set in the config file for an + option that does not accept multiple arguments. + - Remove extraneous sudo commands from src/Makefile. + + Documentation Improvements: + - Show index in examples for indexed options, i.e. repo-*, pg-*. + - Simplify table of contents on command page by only listing + commands. + - Remove references to the C library being optional. + + Test Suite Features: + - Add CentOS/RHEL package builds. + - Use clang for static code analysis. Nothing found initially + except for some functions that should have been marked + __noreturn__. + +------------------------------------------------------------------- +Fri Mar 9 15:16:24 UTC 2018 - bruno@ioda-net.ch + +- Packaging : + + modernize spec with spec-cleaner -m + + remove pgbackrest-release-1.00_datadir.patch pgbackrest is now + written in C + + Build C binary and lib C + + Adjust new parameter name in pgbackrest-conf.patch +- Update to new 2.0 version + + Features: + The archive-push command is now partially coded in C which + allows the PostgreSQL archive_command to run significantly + faster when processing status messages from the asynchronous + archive process. (Reviewed by Cynthia Shang.) + + Improvements: + - Improve check command to verify that the backup manifest can be + built. (Contributed by Cynthia Shang.) + - Improve performance of HTTPS client. Buffering now takes the + pending bytes on the socket into account (when present) rather + than relying entirely on select(). In some instances the final + bytes would not be flushed until the connection was closed. + - Improve S3 delete performance. The constant S3_BATCH_MAX had + been replaced with a hard-coded value of 2, probably during + testing. + - Allow any non-command-line option to be reset to default on + the command-line. This allows options in pgbackrest.conf to be + reset to default which reduces the need to write new config + files for specific needs. + - The C library is now required. This eliminates conditional + loading and eases development of new library features. + - The pgbackrest executable is now a C binary instead of Perl. + This allows certain time-critical commands (like async + archive-push) to run more quickly. + - Rename db-* options to pg-* and backup-* options to repo-* to + improve consistency. repo-* options are now indexed although + currently only one is allowed. + ** This imply you need to revisit your pgbackrest.conf ** +- Packaging : + + Use make install (now fixed upstream) for bin + +------------------------------------------------------------------- +Sun Feb 4 17:14:16 UTC 2018 - bruno@ioda-net.ch + +- Upgrade to 1.28 bugfix version + + Bug Fixes: + - Fixed inability to restore a single database contained in a + tablespace using --db-include. (Fixed by Cynthia Shang.) + - Ensure latest db-id is selected on when matching archive.info + to backup.info. This provides correct matching in the event + there are system-id and db-version duplicates + (e.g. after reverting a pg_upgrade). + (Fixed by Cynthia Shang. Reported by Adam K. Sumner.) + - Fixed overly chatty error message when reporting an invalid + command. (Reported by Jason O'Donnell.) + + Features: + Add stanza-delete command to cleanup unused stanzas. + (Contributed by Cynthia Shang. Suggested by Magnus Hagander.) + + Improvements: + Improve stanza-create command so that it does not error when + the stanza already exists. (Contributed by Cynthia Shang.) + +------------------------------------------------------------------- +Thu Feb 1 13:20:00 UTC 2018 - bruno@ioda-net.ch + +- Packaging : + + Fix wrong requirement of previous version, now use correct + %perl_requires, add openssl-devel for crytpo on libc + + Add pgbackrest-conf.patch : a minimal working configuration file + + Build pgbackrest-libc allowing crypto and checksum + + Added %check section + + Rework install and file section (copy of pgdg packaging and use + of correct %perl macros + + Disable build on i586 pgBackRest need perl with 64bit integer + support. see upstream issue + https://github.com/pgbackrest/pgbackrest/issues/478 + + use %_localstatedir/lib as %_sharedstatedir is broken on Leap + 42.x and some SLE12 + +------------------------------------------------------------------- +Fri Jan 26 15:19:05 UTC 2018 - joop.boonen@opensuse.org + +- update to 1.27 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.27 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.26 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.25 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.24 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.23 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.22 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.21 + - Added missing requirement + +------------------------------------------------------------------- +Thu Aug 3 17:42:43 UTC 2017 - mrueckert@suse.de + +- update to 1.20 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.20 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.19 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.18 + +------------------------------------------------------------------- +Tue Mar 21 11:04:04 UTC 2017 - bruno@ioda-net.ch + +- update to 1.17 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.17 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.16 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.15 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.14 + +------------------------------------------------------------------- +Fri Feb 10 00:39:58 UTC 2017 - mrueckert@suse.de + +- update to 1.13 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.13 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.12 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.11 + +------------------------------------------------------------------- +Thu Nov 10 11:09:58 UTC 2016 - mrueckert@suse.de + +- update to 1.10 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.10 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.09 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.08 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.07 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.06 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.05 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.04 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.03 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.02 + https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F1.01 + +------------------------------------------------------------------- +Wed May 4 02:46:09 UTC 2016 - mrueckert@suse.de + +- added pgbackrest-release-1.00_datadir.patch: + perl libraries installed in the normal search path we dont need + this anymore. + +------------------------------------------------------------------- +Wed May 4 02:26:45 UTC 2016 - mrueckert@suse.de + +- update to 1.00 + diff --git a/pgbackrest.conf b/pgbackrest.conf new file mode 100644 index 0000000..05874fd --- /dev/null +++ b/pgbackrest.conf @@ -0,0 +1,5 @@ +[global] +repo-path=/var/lib/pgbackrest + +#[main] +#pg-path=/var/lib/pgsql/data diff --git a/pgbackrest.service b/pgbackrest.service new file mode 100644 index 0000000..eef8eae --- /dev/null +++ b/pgbackrest.service @@ -0,0 +1,18 @@ +[Unit] +Description=pgBackRest Server +Documentation=https://pgbackrest.org/configuration.html +Documentation=man:pgbackrest(1) man:pgbackrest.conf(5) +After=network.target +StartLimitIntervalSec=0 +PartOf=pgbackrest.target + +[Service] +Type=simple +Restart=always +RestartSec=1 +User=postgres +ExecStart=/usr/bin/pgbackrest server +ExecReload=kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/pgbackrest.spec b/pgbackrest.spec new file mode 100644 index 0000000..aa71a06 --- /dev/null +++ b/pgbackrest.spec @@ -0,0 +1,159 @@ +# +# spec file for package pgbackrest +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2019-2022 Ioda-Net Sàrl, Charmoille, Switzerland. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define services pgbackrest.target pgbackrest-diff@.service pgbackrest-full@.service pgbackrest-incr@.service pgbackrest.service pgbackrest-diff@.timer pgbackrest-full@.timer pgbackrest-incr@.timer +Name: pgbackrest +Version: 2.54.0 +Release: 0 +Summary: Reliable PostgreSQL Backup & Restore +License: MIT +Group: Productivity/Databases/Tools +URL: https://www.pgbackrest.org +Source: https://github.com/%{name}/%{name}/archive/release/%{version}/%{name}-%{version}.tar.gz +Source1: pgbackrest.conf +Source10: pgbackrest-diff@.service +Source11: pgbackrest-diff@.timer +Source12: pgbackrest-full@.service +Source13: pgbackrest-full@.timer +Source14: pgbackrest-incr@.service +Source15: pgbackrest-incr@.timer +Source16: pgbackrest.service +Source17: pgbackrest.target +Source18: pgbackrest.tmpfiles.d +Source98: README.SUSE +Source99: series +Patch0: libpq-fe.h_localisation.patch +Patch1: use-run-pgbackrest.patch +BuildRequires: libbacktrace-devel +BuildRequires: libyaml-devel +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(liblz4) +BuildRequires: pkgconfig(libpq) +BuildRequires: pkgconfig(libssh2) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(systemd) +# This is a bit awkward as we only need this for directory ownership +Requires(pre): postgresql-server +%if 0%{?suse_version} >= 1500 +BuildRequires: pkgconfig(liblz4) +%endif +%if 0%{?is_opensuse} || 0%{?sle_version} >= 150100 +BuildRequires: pkgconfig(libzstd) +%endif + +%description +pgBackRest aims to be a simple, reliable backup and restore system for +PostgreSQL that can seamlessly scale up to the largest databases and +workloads. + +The following features are available: +- Parallel backup & restore +- Local or remote operation +- Full, incremental, differential backups +- Backup rotation & archive expiration +- Backup integrity +- Page checksums +- Backup resume +- Streaming compression & checksums +- Delta restore +- Parallel, asynchronous WAL push & get +- Tablespace & link support +- Amazon S3 support +- Encryption +- Compatibility with PostgreSQL >= 8.3 + +%prep +%autosetup -p1 -n %{name}-release-%{version} + +%build +cp %{SOURCE98} . +%meson +%meson_build + +%install +%meson_install + +install -D -d -m 0700 \ + %{buildroot}%{_localstatedir}/lib/%{name} \ + %{buildroot}%{_localstatedir}/log/%{name} \ + %{buildroot}%{_localstatedir}/spool/%{name} + +install -D -d -m 0755 \ + %{buildroot}%{_sysconfdir} \ + %{buildroot}%{_unitdir} + +install -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf +install -m 0644 \ + %{SOURCE10} \ + %{SOURCE11} \ + %{SOURCE12} \ + %{SOURCE13} \ + %{SOURCE14} \ + %{SOURCE15} \ + %{SOURCE16} \ + %{SOURCE17} \ + %{buildroot}%{_unitdir} + +install -D -m 0644 \ + %{SOURCE18} \ + %{buildroot}%{_tmpfilesdir}/%{name}.conf + +%check +# Tests are only available with Vagrant +# We just test that the binary works. +%{buildroot}/%{_bindir}/%{name} version || exit 1 +%meson_test + +%pre +%service_add_pre %{services} + +%post +%tmpfiles_create %{_tmpfilesdir}/%{name}.conf +%service_add_post %{services} + +%preun +%service_del_preun %{services} + +%postun +%service_del_postun %{services} + +%files +%doc README.md README.SUSE +%license LICENSE +%config(noreplace) %attr (640,root,postgres) %{_sysconfdir}/%{name}.conf +# We still can do that as postgres user is system fixed +%attr(-,postgres,postgres) %{_localstatedir}/log/%{name} +%attr(-,postgres,postgres) %{_localstatedir}/lib/%{name} +%attr(-,postgres,postgres) %{_localstatedir}/spool/%{name} +%ghost %dir %attr(750,postgres,postgres) /run/pgbackrest +%{_bindir}/%{name} +%{_unitdir}/pgbackrest-diff@.service +%{_unitdir}/pgbackrest-diff@.timer +%{_unitdir}/pgbackrest-full@.service +%{_unitdir}/pgbackrest-full@.timer +%{_unitdir}/pgbackrest-incr@.service +%{_unitdir}/pgbackrest-incr@.timer +%{_unitdir}/pgbackrest.service +%{_unitdir}/pgbackrest.target +%{_tmpfilesdir}/%{name}.conf + +%changelog diff --git a/pgbackrest.target b/pgbackrest.target new file mode 100644 index 0000000..8946ae4 --- /dev/null +++ b/pgbackrest.target @@ -0,0 +1,3 @@ +[Unit] +Description=Target to restart/stop all parts of pgbackrest + diff --git a/pgbackrest.tmpfiles.d b/pgbackrest.tmpfiles.d new file mode 100644 index 0000000..8dcbd77 --- /dev/null +++ b/pgbackrest.tmpfiles.d @@ -0,0 +1,2 @@ +# Type Path Mode UID GID Age Argument +d /run/pgbackrest 0750 postgres postgres - - diff --git a/series b/series new file mode 100644 index 0000000..f875b7f --- /dev/null +++ b/series @@ -0,0 +1,2 @@ +libpq-fe.h_localisation.patch +use-run-pgbackrest.patch diff --git a/use-run-pgbackrest.patch b/use-run-pgbackrest.patch new file mode 100644 index 0000000..bc79e79 --- /dev/null +++ b/use-run-pgbackrest.patch @@ -0,0 +1,169 @@ +Index: pgbackrest-release-2.54.0/CODING.md +=================================================================== +--- pgbackrest-release-2.54.0.orig/CODING.md ++++ pgbackrest-release-2.54.0/CODING.md +@@ -268,11 +268,11 @@ Continuation characters should be aligne + + This function can be called without variable parameters: + ```c +-storagePathCreateP(storageLocal(), "/tmp/pgbackrest"); ++storagePathCreateP(storageLocal(), "/run/pgbackrest"); + ``` + Or with variable parameters: + ```c +-storagePathCreateP(storageLocal(), "/tmp/pgbackrest", .errorOnExists = true, .mode = 0777); ++storagePathCreateP(storageLocal(), "/run/pgbackrest", .errorOnExists = true, .mode = 0777); + ``` + If the majority of functions in a module or object are variadic it is best to provide macros for all functions even if they do not have variable parameters. Do not use the base function when variadic macros exist. + +Index: pgbackrest-release-2.54.0/doc/resource/git-history.cache +=================================================================== +--- pgbackrest-release-2.54.0.orig/doc/resource/git-history.cache ++++ pgbackrest-release-2.54.0/doc/resource/git-history.cache +@@ -8359,7 +8359,7 @@ + { + "commit": "a1365b26d4c2383eaacea3714eeb521435ca79aa", + "date": "2021-01-18 23:41:09 -0500", +- "subject": "Remove duplicate mkdir for /tmp/pgbackrest in Vagrantfile." ++ "subject": "Remove duplicate mkdir for /run/pgbackrest in Vagrantfile." + }, + { + "commit": "8322dfd7af97e307b952cfb37e6a65b65f55be0f", +@@ -11175,8 +11175,8 @@ + { + "commit": "3fbfcba811499a59b943dd893eef9ff52090f7b6", + "date": "2020-03-16 17:27:01 -0400", +- "subject": "Forbid access to /tmp/pgbackrest in the Vagrantfile.", +- "body": "This matches the error that will be thrown in the vm=none test on Travis CI if a unit test writes to /tmp/pgbackrest." ++ "subject": "Forbid access to /run/pgbackrest in the Vagrantfile.", ++ "body": "This matches the error that will be thrown in the vm=none test on Travis CI if a unit test writes to /run/pgbackrest." + }, + { + "commit": "46911c64c19dc8ff76d2a6ff4548fc01647043e0", +@@ -13076,7 +13076,7 @@ + "commit": "45881c74aeff4bb25559ec0254fa7fc1960d9cab", + "date": "2019-10-08 12:06:30 -0400", + "subject": "Allow most unit tests to run outside of a container.", +- "body": "Three major changes were required to get this working:\n\n1) Provide the path to pgbackrest in the build directory when running outside a container. Tests in a container will continue to install and run against /usr/bin/pgbackrest.\n\n1) Set a per-test lock path so tests don't conflict on the default /tmp/pgbackrest path. Also set a per-test log-path while we are at it.\n\n2) Use localhost instead of a custom host for TLS test connections. Tests in containers will continue to update /etc/hosts and use the custom host.\n\nAdd infrastructure and update harnessCfgLoad*() to get the correct exe and paths loaded for testing.\n\nSince new tests are required to verify that running outside a container works, also rework the tests in Travis CI to provide coverage within a reasonable amount of time. Mainly, break up to doc tests by VM and run an abbreviated unit test suite on co6 and co7." ++ "body": "Three major changes were required to get this working:\n\n1) Provide the path to pgbackrest in the build directory when running outside a container. Tests in a container will continue to install and run against /usr/bin/pgbackrest.\n\n1) Set a per-test lock path so tests don't conflict on the default /run/pgbackrest path. Also set a per-test log-path while we are at it.\n\n2) Use localhost instead of a custom host for TLS test connections. Tests in containers will continue to update /etc/hosts and use the custom host.\n\nAdd infrastructure and update harnessCfgLoad*() to get the correct exe and paths loaded for testing.\n\nSince new tests are required to verify that running outside a container works, also rework the tests in Travis CI to provide coverage within a reasonable amount of time. Mainly, break up to doc tests by VM and run an abbreviated unit test suite on co6 and co7." + }, + { + "commit": "77b0c6c993a0e6ff45a6a99f343c3709a016d152", +@@ -21563,7 +21563,7 @@ + "commit": "18fd25233b1db7b3197f5d8dc537d239dcfc7aba", + "date": "2016-04-14 09:30:54 -0400", + "subject": "New simpler configuration and consistent project/exe/path naming.", +- "body": "* The repo-path option now always refers to the repository where backups and archive are stored, whether local or remote, so the repo-remote-path option has been removed. The new spool-path option can be used to define a location for queueing WAL segments when archiving asynchronously. Otherwise, a local repository is no longer required.\n\n* Implemented a new config format which should be far simpler to use. See the User Guide and Configuration Reference for details but for a simple configuration all options can now be placed in the stanza section. Options that are shared between stanzas can be placed in the [global] section. More complex configurations can still make use of command sections though this should be a rare use case.\n\n* The default configuration filename is now pgbackrest.conf instead of pg_backrest.conf. This was done for consistency with other naming changes but also to prevent old config files from being loaded accidentally.\n\n* The default repository name was changed from /var/lib/backup to /var/lib/pgbackrest.\n\n* Lock files are now stored in /tmp/pgbackrest by default. These days /run/pgbackrest would be the preferred location but that would require init scripts which are not part of this release. The lock-path option can be used to configure the lock directory.\n\n* Log files are now stored in /var/log/pgbackrest by default and no longer have the date appended so they can be managed with logrotate. The log-path option can be used to configure the lock directory.\n\n* Executable filename changed from pg_backrest to pgbackrest." ++ "body": "* The repo-path option now always refers to the repository where backups and archive are stored, whether local or remote, so the repo-remote-path option has been removed. The new spool-path option can be used to define a location for queueing WAL segments when archiving asynchronously. Otherwise, a local repository is no longer required.\n\n* Implemented a new config format which should be far simpler to use. See the User Guide and Configuration Reference for details but for a simple configuration all options can now be placed in the stanza section. Options that are shared between stanzas can be placed in the [global] section. More complex configurations can still make use of command sections though this should be a rare use case.\n\n* The default configuration filename is now pgbackrest.conf instead of pg_backrest.conf. This was done for consistency with other naming changes but also to prevent old config files from being loaded accidentally.\n\n* The default repository name was changed from /var/lib/backup to /var/lib/pgbackrest.\n\n* Lock files are now stored in /run/pgbackrest by default. These days /run/pgbackrest would be the preferred location but that would require init scripts which are not part of this release. The lock-path option can be used to configure the lock directory.\n\n* Log files are now stored in /var/log/pgbackrest by default and no longer have the date appended so they can be managed with logrotate. The log-path option can be used to configure the lock directory.\n\n* Executable filename changed from pg_backrest to pgbackrest." + }, + { + "commit": "885797e4b58a675487a3531ba16908c1d1e9f970", +Index: pgbackrest-release-2.54.0/doc/xml/coding.xml +=================================================================== +--- pgbackrest-release-2.54.0.orig/doc/xml/coding.xml ++++ pgbackrest-release-2.54.0/doc/xml/coding.xml +@@ -365,13 +365,13 @@ void storagePathCreate(const Storage *th +

This function can be called without variable parameters:

+ + +-storagePathCreateP(storageLocal(), "/tmp/pgbackrest"); ++storagePathCreateP(storageLocal(), "/run/pgbackrest"); + + +

Or with variable parameters:

+ + +-storagePathCreateP(storageLocal(), "/tmp/pgbackrest", .errorOnExists = true, .mode = 0777); ++storagePathCreateP(storageLocal(), "/run/pgbackrest", .errorOnExists = true, .mode = 0777); + + +

If the majority of functions in a module or object are variadic it is best to provide macros for all functions even if they do not have variable parameters. Do not use the base function when variadic macros exist.

+Index: pgbackrest-release-2.54.0/doc/xml/release/2016/1.00.xml +=================================================================== +--- pgbackrest-release-2.54.0.orig/doc/xml/release/2016/1.00.xml ++++ pgbackrest-release-2.54.0/doc/xml/release/2016/1.00.xml +@@ -43,7 +43,7 @@ + + --> + +-

Lock files are now stored in /tmp/pgbackrest by default. These days /run/pgbackrest is the preferred location but that would require init scripts which are not part of this release. The lock-path option can be used to configure the lock directory.

++

Lock files are now stored in /run/pgbackrest by default. These days /run/pgbackrest is the preferred location but that would require init scripts which are not part of this release. The lock-path option can be used to configure the lock directory.

+ + + +Index: pgbackrest-release-2.54.0/src/build/config/config.yaml +=================================================================== +--- pgbackrest-release-2.54.0.orig/src/build/config/config.yaml ++++ pgbackrest-release-2.54.0/src/build/config/config.yaml +@@ -874,7 +874,7 @@ option: + lock-path: + section: global + type: path +- default: /tmp/pgbackrest ++ default: /run/pgbackrest + command: + annotate: {} + archive-get: {} +Index: pgbackrest-release-2.54.0/src/config/parse.auto.c.inc +=================================================================== +--- pgbackrest-release-2.54.0.orig/src/config/parse.auto.c.inc ++++ pgbackrest-release-2.54.0/src/config/parse.auto.c.inc +@@ -11,7 +11,7 @@ Rule Strings + + static const StringPub parseRuleValueStr[] = + { +- PARSE_RULE_STRPUB("/tmp/pgbackrest"), // val/str ++ PARSE_RULE_STRPUB("/run/pgbackrest"), // val/str + PARSE_RULE_STRPUB("/var/lib/pgbackrest"), // val/str + PARSE_RULE_STRPUB("/var/log/pgbackrest"), // val/str + PARSE_RULE_STRPUB("/var/spool/pgbackrest"), // val/str +Index: pgbackrest-release-2.54.0/test/ci.pl +=================================================================== +--- pgbackrest-release-2.54.0.orig/test/ci.pl ++++ pgbackrest-release-2.54.0/test/ci.pl +@@ -196,8 +196,8 @@ eval + $strPackage .= " libdbd-pg-perl"; + } + +- processBegin('/tmp/pgbackrest owned by root so tests cannot use it'); +- processExec('sudo mkdir -p /tmp/pgbackrest && sudo chown root:root /tmp/pgbackrest && sudo chmod 700 /tmp/pgbackrest'); ++ processBegin('/run/pgbackrest owned by root so tests cannot use it'); ++ processExec('sudo mkdir -p /run/pgbackrest && sudo chown root:root /run/pgbackrest && sudo chmod 700 /run/pgbackrest'); + processEnd(); + + processBegin('install test packages'); +Index: pgbackrest-release-2.54.0/test/src/module/command/helpTest.c +=================================================================== +--- pgbackrest-release-2.54.0.orig/test/src/module/command/helpTest.c ++++ pgbackrest-release-2.54.0/test/src/module/command/helpTest.c +@@ -272,7 +272,7 @@ testRun(void) + " [default=n]\n" + " --io-timeout I/O timeout [default=1m]\n" + " --lock-path path where lock files are stored\n" +- " [default=/tmp/pgbackrest]\n" ++ " [default=/run/pgbackrest]\n" + " --neutral-umask use a neutral umask [default=y]\n" + " --process-max max processes to use for\n" + " compress/transfer [default=1]\n" +Index: pgbackrest-release-2.54.0/test/Vagrantfile +=================================================================== +--- pgbackrest-release-2.54.0.orig/test/Vagrantfile ++++ pgbackrest-release-2.54.0/test/Vagrantfile +@@ -54,12 +54,12 @@ Vagrant.configure(2) do |config| + sudo /etc/init.d/virtualbox-guest-utils stop + sudo /usr/sbin/VBoxService --timesync-set-on-restore --timesync-interval 5000 --timesync-set-threshold 1 + +- # Create /tmp/pgbackrest and give ownership to root so we know unit tests are not writing there ++ # Create /run/pgbackrest and give ownership to root so we know unit tests are not writing there + #----------------------------------------------------------------------------------------------------------------------- +- echo 'Create /tmp/pgbackrest owned by root' && date +- sudo mkdir -p /tmp/pgbackrest +- sudo chown root:root /tmp/pgbackrest +- sudo chmod 700 /tmp/pgbackrest ++ echo 'Create /run/pgbackrest owned by root' && date ++ sudo mkdir -p /run/pgbackrest ++ sudo chown root:root /run/pgbackrest ++ sudo chmod 700 /run/pgbackrest + + # Mount tmpfs at /home/vagrant/test for faster testing + #-----------------------------------------------------------------------------------------------------------------------