From 2c0ba0820d3e4adea31ef6b8ee201be653ef9579 Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 15 Jan 2020 13:21:52 -0700 Subject: [PATCH] v2.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]. (Reviewed by Cynthia Shang. Reported by Urs Kramer.) * 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. (Contributed by Mike Palmiotto.) * Allow path-style URIs in S3 driver. Improvements: * The backup command is implemented entirely in C. (Reviewed by Cynthia Shang.) --- README.md | 2 +- doc/resource/exe.cache | 1603 +++++++++--------- doc/resource/git-history.cache | 273 +++ doc/xml/auto/metric-coverage-report.auto.xml | 75 +- doc/xml/release.xml | 2 +- lib/pgBackRest/Version.pm | 2 +- src/configure | 18 +- src/configure.ac | 2 +- src/version.h | 2 +- test/code-count/file-type.yaml | 196 +-- 10 files changed, 1107 insertions(+), 1068 deletions(-) diff --git a/README.md b/README.md index 0fd27daa5..c8f5580f0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ pgBackRest aims to be a simple, reliable backup and restore solution that can seamlessly scale up to the largest databases and workloads by utilizing algorithms that are optimized for database-specific requirements. -pgBackRest [v2.20](https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.20) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page. +pgBackRest [v2.21](https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.21) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page. Documentation for v1 can be found [here](http://www.pgbackrest.org/1). No further releases are planned for v1 because v2 is backward-compatible with v1 options and repositories. diff --git a/doc/resource/exe.cache b/doc/resource/exe.cache index 6654a1540..b148ab094 100644 --- a/doc/resource/exe.cache +++ b/doc/resource/exe.cache @@ -35,7 +35,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir -p /build/pgbackrest-release-2.20" + "sudo mkdir -p /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -48,7 +48,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -61,7 +61,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -74,7 +74,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo chown -R vagrant /build/pgbackrest-release-2.20" + "sudo chown -R vagrant /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -100,8 +100,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo apt-get install build-essential libssl-dev libxml2-dev libperl-dev zlib1g-dev \\", - " libpq-dev" + "sudo apt-get install make gcc libpq-dev libssl-dev libxml2-dev" ], "cmd-extra" : "-y 2>&1", "host" : "build", @@ -115,25 +114,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "perl -V | grep USE_64_BIT_INT" - ], - "host" : "build", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - " USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "cd /build/pgbackrest-release-2.20/src && ./configure" + "cd /build/pgbackrest-release-2.21/src && ./configure" ], "host" : "build", "load-env" : true, @@ -146,7 +127,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "make -s -C /build/pgbackrest-release-2.20/src" + "make -s -C /build/pgbackrest-release-2.21/src" ], "host" : "build", "load-env" : true, @@ -173,7 +154,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo apt-get install postgresql-client libxml2" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -196,20 +191,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo apt-get install perl" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -315,7 +296,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - General help", + "pgBackRest 2.21 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -460,7 +441,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - 'backup' command - 'log-path' option help", + "pgBackRest 2.21 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -697,7 +678,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -723,8 +704,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", - "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/10-1/0000000100000000/000000010000000000000001-a24041768cbbc1ed3ed27b68e637911990d7fc3f.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/10-1/0000000100000000/000000010000000000000001-9c3d03b67123b0af11e930b016864fef030bdd09.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -751,17 +732,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:56:36\": backup begins after the next regular checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000010000000000000002, lsn = 0/2000028", " [filtered 941 lines of output]", "P01 INFO: backup file /var/lib/postgresql/10/demo/base/1/12820 (0B, 100%)", "P01 INFO: backup file /var/lib/postgresql/10/demo/base/1/12815 (0B, 100%)", - "P00 INFO: full backup size = 22.4MB", + "P00 INFO: full backup size = 22.5MB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000002, lsn = 0/2000130", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -779,7 +760,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035636F" + "20200115-195337F" ] } }, @@ -806,12 +787,12 @@ "value" : { "output" : [ " [filtered 4 lines of output]", - "P01 INFO: backup file /var/lib/postgresql/10/demo/global/pg_control (8KB, 99%) checksum 6a6e36663a20e511a40fce5c40ad72e84ddd8ed0", + "P01 INFO: backup file /var/lib/postgresql/10/demo/global/pg_control (8KB, 99%) checksum 4bfd2f1fd649089d6ffa6b2a71eafda4da2a12cd", "P01 INFO: backup file /var/lib/postgresql/10/demo/pg_logical/replorigin_checkpoint (8B, 100%) checksum 347fc8f2df71bd4436e38bd1516ccd7ea0d46532", "P00 INFO: diff backup size = 8KB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F8", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -843,18 +824,18 @@ " db (current)", " wal archive min/max (10-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20191212-035636F", - " timestamp start/stop: 2019-12-12 03:56:36 / 2019-12-12 03:56:49", + " full backup: 20200115-195337F", + " timestamp start/stop: 2020-01-15 19:53:37 / 2020-01-15 19:53:50", " wal start/stop: 000000010000000000000002 / 000000010000000000000002", - " database size: 22.4MB, backup size: 22.4MB", + " database size: 22.5MB, backup size: 22.5MB", " repository size: 2.7MB, repository backup size: 2.7MB", "", - " diff backup: 20191212-035636F_20191212-035650D", - " timestamp start/stop: 2019-12-12 03:56:50 / 2019-12-12 03:56:53", + " diff backup: 20200115-195337F_20200115-195351D", + " timestamp start/stop: 2020-01-15 19:53:51 / 2020-01-15 19:53:53", " wal start/stop: 000000010000000000000003 / 000000010000000000000003", - " database size: 22.4MB, backup size: 8.2KB", - " repository size: 2.7MB, repository backup size: 517B", - " backup reference list: 20191212-035636F" + " database size: 22.5MB, backup size: 8.2KB", + " repository size: 2.7MB, repository backup size: 496B", + " backup reference list: 20200115-195337F" ] } }, @@ -988,12 +969,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", - "P00 INFO: last backup label = 20191212-035636F_20191212-035650D, version = 2.20", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:57:10\": backup begins after the next regular checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", + "P00 INFO: last backup label = 20200115-195337F_20200115-195351D, version = 2.21", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000005, lsn = 0/5000028", - "P00 WARN: a timeline switch has occurred since the last backup, enabling delta checksum", - " [filtered 8 lines of output]" + "P00 WARN: a timeline switch has occurred since the 20200115-195337F_20200115-195351D backup, enabling delta checksum", + " [filtered 9 lines of output]" ] } }, @@ -1049,12 +1030,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", - "P00 INFO: last backup label = 20191212-035636F_20191212-035710I, version = 2.20", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:57:15\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", + "P00 INFO: last backup label = 20200115-195337F_20200115-195411I, version = 2.21", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000006, lsn = 0/6000028", - "P01 INFO: backup file /var/lib/postgresql/10/demo/global/pg_control (8KB, 99%) checksum d13136a4af09774770a726fbb035dc44cf48e2b9", - " [filtered 8 lines of output]" + "P01 INFO: backup file /var/lib/postgresql/10/demo/global/pg_control (8KB, 99%) checksum c1d334839743ff0583fae2920ca5a295784e927f", + " [filtered 9 lines of output]" ] } }, @@ -1199,7 +1180,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-12-12 03:57:18+00 | 000000020000000000000006", + " \"demo\" | 2020-01-15 19:54:16+00 | 000000020000000000000006", "(1 row)" ] } @@ -1233,7 +1214,7 @@ "type" : "exe", "value" : { "output" : [ - "1576123038" + "1579118056" ] } }, @@ -1297,7 +1278,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-035636F|remove archive" + "archive retention on backup 20200115-195337F|remove archive" ] }, "host" : "pg-primary", @@ -1308,10 +1289,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 951 lines of output]", + " [filtered 952 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-035636F, archiveId = 10-1, start = 000000010000000000000002", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-195337F, archiveId = 10-1, start = 000000010000000000000002", "P00 DETAIL: no archive to remove, archiveId = 10-1", "P00 INFO: expire command end: completed successfully" ] @@ -1331,7 +1312,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035726F" + "20200115-195423F" ] } }, @@ -1346,7 +1327,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20191212-035636F|archive retention on backup 20191212-035726F|remove archive" + "expire full backup set\\: 20200115-195337F|archive retention on backup 20200115-195423F|remove archive" ] }, "host" : "pg-primary", @@ -1357,12 +1338,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 950 lines of output]", + " [filtered 951 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire full backup set: 20191212-035636F, 20191212-035636F_20191212-035650D, 20191212-035636F_20191212-035710I, 20191212-035636F_20191212-035715I", - "P00 INFO: remove expired backup 20191212-035636F_20191212-035715I", - "P00 INFO: remove expired backup 20191212-035636F_20191212-035710I", + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire full backup set: 20200115-195337F, 20200115-195337F_20200115-195351D, 20200115-195337F_20200115-195411I, 20200115-195337F_20200115-195415I", + "P00 INFO: remove expired backup 20200115-195337F_20200115-195415I", + "P00 INFO: remove expired backup 20200115-195337F_20200115-195411I", " [filtered 2 lines of output]" ] } @@ -1425,7 +1406,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035742F_20191212-035757D" + "20200115-195438F_20200115-195454D" ] } }, @@ -1453,7 +1434,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20191212-035742F_20191212-035757D" + "expire diff backup set: 20200115-195438F_20200115-195454D" ] }, "host" : "pg-primary", @@ -1464,12 +1445,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 10 lines of output]", + " [filtered 11 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire diff backup set: 20191212-035742F_20191212-035757D, 20191212-035742F_20191212-035801I", - "P00 INFO: remove expired backup 20191212-035742F_20191212-035801I", - "P00 INFO: remove expired backup 20191212-035742F_20191212-035757D" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire diff backup set: 20200115-195438F_20200115-195454D, 20200115-195438F_20200115-195457I", + "P00 INFO: remove expired backup 20200115-195438F_20200115-195457I", + "P00 INFO: remove expired backup 20200115-195438F_20200115-195454D" ] } }, @@ -1518,7 +1499,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035742F_20191212-035803D" + "20200115-195438F_20200115-195500D" ] } }, @@ -1560,11 +1541,11 @@ "value" : { "output" : [ " [filtered 8 lines of output]", - "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 00000002000000000000000F, lsn = 0/F0000F8", - "P00 INFO: new backup label = 20191212-035742F_20191212-035808D", + "P00 INFO: backup stop archive = 00000002000000000000000F, lsn = 0/F000688", + "P00 INFO: check archive for segment(s) 00000002000000000000000F:00000002000000000000000F", + "P00 INFO: new backup label = 20200115-195438F_20200115-195505D", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" ] } }, @@ -1582,7 +1563,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035742F_20191212-035808D" + "20200115-195438F_20200115-195505D" ] } }, @@ -1597,7 +1578,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-035742F_20191212-035803D|remove archive" + "archive retention on backup 20200115-195438F_20200115-195500D|remove archive" ] }, "host" : "pg-primary", @@ -1608,11 +1589,11 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-035726F, archiveId = 10-1, start = 000000020000000000000008, stop = 000000020000000000000008", - "P00 DETAIL: archive retention on backup 20191212-035742F, archiveId = 10-1, start = 000000020000000000000009, stop = 000000020000000000000009", - "P00 DETAIL: archive retention on backup 20191212-035742F_20191212-035803D, archiveId = 10-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", - "P00 DETAIL: archive retention on backup 20191212-035742F_20191212-035808D, archiveId = 10-1, start = 00000002000000000000000F", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-195423F, archiveId = 10-1, start = 000000020000000000000008, stop = 000000020000000000000008", + "P00 DETAIL: archive retention on backup 20200115-195438F, archiveId = 10-1, start = 000000020000000000000009, stop = 000000020000000000000009", + "P00 DETAIL: archive retention on backup 20200115-195438F_20200115-195500D, archiveId = 10-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", + "P00 DETAIL: archive retention on backup 20200115-195438F_20200115-195505D, archiveId = 10-1, start = 00000002000000000000000F", "P00 DETAIL: remove archive: archiveId = 10-1, start = 00000002000000000000000A, stop = 00000002000000000000000B", "P00 DETAIL: remove archive: archiveId = 10-1, start = 00000002000000000000000D, stop = 00000002000000000000000E", "P00 INFO: expire command end: completed successfully" @@ -1833,7 +1814,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035742F_20191212-035819I" + "20200115-195438F_20200115-195516I" ] } }, @@ -1842,7 +1823,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo \\", - " --set=20191212-035742F_20191212-035819I info" + " --set=20200115-195438F_20200115-195516I info" ], "highlight" : { "filter" : true, @@ -1861,7 +1842,7 @@ "output" : [ " [filtered 11 lines of output]", " repository size: 4.4MB, repository backup size: 1.8MB", - " backup reference list: 20191212-035742F, 20191212-035742F_20191212-035808D", + " backup reference list: 20200115-195438F, 20200115-195438F_20200115-195505D", " database list: postgres (12978), test1 (24576), test2 (24577)" ] } @@ -2092,7 +2073,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-12-12 03:58:49.528683+00" + "2020-01-15 19:55:44.606555+00" ] } }, @@ -2145,7 +2126,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:58:49.528683+00\" \\", + " --type=time \"--target=2020-01-15 19:55:44.606555+00\" \\", " --target-action=promote restore" ], "host" : "pg-primary", @@ -2189,9 +2170,9 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:58:51", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:55:46", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-12-12 03:58:49.528683+00'", + "recovery_target_time = '2020-01-15 19:55:44.606555+00'", "recovery_target_action = 'promote'" ] } @@ -2273,16 +2254,16 @@ "output" : [ " [filtered 2 lines of output]", "LOG: listening on Unix socket \"/var/run/postgresql/.s.PGSQL.5432\"", - "LOG: database system was interrupted; last known up at 2019-12-12 03:58:42 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:58:49.528683+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:55:38 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:55:44.606555+00", "LOG: restored log file \"00000004.history\" from archive", "LOG: restored log file \"000000040000000000000014\" from archive", " [filtered 2 lines of output]", "LOG: database system is ready to accept read only connections", "LOG: restored log file \"000000040000000000000015\" from archive", - "LOG: recovery stopping before commit of transaction 564, time 2019-12-12 03:58:49.875399+00", - "LOG: redo done at 0/15021298", - "LOG: last completed transaction was at log time 2019-12-12 03:58:49.155887+00", + "LOG: recovery stopping before commit of transaction 564, time 2020-01-15 19:55:44.934007+00", + "LOG: redo done at 0/15021280", + "LOG: last completed transaction was at log time 2020-01-15 19:55:44.259023+00", "LOG: selected new timeline ID: 5", "LOG: archive recovery complete", " [filtered 3 lines of output]" @@ -2334,7 +2315,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-035742F_20191212-035840D" + "20200115-195438F_20200115-195538D" ] } }, @@ -2369,7 +2350,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:58:49.528683+00\" --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:55:44.606555+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -2466,10 +2447,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 2 lines of output]", - "LOG: listening on Unix socket \"/var/run/postgresql/.s.PGSQL.5432\"", - "LOG: database system was interrupted; last known up at 2019-12-12 03:58:59 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:58:49.528683+00", + " [filtered 3 lines of output]", + "LOG: database system was interrupted; last known up at 2020-01-15 19:55:54 UTC", + "FATAL: the database system is starting up", + "LOG: starting point-in-time recovery to 2020-01-15 19:55:44.606555+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"000000050000000000000016\" from archive", "LOG: redo starts at 0/16000028", @@ -2490,7 +2471,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20191212-035742F_20191212-035840D" + "20200115-195438F_20200115-195538D" ] }, "host" : "pg-primary", @@ -2508,45 +2489,45 @@ " db (current)", " wal archive min/max (10-1): 000000020000000000000008/000000050000000000000016", "", - " full backup: 20191212-035726F", - " timestamp start/stop: 2019-12-12 03:57:26 / 2019-12-12 03:57:41", + " full backup: 20200115-195423F", + " timestamp start/stop: 2020-01-15 19:54:23 / 2020-01-15 19:54:36", " wal start/stop: 000000020000000000000008 / 000000020000000000000008", - " database size: 22.4MB, backup size: 22.4MB", + " database size: 22.5MB, backup size: 22.5MB", " repository size: 2.7MB, repository backup size: 2.7MB", "", - " full backup: 20191212-035742F", - " timestamp start/stop: 2019-12-12 03:57:42 / 2019-12-12 03:57:56", + " full backup: 20200115-195438F", + " timestamp start/stop: 2020-01-15 19:54:38 / 2020-01-15 19:54:51", " wal start/stop: 000000020000000000000009 / 000000020000000000000009", - " database size: 22.4MB, backup size: 22.4MB", + " database size: 22.5MB, backup size: 22.5MB", " repository size: 2.7MB, repository backup size: 2.7MB", "", - " diff backup: 20191212-035742F_20191212-035808D", - " timestamp start/stop: 2019-12-12 03:58:08 / 2019-12-12 03:58:11", + " diff backup: 20200115-195438F_20200115-195505D", + " timestamp start/stop: 2020-01-15 19:55:05 / 2020-01-15 19:55:07", " wal start/stop: 00000002000000000000000F / 00000002000000000000000F", - " database size: 22.4MB, backup size: 96.2KB", - " repository size: 2.7MB, repository backup size: 11.9KB", - " backup reference list: 20191212-035742F", + " database size: 22.5MB, backup size: 8.2KB", + " repository size: 2.7MB, repository backup size: 496B", + " backup reference list: 20200115-195438F", "", - " incr backup: 20191212-035742F_20191212-035819I", - " timestamp start/stop: 2019-12-12 03:58:19 / 2019-12-12 03:58:30", + " incr backup: 20200115-195438F_20200115-195516I", + " timestamp start/stop: 2020-01-15 19:55:16 / 2020-01-15 19:55:26", " wal start/stop: 000000030000000000000011 / 000000030000000000000011", - " database size: 37.0MB, backup size: 15.0MB", + " database size: 37MB, backup size: 15.1MB", " repository size: 4.4MB, repository backup size: 1.8MB", - " backup reference list: 20191212-035742F, 20191212-035742F_20191212-035808D", + " backup reference list: 20200115-195438F, 20200115-195438F_20200115-195505D", "", - " diff backup: 20191212-035742F_20191212-035840D", - " timestamp start/stop: 2019-12-12 03:58:40 / 2019-12-12 03:58:48", + " diff backup: 20200115-195438F_20200115-195538D", + " timestamp start/stop: 2020-01-15 19:55:38 / 2020-01-15 19:55:43", " wal start/stop: 000000040000000000000014 / 000000040000000000000014", - " database size: 29.7MB, backup size: 7.8MB", - " repository size: 3.5MB, repository backup size: 948.9KB", - " backup reference list: 20191212-035742F", + " database size: 29.8MB, backup size: 7.8MB", + " repository size: 3.5MB, repository backup size: 948KB", + " backup reference list: 20200115-195438F", "", - " incr backup: 20191212-035742F_20191212-035858I", - " timestamp start/stop: 2019-12-12 03:58:58 / 2019-12-12 03:59:02", + " incr backup: 20200115-195438F_20200115-195554I", + " timestamp start/stop: 2020-01-15 19:55:54 / 2020-01-15 19:55:55", " wal start/stop: 000000050000000000000016 / 000000050000000000000016", - " database size: 29.7MB, backup size: 2MB", + " database size: 29.8MB, backup size: 2.1MB", " repository size: 3.5MB, repository backup size: 218.5KB", - " backup reference list: 20191212-035742F, 20191212-035742F_20191212-035840D" + " backup reference list: 20200115-195438F, 20200115-195438F_20200115-195538D" ] } }, @@ -2568,8 +2549,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:58:49.528683+00\" \\", - " --set=20191212-035742F_20191212-035840D --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:55:44.606555+00\" \\", + " --set=20200115-195438F_20200115-195538D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -2668,16 +2649,16 @@ "output" : [ " [filtered 2 lines of output]", "LOG: listening on Unix socket \"/var/run/postgresql/.s.PGSQL.5432\"", - "LOG: database system was interrupted; last known up at 2019-12-12 03:58:42 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:58:49.528683+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:55:38 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:55:44.606555+00", "LOG: restored log file \"00000004.history\" from archive", "LOG: restored log file \"000000040000000000000014\" from archive", " [filtered 2 lines of output]", "LOG: database system is ready to accept read only connections", "LOG: restored log file \"000000040000000000000015\" from archive", - "LOG: recovery stopping before commit of transaction 564, time 2019-12-12 03:58:49.875399+00", - "LOG: redo done at 0/15021298", - "LOG: last completed transaction was at log time 2019-12-12 03:58:49.155887+00", + "LOG: recovery stopping before commit of transaction 564, time 2020-01-15 19:55:44.934007+00", + "LOG: redo done at 0/15021280", + "LOG: last completed transaction was at log time 2020-01-15 19:55:44.259023+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", " [filtered 5 lines of output]" @@ -2803,7 +2784,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 12, retries 0, closes 0", "P00 INFO: stanza-create command end: completed successfully" ] @@ -2831,17 +2812,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:59:20\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000070000000000000016, lsn = 0/16000028", " [filtered 1238 lines of output]", "P01 INFO: backup file /var/lib/postgresql/10/demo/base/1/12820 (0B, 100%)", "P02 INFO: backup file /var/lib/postgresql/10/demo/base/1/12815 (0B, 100%)", - "P00 INFO: full backup size = 29.7MB", + "P00 INFO: full backup size = 29.8MB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000070000000000000016, lsn = 0/160000F8", - " [filtered 6 lines of output]" + " [filtered 7 lines of output]" ] } }, @@ -2879,7 +2860,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -2905,7 +2886,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 15, retries 0, closes 0", "P00 INFO: stanza-delete command end: completed successfully" ] @@ -2955,7 +2936,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo apt-get install postgresql-client libxml2" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -2978,20 +2973,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo apt-get install perl" - ], - "cmd-extra" : "-y 2>&1", - "host" : "repository", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -3541,16 +3522,16 @@ " db (current)", " wal archive min/max (10-1): 00000008000000000000001C/00000008000000000000001E", "", - " full backup: 20191212-040024F", - " timestamp start/stop: 2019-12-12 04:00:24 / 2019-12-12 04:00:43", + " full backup: 20200115-195714F", + " timestamp start/stop: 2020-01-15 19:57:14 / 2020-01-15 19:57:32", " wal start/stop: 00000008000000000000001C / 00000008000000000000001C", - " database size: 29.7MB, backup size: 29.7MB", + " database size: 29.8MB, backup size: 29.8MB", " repository size: 3.5MB, repository backup size: 3.5MB", "", - " full backup: 20191212-040044F", - " timestamp start/stop: 2019-12-12 04:00:44 / 2019-12-12 04:00:52", + " full backup: 20200115-195735F", + " timestamp start/stop: 2020-01-15 19:57:35 / 2020-01-15 19:57:42", " wal start/stop: 00000008000000000000001E / 00000008000000000000001E", - " database size: 29.7MB, backup size: 29.7MB", + " database size: 29.8MB, backup size: 29.8MB", " repository size: 3.5MB, repository backup size: 3.5MB" ] } @@ -3574,7 +3555,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -3590,7 +3571,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for all stanzas" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for all stanzas", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -3644,7 +3626,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -3660,7 +3642,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for stanza demo" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for stanza demo", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -3695,7 +3678,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo apt-get install postgresql-client libxml2" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -3718,20 +3715,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo apt-get install perl" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-standby", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -3988,7 +3971,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 04:01:20", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:58:12", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" ] @@ -4097,7 +4080,7 @@ "output" : [ " [filtered 3 lines of output]", "LOG: listening on Unix socket \"/var/run/postgresql/.s.PGSQL.5432\"", - "LOG: database system was interrupted; last known up at 2019-12-12 04:00:46 UTC", + "LOG: database system was interrupted; last known up at 2020-01-15 19:57:36 UTC", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", "LOG: restored log file \"00000008000000000000001E\" from archive", @@ -4185,7 +4168,7 @@ "output" : [ " pg_switch_wal | current_timestamp ", "---------------+-------------------------------", - " 0/1F02B410 | 2019-12-12 04:01:29.752308+00", + " 0/1F02B428 | 2020-01-15 19:58:21.451558+00", "(1 row)" ] } @@ -4214,7 +4197,7 @@ "output" : [ " message | current_timestamp ", "----------------+-------------------------------", - " Important Data | 2019-12-12 04:01:35.100748+00", + " Important Data | 2020-01-15 19:58:26.192234+00", "(1 row)" ] } @@ -4240,7 +4223,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --stanza=demo", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --stanza=demo", "P00 INFO: switch wal not performed because this is a standby", "P00 INFO: check command end: completed successfully" ] @@ -4386,7 +4369,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 04:01:40", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:58:32", "primary_conninfo = 'host=172.17.0.4 port=5432 user=replicator'", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" @@ -4453,10 +4436,11 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 11 lines of output]", + " [filtered 10 lines of output]", + "LOG: database system is ready to accept read only connections", "LOG: restored log file \"00000008000000000000001F\" from archive", - "LOG: incomplete startup packet", - "LOG: started streaming WAL from primary at 0/20000000 on timeline 8" + "LOG: started streaming WAL from primary at 0/20000000 on timeline 8", + "LOG: incomplete startup packet" ] } }, @@ -4488,7 +4472,7 @@ "output" : [ " message | current_timestamp ", "----------------+-------------------------------", - " Important Data | 2019-12-12 04:01:47.401329+00", + " Important Data | 2020-01-15 19:58:39.163315+00", "(1 row)" ] } @@ -4515,9 +4499,9 @@ "type" : "exe", "value" : { "output" : [ - " message | current_timestamp ", - "----------------+------------------------------", - " Important Data | 2019-12-12 04:01:47.94884+00", + " message | current_timestamp ", + "----------------+-------------------------------", + " Important Data | 2020-01-15 19:58:39.762034+00", "(1 row)" ] } @@ -4748,8 +4732,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --stanza=demo", - "P00 INFO: WAL segment 000000080000000000000025 successfully archived to '/var/lib/pgbackrest/archive/demo/10-1/0000000800000000/000000080000000000000025-1b538948941b6a5d416143f7df224f50d595a678.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --stanza=demo", + "P00 INFO: WAL segment 000000080000000000000025 successfully archived to '/var/lib/pgbackrest/archive/demo/10-1/0000000800000000/000000080000000000000025-96007e68bb63ae212ad844f10cfe4a70c59229ac.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -4776,25 +4760,25 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/postgresql/10/demo/pg_wal] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/postgresql/10/demo/pg_wal] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000020", "P01 DETAIL: pushed WAL file '000000080000000000000020' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", + "P00 INFO: archive-push:async command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/postgresql/10/demo/pg_wal] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/postgresql/10/demo/pg_wal] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 4 WAL file(s) to archive: 000000080000000000000021...000000080000000000000024", "P01 DETAIL: pushed WAL file '000000080000000000000021' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000022' to the archive", + "P02 DETAIL: pushed WAL file '000000080000000000000022' to the archive", + "P02 DETAIL: pushed WAL file '000000080000000000000024' to the archive", "P01 DETAIL: pushed WAL file '000000080000000000000023' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000024' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", + "P00 INFO: archive-push:async command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/postgresql/10/demo/pg_wal] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/postgresql/10/demo/pg_wal] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000025", "P01 DETAIL: pushed WAL file '000000080000000000000025' to the archive", - "P00 INFO: archive-push-async command end: completed successfully" + "P00 INFO: archive-push:async command end: completed successfully" ] } }, @@ -4833,24 +4817,33 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get-async command begin 2.20: [00000008000000000000001E, 00000008000000000000001F, 000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-get:async command begin 2.21: [00000008000000000000001E, 00000008000000000000001F, 000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: get 8 WAL file(s) from archive: 00000008000000000000001E...000000080000000000000025", "P01 DETAIL: found 00000008000000000000001E in the archive", - "P01 DETAIL: found 00000008000000000000001F in the archive", "P01 DETAIL: unable to find 000000080000000000000020 in the archive", "P01 DETAIL: unable to find 000000080000000000000021 in the archive", - " [filtered 20 lines of output]", - "P00 INFO: archive-get-async command begin 2.20: [000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P01 DETAIL: unable to find 000000080000000000000022 in the archive", + "P02 DETAIL: found 00000008000000000000001F in the archive", + "P01 DETAIL: unable to find 000000080000000000000023 in the archive", + "P02 DETAIL: unable to find 000000080000000000000024 in the archive", + " [filtered 17 lines of output]", + "P00 INFO: archive-get:async command begin 2.21: [000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000020...000000080000000000000027", "P01 DETAIL: found 000000080000000000000020 in the archive", - "P01 DETAIL: found 000000080000000000000021 in the archive", + "P02 DETAIL: found 000000080000000000000021 in the archive", + "P02 DETAIL: found 000000080000000000000023 in the archive", "P01 DETAIL: found 000000080000000000000022 in the archive", - "P01 DETAIL: found 000000080000000000000023 in the archive", - "P01 DETAIL: found 000000080000000000000024 in the archive", - "P01 DETAIL: found 000000080000000000000025 in the archive", + "P01 DETAIL: unable to find 000000080000000000000025 in the archive", "P01 DETAIL: unable to find 000000080000000000000026 in the archive", "P01 DETAIL: unable to find 000000080000000000000027 in the archive", - " [filtered 13 lines of output]" + "P02 DETAIL: found 000000080000000000000024 in the archive", + "P00 INFO: archive-get:async command end: completed successfully", + "", + " [filtered 8 lines of output]", + "P02 DETAIL: unable to find 00000008000000000000002B in the archive", + "P02 DETAIL: unable to find 00000008000000000000002C in the archive", + "P01 DETAIL: found 000000080000000000000025 in the archive", + "P00 INFO: archive-get:async command end: completed successfully" ] } }, @@ -4932,23 +4925,20 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 04:02:06\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000080000000000000027, lsn = 0/27000028", "P00 INFO: wait for replay on the standby to reach 0/27000028", - "P00 INFO: replay on the standby reached 0/270000D0, checkpoint 0/27000060", - "P04 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2674 (368KB, 16%) checksum ec3fa8d8b32c54f0bb7c3cdf558e1e860d5ef8c4", - "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2608 (440KB, 35%) checksum 970df249ee84e1f96f807aaac470a6f5858db8de", - " [filtered 8 lines of output]", - "P04 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2662 (32KB, 86%) checksum d4786fbe0f592ebff29fe091a3ebf9fd8e3be7fe", - "P03 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2704 (40KB, 88%) checksum a4d276ca1a4d2678dac9165ab26c136fa4451dfb", - "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/global/pg_control (8KB, 88%) checksum 7747ad434babd83386a51fcaa4c00910302022df", - "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2610 (32KB, 90%) checksum b56f5ad2cff706d5cec9d8cd1c5ed92ff0790827", - "P03 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2608_fsm (24KB, 91%) checksum 991ade308598277f2664e226662ac305924b7ea9", - "P04 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2610_fsm (24KB, 92%) checksum 9dfc3898d2e06cf1bebb33c52ad4c7903829b9b4", - "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/pg_logical/replorigin_checkpoint (8B, 92%) checksum 347fc8f2df71bd4436e38bd1516ccd7ea0d46532", - "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1249_fsm (24KB, 93%) checksum dafa382fd45dce90cbe7628c262ebf0723d14fdb", - "P04 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/global/2676 (16KB, 94%) checksum 8c43b660f01c2f48cdf53176989f3c2376ee5e7a", - " [filtered 24 lines of output]" + "P00 INFO: replay on the standby reached 0/27000028", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1247 (72KB, 3%) checksum 4d90b4353e79891db4594351b64774f5fa729be3", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1249_vm (8KB, 3%) checksum 1547cbaad240ac8302b8a52fd354886f07c20812", + "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/global/pg_control (8KB, 3%) checksum 1b3eb6d5adaf03991adc14ec5e515a1d837856f3", + "P03 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1249 (392KB, 20%) checksum 1615ce8ab7a5da200b8f8e1ad6ec52e4eefdcf26", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1259 (88KB, 24%) checksum 3aff8efaa532e9ca40e5e7b3b9bd5aa99b056be6", + "P03 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/1259_vm (8KB, 24%) checksum ffb5a32f68e13babe90885374d85ac00ca3c116f", + "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/pg_logical/replorigin_checkpoint (8B, 25%) checksum 347fc8f2df71bd4436e38bd1516ccd7ea0d46532", + "P03 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2608_fsm (24KB, 26%) checksum 146d76dc3a7fec4e6b9a4870f10f39f1ad5bf020", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2608 (440KB, 45%) checksum 5fbc1fbf772082d39988d476190a2d68b4e3d044", + " [filtered 1247 lines of output]" ] } }, @@ -5223,7 +5213,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.20: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/postgresql/11/demo --pg2-path=/var/lib/postgresql/11/demo --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-upgrade command begin 2.21: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/postgresql/11/demo --pg2-path=/var/lib/postgresql/11/demo --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-upgrade command end: completed successfully" ] } @@ -5484,7 +5474,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir -p /build/pgbackrest-release-2.20" + "sudo mkdir -p /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -5497,7 +5487,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -5510,7 +5500,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -5523,7 +5513,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo chown -R vagrant /build/pgbackrest-release-2.20" + "sudo chown -R vagrant /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -5536,8 +5526,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo yum install build-essential gcc openssl-devel libxml2-devel \\", - " postgresql-devel perl-ExtUtils-Embed" + "sudo yum install make gcc postgresql-devel openssl-devel libxml2-devel" ], "cmd-extra" : "-y 2>&1", "host" : "build", @@ -5551,25 +5540,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "perl -V | grep USE_64_BIT_INT" - ], - "host" : "build", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - " USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "cd /build/pgbackrest-release-2.20/src && ./configure" + "cd /build/pgbackrest-release-2.21/src && ./configure" ], "host" : "build", "load-env" : true, @@ -5582,7 +5553,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "make -s -C /build/pgbackrest-release-2.20/src" + "make -s -C /build/pgbackrest-release-2.21/src" ], "host" : "build", "load-env" : true, @@ -5609,7 +5580,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -5632,21 +5617,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-parent perl-JSON \\", - " perl-Digest-SHA" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -5752,7 +5722,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - General help", + "pgBackRest 2.21 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -5896,7 +5866,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - 'backup' command - 'log-path' option help", + "pgBackRest 2.21 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -6134,7 +6104,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -6160,8 +6130,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", - "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/9.5-1/0000000100000000/000000010000000000000001-d2ba02c483c1a6ae227321978b6f44a67fef9a36.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/9.5-1/0000000100000000/000000010000000000000001-863f6e9cbaa5a4847e351531ae90211d2174f6c5.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -6188,17 +6158,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:39:05\": backup begins after the next regular checkpoint completes", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000010000000000000002, lsn = 0/2000028", " [filtered 851 lines of output]", "P01 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12216 (0B, 100%)", "P01 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12211 (0B, 100%)", - "P00 INFO: full backup size = 20.5MB", + "P00 INFO: full backup size = 20.6MB", "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000002, lsn = 0/2000130", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -6216,7 +6186,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-033905F" + "20200115-194532F" ] } }, @@ -6243,12 +6213,12 @@ "value" : { "output" : [ " [filtered 5 lines of output]", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/pg_log/postgresql.log (1010B, 97%) checksum de1c97627d2e1ef89a4bf41aafedb351af87de3c", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/backup_label (236B, 100%) checksum ddc30714dbd4618cf2df49256d6e92ff3df4f339", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/pg_log/postgresql.log (903B, 97%) checksum b4bfb747b1c0cb6f15a3364261f3b06c227ca6ba", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/backup_label (246B, 100%) checksum 52318bf85784c33002374b1dc67e1da1dc3c22fd", "P00 INFO: diff backup size = 9.1KB", "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F8", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -6280,18 +6250,18 @@ " db (current)", " wal archive min/max (9.5-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20191212-033905F", - " timestamp start/stop: 2019-12-12 03:39:05 / 2019-12-12 03:39:18", + " full backup: 20200115-194532F", + " timestamp start/stop: 2020-01-15 19:45:32 / 2020-01-15 19:45:45", " wal start/stop: 000000010000000000000002 / 000000010000000000000002", " database size: 20.6MB, backup size: 20.6MB", " repository size: 2.4MB, repository backup size: 2.4MB", "", - " diff backup: 20191212-033905F_20191212-033919D", - " timestamp start/stop: 2019-12-12 03:39:19 / 2019-12-12 03:39:23", + " diff backup: 20200115-194532F_20200115-194546D", + " timestamp start/stop: 2020-01-15 19:45:46 / 2020-01-15 19:45:49", " wal start/stop: 000000010000000000000003 / 000000010000000000000003", - " database size: 20.6MB, backup size: 9.2KB", + " database size: 20.6MB, backup size: 9.1KB", " repository size: 2.4MB, repository backup size: 768B", - " backup reference list: 20191212-033905F" + " backup reference list: 20200115-194532F" ] } }, @@ -6449,12 +6419,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", - "P00 INFO: last backup label = 20191212-033905F_20191212-033919D, version = 2.20", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:39:42\": backup begins after the next regular checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", + "P00 INFO: last backup label = 20200115-194532F_20200115-194546D, version = 2.21", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000005, lsn = 0/5000028", - "P00 WARN: a timeline switch has occurred since the last backup, enabling delta checksum", - " [filtered 10 lines of output]" + "P00 WARN: a timeline switch has occurred since the 20200115-194532F_20200115-194546D backup, enabling delta checksum", + " [filtered 11 lines of output]" ] } }, @@ -6510,12 +6480,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", - "P00 INFO: last backup label = 20191212-033905F_20191212-033942I, version = 2.20", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:39:48\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", + "P00 INFO: last backup label = 20200115-194532F_20200115-194609I, version = 2.21", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000006, lsn = 0/6000028", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 80%) checksum df0b1d967bb028077072d33112996c3269b64f62", - " [filtered 9 lines of output]" + "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 80%) checksum f69d7d7e5131c0287ecbebdadad6986dce2d5b74", + " [filtered 10 lines of output]" ] } }, @@ -6556,9 +6526,9 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:39:53\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000008, lsn = 0/8000028", - "P00 ERROR: [047]: unable to create path '/var/lib/pgbackrest/backup/demo/20191212-033905F_20191212-033953I': [13] Permission denied", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000020000000000000007, lsn = 0/7000028", + "P00 ERROR: [047]: unable to create path '/var/lib/pgbackrest/backup/demo/20200115-194532F_20200115-194617I': [13] Permission denied", "P00 INFO: backup command end: aborted with exception [047]" ] } @@ -6599,10 +6569,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", - "P00 INFO: last backup label = 20191212-033905F_20191212-033948I, version = 2.20", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:39:57\": backup begins after the requested immediate checkpoint completes", - "P00 ERROR: [057]: unable to execute query 'select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), pg_xlogfile_name(lsn), lsn::text, (select setting::int8 from pg_settings where name = 'wal_segment_size') * (select setting::int8 from pg_settings where name = 'wal_block_size') from pg_start_backup('pgBackRest backup started at 2019-12-12 03:39:57', true) as lsn': ERROR: a backup is already in progress", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", + "P00 INFO: last backup label = 20200115-194532F_20200115-194613I, version = 2.21", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", + "P00 ERROR: [057]: unable to execute query 'select lsn::text as lsn,", + " pg_catalog.pg_xlogfile_name(lsn)::text as wal_segment_name", + " from pg_catalog.pg_start_backup('pgBackRest backup started at ' || current_timestamp, true) as lsn': ERROR: a backup is already in progress", " HINT: Run pg_stop_backup() and try again.", "P00 INFO: backup command end: aborted with exception [057]" ] @@ -6661,14 +6633,13 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --stop-auto --type=incr", - "P00 INFO: last backup label = 20191212-033905F_20191212-033948I, version = 2.20", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --stop-auto --type=incr", + "P00 INFO: last backup label = 20200115-194532F_20200115-194613I, version = 2.21", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 WARN: the cluster is already in backup mode but no pgBackRest backup process is running. pg_stop_backup() will be called so a new backup can be started.", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:40:00\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000009, lsn = 0/9000028", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 74%) checksum 7b9fae92f1c84b069509cca540b0ec6906a31465", - " [filtered 9 lines of output]" + "P00 INFO: backup start archive = 000000020000000000000008, lsn = 0/8000028", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 77%) checksum 22698050883b4f379f12a1286f31c947015dd7c2", + " [filtered 10 lines of output]" ] } }, @@ -6813,7 +6784,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-12-12 03:40:04+00 | 000000020000000000000009", + " \"demo\" | 2020-01-15 19:46:26+00 | 000000020000000000000008", "(1 row)" ] } @@ -6860,7 +6831,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-033905F|remove archive" + "archive retention on backup 20200115-194532F|remove archive" ] }, "host" : "pg-primary", @@ -6871,10 +6842,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 860 lines of output]", + " [filtered 861 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-033905F, archiveId = 9.5-1, start = 000000010000000000000002", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-194532F, archiveId = 9.5-1, start = 000000010000000000000002", "P00 DETAIL: no archive to remove, archiveId = 9.5-1", "P00 INFO: expire command end: completed successfully" ] @@ -6894,7 +6865,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034008F" + "20200115-194630F" ] } }, @@ -6909,7 +6880,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20191212-033905F|archive retention on backup 20191212-034008F|remove archive" + "expire full backup set\\: 20200115-194532F|archive retention on backup 20200115-194630F|remove archive" ] }, "host" : "pg-primary", @@ -6920,12 +6891,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 860 lines of output]", + " [filtered 861 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire full backup set: 20191212-033905F, 20191212-033905F_20191212-033919D, 20191212-033905F_20191212-033942I, 20191212-033905F_20191212-033948I, 20191212-033905F_20191212-034000I", - "P00 INFO: remove expired backup 20191212-033905F_20191212-034000I", - "P00 INFO: remove expired backup 20191212-033905F_20191212-033948I", + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire full backup set: 20200115-194532F, 20200115-194532F_20200115-194546D, 20200115-194532F_20200115-194609I, 20200115-194532F_20200115-194613I, 20200115-194532F_20200115-194622I", + "P00 INFO: remove expired backup 20200115-194532F_20200115-194622I", + "P00 INFO: remove expired backup 20200115-194532F_20200115-194613I", " [filtered 3 lines of output]" ] } @@ -6989,7 +6960,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034022F_20191212-034037D" + "20200115-194643F_20200115-194659D" ] } }, @@ -7017,7 +6988,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20191212-034022F_20191212-034037D" + "expire diff backup set: 20200115-194643F_20200115-194659D" ] }, "host" : "pg-primary", @@ -7028,12 +6999,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 12 lines of output]", + " [filtered 13 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire diff backup set: 20191212-034022F_20191212-034037D, 20191212-034022F_20191212-034042I", - "P00 INFO: remove expired backup 20191212-034022F_20191212-034042I", - "P00 INFO: remove expired backup 20191212-034022F_20191212-034037D" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire diff backup set: 20200115-194643F_20200115-194659D, 20200115-194643F_20200115-194703I", + "P00 INFO: remove expired backup 20200115-194643F_20200115-194703I", + "P00 INFO: remove expired backup 20200115-194643F_20200115-194659D" ] } }, @@ -7083,7 +7054,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034022F_20191212-034047D" + "20200115-194643F_20200115-194707D" ] } }, @@ -7124,12 +7095,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 9 lines of output]", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000020000000000000013, lsn = 0/130000F8", - "P00 INFO: new backup label = 20191212-034022F_20191212-034054D", + " [filtered 10 lines of output]", + "P00 INFO: backup stop archive = 000000020000000000000011, lsn = 0/110000F8", + "P00 INFO: check archive for segment(s) 000000020000000000000011:000000020000000000000011", + "P00 INFO: new backup label = 20200115-194643F_20200115-194713D", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" ] } }, @@ -7147,7 +7118,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034022F_20191212-034054D" + "20200115-194643F_20200115-194713D" ] } }, @@ -7162,7 +7133,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-034022F_20191212-034047D|remove archive" + "archive retention on backup 20200115-194643F_20200115-194707D|remove archive" ] }, "host" : "pg-primary", @@ -7173,13 +7144,13 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-034008F, archiveId = 9.5-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", - "P00 DETAIL: archive retention on backup 20191212-034022F, archiveId = 9.5-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", - "P00 DETAIL: archive retention on backup 20191212-034022F_20191212-034047D, archiveId = 9.5-1, start = 000000020000000000000010, stop = 000000020000000000000010", - "P00 DETAIL: archive retention on backup 20191212-034022F_20191212-034054D, archiveId = 9.5-1, start = 000000020000000000000013", - "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 00000002000000000000000D, stop = 00000002000000000000000F", - "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 000000020000000000000011, stop = 000000020000000000000012", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-194630F, archiveId = 9.5-1, start = 00000002000000000000000A, stop = 00000002000000000000000A", + "P00 DETAIL: archive retention on backup 20200115-194643F, archiveId = 9.5-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", + "P00 DETAIL: archive retention on backup 20200115-194643F_20200115-194707D, archiveId = 9.5-1, start = 00000002000000000000000E, stop = 00000002000000000000000E", + "P00 DETAIL: archive retention on backup 20200115-194643F_20200115-194713D, archiveId = 9.5-1, start = 000000020000000000000011", + "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 00000002000000000000000C, stop = 00000002000000000000000D", + "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 00000002000000000000000F, stop = 000000020000000000000010", "P00 INFO: expire command end: completed successfully" ] } @@ -7392,7 +7363,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034022F_20191212-034108I" + "20200115-194643F_20200115-194725I" ] } }, @@ -7401,7 +7372,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo \\", - " --set=20191212-034022F_20191212-034108I info" + " --set=20200115-194643F_20200115-194725I info" ], "highlight" : { "filter" : true, @@ -7420,7 +7391,7 @@ "output" : [ " [filtered 11 lines of output]", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20191212-034022F, 20191212-034022F_20191212-034054D", + " backup reference list: 20200115-194643F, 20200115-194643F_20200115-194713D", " database list: postgres (12378), test1 (24576), test2 (24577)" ] } @@ -7651,7 +7622,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-12-12 03:41:39.8315+00" + "2020-01-15 19:47:56.250415+00" ] } }, @@ -7704,7 +7675,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:41:39.8315+00\" \\", + " --type=time \"--target=2020-01-15 19:47:56.250415+00\" \\", " --target-action=promote restore" ], "host" : "pg-primary", @@ -7748,9 +7719,9 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:41:42", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:47:58", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-12-12 03:41:39.8315+00'", + "recovery_target_time = '2020-01-15 19:47:56.250415+00'", "recovery_target_action = 'promote'" ] } @@ -7830,16 +7801,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:41:33 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:41:39.8315+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:47:48 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:47:56.250415+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000018\" from archive", - "LOG: redo starts at 0/18000028", - "LOG: consistent recovery state reached at 0/180000F8", - "LOG: restored log file \"000000040000000000000019\" from archive", - "LOG: recovery stopping before commit of transaction 630, time 2019-12-12 03:41:40.136691+00", - "LOG: redo done at 0/1901BD00", - "LOG: last completed transaction was at log time 2019-12-12 03:41:39.41974+00", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: redo starts at 0/16000028", + "LOG: consistent recovery state reached at 0/160000F8", + "LOG: restored log file \"000000040000000000000017\" from archive", + "LOG: recovery stopping before commit of transaction 630, time 2020-01-15 19:47:56.561722+00", + "LOG: redo done at 0/1701C030", + "LOG: last completed transaction was at log time 2020-01-15 19:47:55.944258+00", "LOG: selected new timeline ID: 5", "LOG: archive recovery complete", " [filtered 4 lines of output]" @@ -7891,7 +7862,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-034022F_20191212-034132D" + "20200115-194643F_20200115-194748D" ] } }, @@ -7926,7 +7897,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:41:39.8315+00\" --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:47:56.250415+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -8023,14 +7994,14 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:41:50 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:41:39.8315+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:48:06 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:47:56.250415+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"00000005000000000000001A\" from archive", - "LOG: redo starts at 0/1A000028", - "LOG: consistent recovery state reached at 0/1A0000F8", - "LOG: redo done at 0/1A0000F8", - "LOG: restored log file \"00000005000000000000001A\" from archive", + "LOG: restored log file \"000000050000000000000018\" from archive", + "LOG: redo starts at 0/18000028", + "LOG: consistent recovery state reached at 0/180000F8", + "LOG: redo done at 0/180000F8", + "LOG: restored log file \"000000050000000000000018\" from archive", " [filtered 8 lines of output]" ] } @@ -8045,7 +8016,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20191212-034022F_20191212-034132D" + "20200115-194643F_20200115-194748D" ] }, "host" : "pg-primary", @@ -8061,47 +8032,47 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.5-1): 00000002000000000000000B/00000005000000000000001A", + " wal archive min/max (9.5-1): 00000002000000000000000A/000000050000000000000018", "", - " full backup: 20191212-034008F", - " timestamp start/stop: 2019-12-12 03:40:08 / 2019-12-12 03:40:21", + " full backup: 20200115-194630F", + " timestamp start/stop: 2020-01-15 19:46:30 / 2020-01-15 19:46:42", + " wal start/stop: 00000002000000000000000A / 00000002000000000000000A", + " database size: 20.6MB, backup size: 20.6MB", + " repository size: 2.4MB, repository backup size: 2.4MB", + "", + " full backup: 20200115-194643F", + " timestamp start/stop: 2020-01-15 19:46:43 / 2020-01-15 19:46:57", " wal start/stop: 00000002000000000000000B / 00000002000000000000000B", " database size: 20.6MB, backup size: 20.6MB", " repository size: 2.4MB, repository backup size: 2.4MB", "", - " full backup: 20191212-034022F", - " timestamp start/stop: 2019-12-12 03:40:22 / 2019-12-12 03:40:35", - " wal start/stop: 00000002000000000000000C / 00000002000000000000000C", - " database size: 20.6MB, backup size: 20.6MB", - " repository size: 2.4MB, repository backup size: 2.4MB", + " diff backup: 20200115-194643F_20200115-194713D", + " timestamp start/stop: 2020-01-15 19:47:13 / 2020-01-15 19:47:16", + " wal start/stop: 000000020000000000000011 / 000000020000000000000011", + " database size: 20.6MB, backup size: 115.9KB", + " repository size: 2.4MB, repository backup size: 12.6KB", + " backup reference list: 20200115-194643F", "", - " diff backup: 20191212-034022F_20191212-034054D", - " timestamp start/stop: 2019-12-12 03:40:54 / 2019-12-12 03:40:58", - " wal start/stop: 000000020000000000000013 / 000000020000000000000013", - " database size: 20.6MB, backup size: 116.3KB", - " repository size: 2.4MB, repository backup size: 12.7KB", - " backup reference list: 20191212-034022F", - "", - " incr backup: 20191212-034022F_20191212-034108I", - " timestamp start/stop: 2019-12-12 03:41:08 / 2019-12-12 03:41:19", - " wal start/stop: 000000030000000000000015 / 000000030000000000000015", - " database size: 34.0MB, backup size: 13.5MB", + " incr backup: 20200115-194643F_20200115-194725I", + " timestamp start/stop: 2020-01-15 19:47:25 / 2020-01-15 19:47:36", + " wal start/stop: 000000030000000000000013 / 000000030000000000000013", + " database size: 33.9MB, backup size: 13.4MB", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20191212-034022F, 20191212-034022F_20191212-034054D", + " backup reference list: 20200115-194643F, 20200115-194643F_20200115-194713D", "", - " diff backup: 20191212-034022F_20191212-034132D", - " timestamp start/stop: 2019-12-12 03:41:32 / 2019-12-12 03:41:38", - " wal start/stop: 000000040000000000000018 / 000000040000000000000018", + " diff backup: 20200115-194643F_20200115-194748D", + " timestamp start/stop: 2020-01-15 19:47:48 / 2020-01-15 19:47:55", + " wal start/stop: 000000040000000000000016 / 000000040000000000000016", " database size: 27.3MB, backup size: 6.9MB", - " repository size: 3.2MB, repository backup size: 831.5KB", - " backup reference list: 20191212-034022F", + " repository size: 3.2MB, repository backup size: 831.4KB", + " backup reference list: 20200115-194643F", "", - " incr backup: 20191212-034022F_20191212-034149I", - " timestamp start/stop: 2019-12-12 03:41:49 / 2019-12-12 03:41:54", - " wal start/stop: 00000005000000000000001A / 00000005000000000000001A", + " incr backup: 20200115-194643F_20200115-194805I", + " timestamp start/stop: 2020-01-15 19:48:05 / 2020-01-15 19:48:08", + " wal start/stop: 000000050000000000000018 / 000000050000000000000018", " database size: 27.3MB, backup size: 2.0MB", - " repository size: 3.2MB, repository backup size: 210KB", - " backup reference list: 20191212-034022F, 20191212-034022F_20191212-034132D" + " repository size: 3.2MB, repository backup size: 210.0KB", + " backup reference list: 20200115-194643F, 20200115-194643F_20200115-194748D" ] } }, @@ -8123,8 +8094,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:41:39.8315+00\" \\", - " --set=20191212-034022F_20191212-034132D --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:47:56.250415+00\" \\", + " --set=20200115-194643F_20200115-194748D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -8221,16 +8192,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:41:33 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:41:39.8315+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:47:48 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:47:56.250415+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000018\" from archive", - "LOG: redo starts at 0/18000028", - "LOG: consistent recovery state reached at 0/180000F8", - "LOG: restored log file \"000000040000000000000019\" from archive", - "LOG: recovery stopping before commit of transaction 630, time 2019-12-12 03:41:40.136691+00", - "LOG: redo done at 0/1901BD00", - "LOG: last completed transaction was at log time 2019-12-12 03:41:39.41974+00", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: redo starts at 0/16000028", + "LOG: consistent recovery state reached at 0/160000F8", + "LOG: restored log file \"000000040000000000000017\" from archive", + "LOG: recovery stopping before commit of transaction 630, time 2020-01-15 19:47:56.561722+00", + "LOG: redo done at 0/1701C030", + "LOG: last completed transaction was at log time 2020-01-15 19:47:55.944258+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", " [filtered 6 lines of output]" @@ -8357,7 +8328,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 12, retries 0, closes 0", "P00 INFO: stanza-create command end: completed successfully" ] @@ -8385,17 +8356,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast --stop-auto", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast --stop-auto", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:42:14\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000007000000000000001A, lsn = 0/1A000028", + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000070000000000000018, lsn = 0/18000028", " [filtered 1119 lines of output]", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12216 (0B, 100%)", - "P02 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12211 (0B, 100%)", + "P02 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12216 (0B, 100%)", + "P03 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12211 (0B, 100%)", "P00 INFO: full backup size = 27.3MB", "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 00000007000000000000001A, lsn = 0/1A0000F8", - " [filtered 6 lines of output]" + "P00 INFO: backup stop archive = 000000070000000000000018, lsn = 0/180000F8", + " [filtered 7 lines of output]" ] } }, @@ -8433,7 +8404,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -8459,7 +8430,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 15, retries 0, closes 0", "P00 INFO: stanza-delete command end: completed successfully" ] @@ -8522,7 +8493,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -8545,21 +8530,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-parent perl-JSON \\", - " perl-Digest-SHA" - ], - "cmd-extra" : "-y 2>&1", - "host" : "repository", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -9107,17 +9077,17 @@ " cipher: none", "", " db (current)", - " wal archive min/max (9.5-1): 000000080000000000000021/000000080000000000000023", + " wal archive min/max (9.5-1): 00000008000000000000001E/00000008000000000000001F", "", - " full backup: 20191212-034413F", - " timestamp start/stop: 2019-12-12 03:44:13 / 2019-12-12 03:44:36", - " wal start/stop: 000000080000000000000021 / 000000080000000000000021", + " full backup: 20200115-194930F", + " timestamp start/stop: 2020-01-15 19:49:30 / 2020-01-15 19:49:47", + " wal start/stop: 00000008000000000000001E / 00000008000000000000001E", " database size: 27.3MB, backup size: 27.3MB", " repository size: 3.2MB, repository backup size: 3.2MB", "", - " full backup: 20191212-034437F", - " timestamp start/stop: 2019-12-12 03:44:37 / 2019-12-12 03:44:46", - " wal start/stop: 000000080000000000000023 / 000000080000000000000023", + " full backup: 20200115-194950F", + " timestamp start/stop: 2020-01-15 19:49:50 / 2020-01-15 19:49:57", + " wal start/stop: 00000008000000000000001F / 00000008000000000000001F", " database size: 27.3MB, backup size: 27.3MB", " repository size: 3.2MB, repository backup size: 3.2MB" ] @@ -9142,7 +9112,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -9158,7 +9128,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for all stanzas" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for all stanzas", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -9212,7 +9183,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -9228,7 +9199,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for stanza demo" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for stanza demo", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -9263,7 +9235,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -9286,21 +9272,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-parent perl-JSON \\", - " perl-Digest-SHA" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-standby", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -9557,7 +9528,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:46:04", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:50:23", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" ] @@ -9664,12 +9635,12 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:44:39 UTC", + "LOG: database system was interrupted; last known up at 2020-01-15 19:49:50 UTC", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", - "LOG: restored log file \"000000080000000000000023\" from archive", - "LOG: redo starts at 0/23000028", - "LOG: consistent recovery state reached at 0/230000F8", + "LOG: restored log file \"00000008000000000000001F\" from archive", + "LOG: redo starts at 0/1F000028", + "LOG: consistent recovery state reached at 0/1F000130", "LOG: database system is ready to accept read only connections" ] } @@ -9751,7 +9722,7 @@ "output" : [ " pg_switch_xlog | now ", "----------------+-------------------------------", - " 0/2401F788 | 2019-12-12 03:46:12.976461+00", + " 0/2001FA98 | 2020-01-15 19:50:31.444824+00", "(1 row)" ] } @@ -9780,7 +9751,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:46:13.959339+00", + " Important Data | 2020-01-15 19:50:32.426501+00", "(1 row)" ] } @@ -9806,7 +9777,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --stanza=demo", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --stanza=demo", "P00 INFO: switch wal not performed because this is a standby", "P00 INFO: check command end: completed successfully" ] @@ -9952,7 +9923,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:46:20", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:50:38", "primary_conninfo = 'host=172.17.0.4 port=5432 user=replicator'", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" @@ -10044,8 +10015,8 @@ "output" : [ " [filtered 6 lines of output]", "LOG: database system is ready to accept read only connections", - "LOG: restored log file \"000000080000000000000024\" from archive", - "LOG: started streaming WAL from primary at 0/25000000 on timeline 8" + "LOG: restored log file \"000000080000000000000020\" from archive", + "LOG: started streaming WAL from primary at 0/21000000 on timeline 8" ] } }, @@ -10077,7 +10048,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:46:27.758957+00", + " Important Data | 2020-01-15 19:50:46.034429+00", "(1 row)" ] } @@ -10106,7 +10077,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:46:28.279811+00", + " Important Data | 2020-01-15 19:50:46.557088+00", "(1 row)" ] } @@ -10337,8 +10308,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --stanza=demo", - "P00 INFO: WAL segment 00000008000000000000002A successfully archived to '/var/lib/pgbackrest/archive/demo/9.5-1/0000000800000000/00000008000000000000002A-acdb330e8eed0510e8b3236760eb562f05406206.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --stanza=demo", + "P00 INFO: WAL segment 000000080000000000000026 successfully archived to '/var/lib/pgbackrest/archive/demo/9.5-1/0000000800000000/000000080000000000000026-837f5894fc8b19890b033b734f346a4ac938987c.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -10365,25 +10336,20 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.5/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000025", - "P01 DETAIL: pushed WAL file '000000080000000000000025' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/pgsql/9.5/data/pg_xlog] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000021", + "P01 DETAIL: pushed WAL file '000000080000000000000021' to the archive", + "P00 INFO: archive-push:async command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.5/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: push 4 WAL file(s) to archive: 000000080000000000000026...000000080000000000000029", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/pgsql/9.5/data/pg_xlog] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: push 5 WAL file(s) to archive: 000000080000000000000022...000000080000000000000026", + "P01 DETAIL: pushed WAL file '000000080000000000000022' to the archive", + "P02 DETAIL: pushed WAL file '000000080000000000000023' to the archive", + "P01 DETAIL: pushed WAL file '000000080000000000000024' to the archive", + "P02 DETAIL: pushed WAL file '000000080000000000000025' to the archive", "P01 DETAIL: pushed WAL file '000000080000000000000026' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000027' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000028' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000029' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", - "", - "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.5/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: push 1 WAL file(s) to archive: 00000008000000000000002A", - "P01 DETAIL: pushed WAL file '00000008000000000000002A' to the archive", - "P00 INFO: archive-push-async command end: completed successfully" + "P00 INFO: archive-push:async command end: completed successfully" ] } }, @@ -10422,24 +10388,23 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get-async command begin 2.20: [000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000023...00000008000000000000002A", - "P01 DETAIL: found 000000080000000000000023 in the archive", - "P01 DETAIL: found 000000080000000000000024 in the archive", - "P01 DETAIL: unable to find 000000080000000000000025 in the archive", - "P01 DETAIL: unable to find 000000080000000000000026 in the archive", + "P00 INFO: archive-get:async command begin 2.21: [00000008000000000000001F, 000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: get 8 WAL file(s) from archive: 00000008000000000000001F...000000080000000000000026", + "P01 DETAIL: found 00000008000000000000001F in the archive", + "P02 DETAIL: found 000000080000000000000020 in the archive", + "P02 DETAIL: unable to find 000000080000000000000022 in the archive", + "P01 DETAIL: unable to find 000000080000000000000021 in the archive", " [filtered 20 lines of output]", - "P00 INFO: archive-get-async command begin 2.20: [000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000025...00000008000000000000002C", + "P00 INFO: archive-get:async command begin 2.21: [000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000021...000000080000000000000028", + "P01 DETAIL: found 000000080000000000000021 in the archive", + "P02 DETAIL: found 000000080000000000000022 in the archive", + "P01 DETAIL: found 000000080000000000000023 in the archive", + "P02 DETAIL: found 000000080000000000000024 in the archive", "P01 DETAIL: found 000000080000000000000025 in the archive", - "P01 DETAIL: found 000000080000000000000026 in the archive", - "P01 DETAIL: found 000000080000000000000027 in the archive", - "P01 DETAIL: found 000000080000000000000028 in the archive", - "P01 DETAIL: found 000000080000000000000029 in the archive", - "P01 DETAIL: found 00000008000000000000002A in the archive", - "P01 DETAIL: unable to find 00000008000000000000002B in the archive", - "P01 DETAIL: unable to find 00000008000000000000002C in the archive", - " [filtered 13 lines of output]" + "P02 DETAIL: found 000000080000000000000026 in the archive", + "P01 DETAIL: unable to find 000000080000000000000027 in the archive", + "P02 DETAIL: unable to find 000000080000000000000028 in the archive" ] } }, @@ -10521,24 +10486,22 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:46:47\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000008000000000000002C, lsn = 0/2C000028", - "P00 INFO: wait for replay on the standby to reach 0/2C000028", - "P00 INFO: replay on the standby reached 0/2C000350", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_log/postgresql.log (8.6KB, 0%) checksum 410f89678e79d3e8ce6607df8a9013c38c249b9e", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/global/pg_control (8KB, 0%) checksum 887a1e11c6897407d468fd785cb80f21a89f65dd", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2674 (360KB, 17%) checksum 2a1f10d237890054853ced03d367e7bea5ff9399", - "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249 (360KB, 34%) checksum 3d7b48da25cb6ebfc9daf505cfbde20a5d7e2a7d", - "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2608 (432KB, 53%) checksum 6ba4e484e45e7469c7fc11a6b37dff70e90ef525", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_hba.conf (4.1KB, 54%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", - "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1259 (104KB, 58%) checksum 22e0b2ea6d4a05403bb5b461d6cba5d3464c43d0", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2673 (320KB, 73%) checksum 6fc73fd4ee4dd4d19ce1a983305f6af0e42d8c7b", - "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2658 (112KB, 78%) checksum 112bcfdb44b4b8c84d4c69669ec2d0e8da3c84b4", - "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2659 (72KB, 82%) checksum f0092ee8658eb9960a38cf398639b680a078d393", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/backup_label (238B, 82%) checksum 9b581f04ad1063aab93c763a715a9c5514a4d727", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1247 (72KB, 85%) checksum d02620221ff2e019b8dc0bb68d76ea720faad8e1", - "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2704 (40KB, 87%) checksum 7cc6bd995a3e4bb28c868792d6e5f6decb1850c8", - " [filtered 29 lines of output]" + "P00 INFO: execute exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000080000000000000028, lsn = 0/28000028", + "P00 INFO: wait for replay on the standby to reach 0/28000028", + "P00 INFO: replay on the standby reached 0/28000028", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/global/pg_control (8KB, 0%) checksum d34e907a75812b149e097c431126f87b4db97fe7", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249_fsm (24KB, 1%) checksum a58f5fa8b08f75ce3412d2c0c91ac10504cf5d4c", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_log/postgresql.log (7.2KB, 1%) checksum de42ea67589957eb331d535901be25840700c13d", + "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1247 (72KB, 5%) checksum 60a8a16a0826fa713f747aff180d19953ad39c30", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_hba.conf (4.2KB, 5%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249_vm (8KB, 5%) checksum b3cddbdca006f5cabafd82d549600818c51eadd9", + "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249 (360KB, 22%) checksum 9187d4acbae71eb7a94468c64530e79816a63021", + "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1259 (104KB, 27%) checksum 989f2275f99e637e696216fdd0906442594ef6f5", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/backup_label (248B, 27%) checksum ad9a3198d7b6026de2930f522b655967ada5b1ee", + "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2610 (24KB, 28%) checksum 63c3f349f9ac77442041302dcb33130731e443ac", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1259_vm (8KB, 28%) checksum 032f2daeb02fee9c1e83b979c3fc6206a8e1ec90", + " [filtered 1125 lines of output]" ] } }, @@ -10800,7 +10763,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.20: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/pgsql/9.6/data --pg2-path=/var/lib/pgsql/9.6/data --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-upgrade command begin 2.21: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/pgsql/9.6/data --pg2-path=/var/lib/pgsql/9.6/data --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-upgrade command end: completed successfully" ] } @@ -10837,7 +10800,7 @@ "type" : "exe", "value" : { "output" : [ - "postgresql-9.6 (pid 4876) is running..." + "postgresql-9.6 (pid 4821) is running..." ] } }, @@ -11064,7 +11027,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir -p /build/pgbackrest-release-2.20" + "sudo mkdir -p /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -11077,7 +11040,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/libc /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -11090,7 +11053,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.20" + "sudo cp -r /pgbackrest/src /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -11103,7 +11066,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo chown -R vagrant /build/pgbackrest-release-2.20" + "sudo chown -R vagrant /build/pgbackrest-release-2.21" ], "host" : "build", "load-env" : true, @@ -11116,8 +11079,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo yum install build-essential gcc make openssl-devel libxml2-devel \\", - " postgresql-devel perl-ExtUtils-Embed" + "sudo yum install make gcc postgresql-devel openssl-devel libxml2-devel" ], "cmd-extra" : "-y 2>&1", "host" : "build", @@ -11131,25 +11093,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "perl -V | grep USE_64_BIT_INT" - ], - "host" : "build", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - " USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "cd /build/pgbackrest-release-2.20/src && ./configure" + "cd /build/pgbackrest-release-2.21/src && ./configure" ], "host" : "build", "load-env" : true, @@ -11162,7 +11106,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "make -s -C /build/pgbackrest-release-2.20/src" + "make -s -C /build/pgbackrest-release-2.21/src" ], "host" : "build", "load-env" : true, @@ -11189,7 +11133,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -11212,20 +11170,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-Digest-SHA perl-JSON-PP" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -11331,7 +11275,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - General help", + "pgBackRest 2.21 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -11475,7 +11419,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.20 - 'backup' command - 'log-path' option help", + "pgBackRest 2.21 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -11713,7 +11657,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -11739,8 +11683,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", - "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/9.6-1/0000000100000000/000000010000000000000001-b425fc2730fcb703cd031182f47e9856e2b311f1.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: WAL segment 000000010000000000000001 successfully archived to '/var/lib/pgbackrest/archive/demo/9.6-1/0000000100000000/000000010000000000000001-fb92bc12d312bfa9b6123110053534e07148574b.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -11767,17 +11711,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:25:33\": backup begins after the next regular checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000010000000000000002, lsn = 0/2000028", " [filtered 864 lines of output]", "P01 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12312 (0B, 100%)", "P01 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12307 (0B, 100%)", - "P00 INFO: full backup size = 20.9MB", + "P00 INFO: full backup size = 21.0MB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000002, lsn = 0/2000130", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -11795,7 +11739,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032533F" + "20200115-193806F" ] } }, @@ -11823,11 +11767,11 @@ "output" : [ " [filtered 3 lines of output]", "P00 INFO: backup start archive = 000000010000000000000003, lsn = 0/3000028", - "P01 INFO: backup file /var/lib/pgsql/9.6/data/global/pg_control (8KB, 100%) checksum 521a8e1cde54a6126b2e5b5a61ef78a0cbf87a95", + "P01 INFO: backup file /var/lib/pgsql/9.6/data/global/pg_control (8KB, 100%) checksum 06302ca07efb998c40e553cec2f37ac844c36a0a", "P00 INFO: diff backup size = 8KB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F8", - " [filtered 4 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -11859,18 +11803,18 @@ " db (current)", " wal archive min/max (9.6-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20191212-032533F", - " timestamp start/stop: 2019-12-12 03:25:33 / 2019-12-12 03:25:47", + " full backup: 20200115-193806F", + " timestamp start/stop: 2020-01-15 19:38:06 / 2020-01-15 19:38:18", " wal start/stop: 000000010000000000000002 / 000000010000000000000002", - " database size: 20.9MB, backup size: 20.9MB", + " database size: 21.0MB, backup size: 21.0MB", " repository size: 2.5MB, repository backup size: 2.5MB", "", - " diff backup: 20191212-032533F_20191212-032548D", - " timestamp start/stop: 2019-12-12 03:25:48 / 2019-12-12 03:25:52", + " diff backup: 20200115-193806F_20200115-193820D", + " timestamp start/stop: 2020-01-15 19:38:20 / 2020-01-15 19:38:23", " wal start/stop: 000000010000000000000003 / 000000010000000000000003", - " database size: 20.9MB, backup size: 8.2KB", - " repository size: 2.5MB, repository backup size: 421B", - " backup reference list: 20191212-032533F" + " database size: 21.0MB, backup size: 8.2KB", + " repository size: 2.5MB, repository backup size: 400B", + " backup reference list: 20200115-193806F" ] } }, @@ -11937,11 +11881,11 @@ "value" : { "output" : [ " [filtered 8 lines of output]", - "Dec 12 03:25:54 pg-primary systemd[1]: Starting PostgreSQL 9.6 database server...", - "Dec 12 03:25:54 pg-primary systemd[1]: postgresql-9.6.service: main process exited, code=exited, status=2/INVALIDARGUMENT", - "Dec 12 03:25:54 pg-primary systemd[1]: Failed to start PostgreSQL 9.6 database server.", - "Dec 12 03:25:54 pg-primary systemd[1]: Unit postgresql-9.6.service entered failed state.", - "Dec 12 03:25:54 pg-primary systemd[1]: postgresql-9.6.service failed." + "Jan 15 19:38:25 pg-primary systemd[1]: Starting PostgreSQL 9.6 database server...", + "Jan 15 19:38:25 pg-primary systemd[1]: postgresql-9.6.service: main process exited, code=exited, status=2/INVALIDARGUMENT", + "Jan 15 19:38:25 pg-primary systemd[1]: Failed to start PostgreSQL 9.6 database server.", + "Jan 15 19:38:25 pg-primary systemd[1]: Unit postgresql-9.6.service entered failed state.", + "Jan 15 19:38:25 pg-primary systemd[1]: postgresql-9.6.service failed." ] } }, @@ -12019,12 +11963,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", - "P00 INFO: last backup label = 20191212-032533F_20191212-032548D, version = 2.20", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:26:05\": backup begins after the next regular checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --type=incr", + "P00 INFO: last backup label = 20200115-193806F_20200115-193820D, version = 2.21", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the next regular checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000005, lsn = 0/5000028", - "P00 WARN: a timeline switch has occurred since the last backup, enabling delta checksum", - " [filtered 9 lines of output]" + "P00 WARN: a timeline switch has occurred since the 20200115-193806F_20200115-193820D backup, enabling delta checksum", + " [filtered 10 lines of output]" ] } }, @@ -12080,12 +12024,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", - "P00 INFO: last backup label = 20191212-032533F_20191212-032605I, version = 2.20", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:26:11\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo --start-fast --type=incr", + "P00 INFO: last backup label = 20200115-193806F_20200115-193837I, version = 2.21", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000020000000000000006, lsn = 0/6000028", - "P01 INFO: backup file /var/lib/pgsql/9.6/data/global/pg_control (8KB, 100%) checksum 1cc50b7aa4ddff7bc750d6caee556f7963696e85", - " [filtered 7 lines of output]" + "P01 INFO: backup file /var/lib/pgsql/9.6/data/global/pg_control (8KB, 100%) checksum dc820ba2ea24b098281ca002cee45322819b4a7d", + " [filtered 8 lines of output]" ] } }, @@ -12230,7 +12174,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-12-12 03:26:15+00 | 000000020000000000000006", + " \"demo\" | 2020-01-15 19:38:45+00 | 000000020000000000000006", "(1 row)" ] } @@ -12276,7 +12220,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-032533F|remove archive" + "archive retention on backup 20200115-193806F|remove archive" ] }, "host" : "pg-primary", @@ -12287,10 +12231,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 874 lines of output]", + " [filtered 875 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-032533F, archiveId = 9.6-1, start = 000000010000000000000002", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-193806F, archiveId = 9.6-1, start = 000000010000000000000002", "P00 DETAIL: no archive to remove, archiveId = 9.6-1", "P00 INFO: expire command end: completed successfully" ] @@ -12310,7 +12254,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032619F" + "20200115-193850F" ] } }, @@ -12325,7 +12269,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20191212-032533F|archive retention on backup 20191212-032619F|remove archive" + "expire full backup set\\: 20200115-193806F|archive retention on backup 20200115-193850F|remove archive" ] }, "host" : "pg-primary", @@ -12336,12 +12280,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 873 lines of output]", + " [filtered 874 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire full backup set: 20191212-032533F, 20191212-032533F_20191212-032548D, 20191212-032533F_20191212-032605I, 20191212-032533F_20191212-032611I", - "P00 INFO: remove expired backup 20191212-032533F_20191212-032611I", - "P00 INFO: remove expired backup 20191212-032533F_20191212-032605I", + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire full backup set: 20200115-193806F, 20200115-193806F_20200115-193820D, 20200115-193806F_20200115-193837I, 20200115-193806F_20200115-193843I", + "P00 INFO: remove expired backup 20200115-193806F_20200115-193843I", + "P00 INFO: remove expired backup 20200115-193806F_20200115-193837I", " [filtered 2 lines of output]" ] } @@ -12404,7 +12348,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032635F_20191212-032650D" + "20200115-193905F_20200115-193922D" ] } }, @@ -12432,7 +12376,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20191212-032635F_20191212-032650D" + "expire diff backup set: 20200115-193905F_20200115-193922D" ] }, "host" : "pg-primary", @@ -12443,12 +12387,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 9 lines of output]", + " [filtered 10 lines of output]", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", - "P00 INFO: expire diff backup set: 20191212-032635F_20191212-032650D, 20191212-032635F_20191212-032655I", - "P00 INFO: remove expired backup 20191212-032635F_20191212-032655I", - "P00 INFO: remove expired backup 20191212-032635F_20191212-032650D" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=demo", + "P00 INFO: expire diff backup set: 20200115-193905F_20200115-193922D, 20200115-193905F_20200115-193926I", + "P00 INFO: remove expired backup 20200115-193905F_20200115-193926I", + "P00 INFO: remove expired backup 20200115-193905F_20200115-193922D" ] } }, @@ -12497,7 +12441,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032635F_20191212-032700D" + "20200115-193905F_20200115-193929D" ] } }, @@ -12538,12 +12482,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 8 lines of output]", - "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000020000000000000011, lsn = 0/110000F8", - "P00 INFO: new backup label = 20191212-032635F_20191212-032706D", + " [filtered 9 lines of output]", + "P00 INFO: backup stop archive = 000000020000000000000012, lsn = 0/120000F8", + "P00 INFO: check archive for segment(s) 000000020000000000000012:000000020000000000000012", + "P00 INFO: new backup label = 20200115-193905F_20200115-193935D", "P00 INFO: backup command end: completed successfully", - "P00 INFO: expire command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" + "P00 INFO: expire command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo" ] } }, @@ -12561,7 +12505,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032635F_20191212-032706D" + "20200115-193905F_20200115-193935D" ] } }, @@ -12576,7 +12520,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20191212-032635F_20191212-032700D|remove archive" + "archive retention on backup 20200115-193905F_20200115-193929D|remove archive" ] }, "host" : "pg-primary", @@ -12587,14 +12531,14 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.20: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", - "P00 DETAIL: archive retention on backup 20191212-032619F, archiveId = 9.6-1, start = 000000020000000000000008, stop = 000000020000000000000008", - "P00 DETAIL: archive retention on backup 20191212-032635F, archiveId = 9.6-1, start = 00000002000000000000000A, stop = 00000002000000000000000A", - "P00 DETAIL: archive retention on backup 20191212-032635F_20191212-032700D, archiveId = 9.6-1, start = 00000002000000000000000E, stop = 00000002000000000000000E", - "P00 DETAIL: archive retention on backup 20191212-032635F_20191212-032706D, archiveId = 9.6-1, start = 000000020000000000000011", + "P00 INFO: expire command begin 2.21: --log-level-console=detail --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=2 --repo1-retention-full=2 --stanza=demo", + "P00 DETAIL: archive retention on backup 20200115-193850F, archiveId = 9.6-1, start = 000000020000000000000008, stop = 000000020000000000000008", + "P00 DETAIL: archive retention on backup 20200115-193905F, archiveId = 9.6-1, start = 00000002000000000000000A, stop = 00000002000000000000000A", + "P00 DETAIL: archive retention on backup 20200115-193905F_20200115-193929D, archiveId = 9.6-1, start = 00000002000000000000000E, stop = 00000002000000000000000E", + "P00 DETAIL: archive retention on backup 20200115-193905F_20200115-193935D, archiveId = 9.6-1, start = 000000020000000000000012", "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 000000020000000000000009, stop = 000000020000000000000009", "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 00000002000000000000000B, stop = 00000002000000000000000D", - "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 00000002000000000000000F, stop = 000000020000000000000010", + "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 00000002000000000000000F, stop = 000000020000000000000011", "P00 INFO: expire command end: completed successfully" ] } @@ -12640,7 +12584,7 @@ "P00 INFO: remove invalid files/links/paths from '/var/lib/pgsql/9.6/data'", "P00 DETAIL: remove invalid file '/var/lib/pgsql/9.6/data/backup_label.old'", "P00 DETAIL: remove invalid file '/var/lib/pgsql/9.6/data/base/12470/pg_internal.init'", - " [filtered 914 lines of output]" + " [filtered 915 lines of output]" ] } }, @@ -12807,7 +12751,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032635F_20191212-032715I" + "20200115-193905F_20200115-193945I" ] } }, @@ -12816,7 +12760,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo \\", - " --set=20191212-032635F_20191212-032715I info" + " --set=20200115-193905F_20200115-193945I info" ], "highlight" : { "filter" : true, @@ -12835,7 +12779,7 @@ "output" : [ " [filtered 11 lines of output]", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20191212-032635F, 20191212-032635F_20191212-032706D", + " backup reference list: 20200115-193905F, 20200115-193905F_20200115-193935D", " database list: postgres (12470), test1 (24576), test2 (24577)" ] } @@ -13066,7 +13010,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-12-12 03:27:44.205297+00" + "2020-01-15 19:40:12.062542+00" ] } }, @@ -13119,7 +13063,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:27:44.205297+00\" \\", + " --type=time \"--target=2020-01-15 19:40:12.062542+00\" \\", " --target-action=promote restore" ], "host" : "pg-primary", @@ -13163,9 +13107,9 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:27:45", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:40:13", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-12-12 03:27:44.205297+00'", + "recovery_target_time = '2020-01-15 19:40:12.062542+00'", "recovery_target_action = 'promote'" ] } @@ -13245,16 +13189,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:27:36 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:27:44.205297+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:40:05 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:40:12.062542+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000016\" from archive", - "LOG: redo starts at 0/16000028", - "LOG: consistent recovery state reached at 0/160000F8", "LOG: restored log file \"000000040000000000000017\" from archive", - "LOG: recovery stopping before commit of transaction 639, time 2019-12-12 03:27:44.531902+00", - "LOG: redo done at 0/17020398", - "LOG: last completed transaction was at log time 2019-12-12 03:27:43.891184+00", + "LOG: redo starts at 0/17000028", + "LOG: consistent recovery state reached at 0/170000F8", + "LOG: restored log file \"000000040000000000000018\" from archive", + "LOG: recovery stopping before commit of transaction 639, time 2020-01-15 19:40:12.370948+00", + "LOG: redo done at 0/18021120", + "LOG: last completed transaction was at log time 2020-01-15 19:40:11.749228+00", "LOG: selected new timeline ID: 5", "LOG: archive recovery complete", " [filtered 3 lines of output]" @@ -13306,7 +13250,7 @@ "type" : "exe", "value" : { "output" : [ - "20191212-032635F_20191212-032735D" + "20200115-193905F_20200115-194004D" ] } }, @@ -13341,7 +13285,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:27:44.205297+00\" --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:40:12.062542+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -13438,14 +13382,14 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:27:52 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:27:44.205297+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:40:19 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:40:12.062542+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"000000050000000000000018\" from archive", - "LOG: redo starts at 0/18000028", - "LOG: consistent recovery state reached at 0/180000F8", - "LOG: redo done at 0/180000F8", - "LOG: restored log file \"000000050000000000000018\" from archive", + "LOG: restored log file \"000000050000000000000019\" from archive", + "LOG: redo starts at 0/19000028", + "LOG: consistent recovery state reached at 0/190000F8", + "LOG: redo done at 0/190000F8", + "LOG: restored log file \"000000050000000000000019\" from archive", " [filtered 7 lines of output]" ] } @@ -13460,7 +13404,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20191212-032635F_20191212-032735D" + "20200115-193905F_20200115-194004D" ] }, "host" : "pg-primary", @@ -13476,47 +13420,47 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.6-1): 000000020000000000000008/000000050000000000000018", + " wal archive min/max (9.6-1): 000000020000000000000008/000000050000000000000019", "", - " full backup: 20191212-032619F", - " timestamp start/stop: 2019-12-12 03:26:19 / 2019-12-12 03:26:34", + " full backup: 20200115-193850F", + " timestamp start/stop: 2020-01-15 19:38:50 / 2020-01-15 19:39:03", " wal start/stop: 000000020000000000000008 / 000000020000000000000008", - " database size: 20.9MB, backup size: 20.9MB", + " database size: 21.0MB, backup size: 21.0MB", " repository size: 2.5MB, repository backup size: 2.5MB", "", - " full backup: 20191212-032635F", - " timestamp start/stop: 2019-12-12 03:26:35 / 2019-12-12 03:26:48", + " full backup: 20200115-193905F", + " timestamp start/stop: 2020-01-15 19:39:05 / 2020-01-15 19:39:19", " wal start/stop: 00000002000000000000000A / 00000002000000000000000A", - " database size: 20.9MB, backup size: 20.9MB", + " database size: 21.0MB, backup size: 21.0MB", " repository size: 2.5MB, repository backup size: 2.5MB", "", - " diff backup: 20191212-032635F_20191212-032706D", - " timestamp start/stop: 2019-12-12 03:27:06 / 2019-12-12 03:27:09", - " wal start/stop: 000000020000000000000011 / 000000020000000000000011", - " database size: 20.9MB, backup size: 97.6KB", + " diff backup: 20200115-193905F_20200115-193935D", + " timestamp start/stop: 2020-01-15 19:39:35 / 2020-01-15 19:39:38", + " wal start/stop: 000000020000000000000012 / 000000020000000000000012", + " database size: 21.0MB, backup size: 97.6KB", " repository size: 2.5MB, repository backup size: 11.8KB", - " backup reference list: 20191212-032635F", + " backup reference list: 20200115-193905F", "", - " incr backup: 20191212-032635F_20191212-032715I", - " timestamp start/stop: 2019-12-12 03:27:15 / 2019-12-12 03:27:26", - " wal start/stop: 000000030000000000000013 / 000000030000000000000013", - " database size: 34.5MB, backup size: 13.7MB", + " incr backup: 20200115-193905F_20200115-193945I", + " timestamp start/stop: 2020-01-15 19:39:45 / 2020-01-15 19:39:55", + " wal start/stop: 000000030000000000000014 / 000000030000000000000014", + " database size: 34.6MB, backup size: 13.7MB", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20191212-032635F, 20191212-032635F_20191212-032706D", + " backup reference list: 20200115-193905F, 20200115-193905F_20200115-193935D", "", - " diff backup: 20191212-032635F_20191212-032735D", - " timestamp start/stop: 2019-12-12 03:27:35 / 2019-12-12 03:27:43", - " wal start/stop: 000000040000000000000016 / 000000040000000000000016", + " diff backup: 20200115-193905F_20200115-194004D", + " timestamp start/stop: 2020-01-15 19:40:04 / 2020-01-15 19:40:10", + " wal start/stop: 000000040000000000000017 / 000000040000000000000017", " database size: 27.8MB, backup size: 7.0MB", - " repository size: 3.3MB, repository backup size: 846.6KB", - " backup reference list: 20191212-032635F", + " repository size: 3.3MB, repository backup size: 846.8KB", + " backup reference list: 20200115-193905F", "", - " incr backup: 20191212-032635F_20191212-032750I", - " timestamp start/stop: 2019-12-12 03:27:50 / 2019-12-12 03:27:55", - " wal start/stop: 000000050000000000000018 / 000000050000000000000018", - " database size: 27.7MB, backup size: 2MB", - " repository size: 3.3MB, repository backup size: 211.1KB", - " backup reference list: 20191212-032635F, 20191212-032635F_20191212-032735D" + " incr backup: 20200115-193905F_20200115-194019I", + " timestamp start/stop: 2020-01-15 19:40:19 / 2020-01-15 19:40:21", + " wal start/stop: 000000050000000000000019 / 000000050000000000000019", + " database size: 27.8MB, backup size: 2MB", + " repository size: 3.3MB, repository backup size: 211.4KB", + " backup reference list: 20200115-193905F, 20200115-193905F_20200115-194004D" ] } }, @@ -13538,8 +13482,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-12-12 03:27:44.205297+00\" \\", - " --set=20191212-032635F_20191212-032735D --target-action=promote restore" + " --type=time \"--target=2020-01-15 19:40:12.062542+00\" \\", + " --set=20200115-193905F_20200115-194004D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -13636,16 +13580,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:27:36 UTC", - "LOG: starting point-in-time recovery to 2019-12-12 03:27:44.205297+00", + "LOG: database system was interrupted; last known up at 2020-01-15 19:40:05 UTC", + "LOG: starting point-in-time recovery to 2020-01-15 19:40:12.062542+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000016\" from archive", - "LOG: redo starts at 0/16000028", - "LOG: consistent recovery state reached at 0/160000F8", "LOG: restored log file \"000000040000000000000017\" from archive", - "LOG: recovery stopping before commit of transaction 639, time 2019-12-12 03:27:44.531902+00", - "LOG: redo done at 0/17020398", - "LOG: last completed transaction was at log time 2019-12-12 03:27:43.891184+00", + "LOG: redo starts at 0/17000028", + "LOG: consistent recovery state reached at 0/170000F8", + "LOG: restored log file \"000000040000000000000018\" from archive", + "LOG: recovery stopping before commit of transaction 639, time 2020-01-15 19:40:12.370948+00", + "LOG: redo done at 0/18021120", + "LOG: last completed transaction was at log time 2020-01-15 19:40:11.749228+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", " [filtered 5 lines of output]" @@ -13771,7 +13715,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 12, retries 0, closes 0", "P00 INFO: stanza-create command end: completed successfully" ] @@ -13799,17 +13743,17 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast", + "P00 INFO: backup command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=4 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo --start-fast", "P00 WARN: no prior backup exists, incr backup has been changed to full", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:28:09\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000070000000000000018, lsn = 0/18000028", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000070000000000000019, lsn = 0/19000028", " [filtered 1136 lines of output]", - "P04 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12312 (0B, 100%)", - "P01 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12307 (0B, 100%)", - "P00 INFO: full backup size = 27.7MB", + "P01 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12312 (0B, 100%)", + "P02 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12307 (0B, 100%)", + "P00 INFO: full backup size = 27.8MB", "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000070000000000000018, lsn = 0/180000F8", - " [filtered 6 lines of output]" + "P00 INFO: backup stop archive = 000000070000000000000019, lsn = 0/190000F8", + " [filtered 7 lines of output]" ] } }, @@ -13847,7 +13791,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -13873,7 +13817,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.20: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.21: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.us-east-1.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --repo1-type=s3 --stanza=demo", "P00 INFO: http statistics: objects 2, sessions 2, requests 15, retries 0, closes 0", "P00 INFO: stanza-delete command end: completed successfully" ] @@ -13936,7 +13880,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -13959,20 +13917,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-Digest-SHA perl-JSON-PP" - ], - "cmd-extra" : "-y 2>&1", - "host" : "repository", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -14522,17 +14466,17 @@ " db (current)", " wal archive min/max (9.6-1): 00000008000000000000001F/000000080000000000000020", "", - " full backup: 20191212-032917F", - " timestamp start/stop: 2019-12-12 03:29:17 / 2019-12-12 03:29:35", + " full backup: 20200115-194134F", + " timestamp start/stop: 2020-01-15 19:41:34 / 2020-01-15 19:41:50", " wal start/stop: 00000008000000000000001F / 00000008000000000000001F", " database size: 27.8MB, backup size: 27.8MB", - " repository size: 3.2MB, repository backup size: 3.2MB", + " repository size: 3.3MB, repository backup size: 3.3MB", "", - " full backup: 20191212-032937F", - " timestamp start/stop: 2019-12-12 03:29:37 / 2019-12-12 03:29:46", + " full backup: 20200115-194153F", + " timestamp start/stop: 2020-01-15 19:41:53 / 2020-01-15 19:42:00", " wal start/stop: 000000080000000000000020 / 000000080000000000000020", " database size: 27.8MB, backup size: 27.8MB", - " repository size: 3.2MB, repository backup size: 3.2MB" + " repository size: 3.3MB, repository backup size: 3.3MB" ] } }, @@ -14555,7 +14499,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -14571,7 +14515,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for all stanzas" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for all stanzas", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -14625,7 +14570,7 @@ "cmd" : [ "sudo -u pgbackrest pgbackrest --stanza=demo backup" ], - "err-expect" : "62", + "err-expect" : "56", "highlight" : { "filter" : true, "filter-context" : 2, @@ -14641,7 +14586,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 ERROR: [062]: raised from remote process on 'pg-primary': stop file exists for stanza demo" + "P00 WARN: unable to check pg-1: [StopError] raised from remote-0 protocol on 'pg-primary': stop file exists for stanza demo", + "P00 ERROR: [056]: unable to find primary cluster - cannot proceed" ] } }, @@ -14676,7 +14622,21 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/build/pgbackrest-release-2.20/src/pgbackrest /usr/bin" + "sudo yum install postgresql-libs" + ], + "cmd-extra" : "-y 2>&1", + "host" : "build", + "load-env" : true, + "output" : false, + "run-as-user" : null + }, + "type" : "exe" + }, + { + "key" : { + "bash-wrap" : true, + "cmd" : [ + "sudo scp build:/build/pgbackrest-release-2.21/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -14699,20 +14659,6 @@ }, "type" : "exe" }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo yum install perl perl-Time-HiRes perl-Digest-SHA perl-JSON-PP" - ], - "cmd-extra" : "-y 2>&1", - "host" : "pg-standby", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, { "key" : { "bash-wrap" : true, @@ -14969,7 +14915,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:30:21", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:42:26", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" ] @@ -15076,7 +15022,7 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-12-12 03:29:38 UTC", + "LOG: database system was interrupted; last known up at 2020-01-15 19:41:53 UTC", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", "LOG: restored log file \"000000080000000000000020\" from archive", @@ -15163,7 +15109,7 @@ "output" : [ " pg_switch_xlog | now ", "----------------+-------------------------------", - " 0/21021938 | 2019-12-12 03:30:28.240104+00", + " 0/21022718 | 2020-01-15 19:42:33.370912+00", "(1 row)" ] } @@ -15192,7 +15138,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:30:30.370302+00", + " Important Data | 2020-01-15 19:42:35.645321+00", "(1 row)" ] } @@ -15218,7 +15164,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --stanza=demo", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --stanza=demo", "P00 INFO: switch wal not performed because this is a standby", "P00 INFO: check command end: completed successfully" ] @@ -15364,7 +15310,7 @@ "type" : "exe", "value" : { "output" : [ - "# Recovery settings generated by pgBackRest restore on 2019-12-12 03:30:35", + "# Recovery settings generated by pgBackRest restore on 2020-01-15 19:42:41", "primary_conninfo = 'host=172.17.0.4 port=5432 user=replicator'", "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", "standby_mode = 'on'" @@ -15489,7 +15435,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:30:41.879877+00", + " Important Data | 2020-01-15 19:42:47.840407+00", "(1 row)" ] } @@ -15518,7 +15464,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-12-12 03:30:42.203236+00", + " Important Data | 2020-01-15 19:42:48.354407+00", "(1 row)" ] } @@ -15749,8 +15695,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.20: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --stanza=demo", - "P00 INFO: WAL segment 000000080000000000000027 successfully archived to '/var/lib/pgbackrest/archive/demo/9.6-1/0000000800000000/000000080000000000000027-4a551974eb563e3dd61896508142fa8eae80468e.gz'", + "P00 INFO: check command begin 2.21: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --stanza=demo", + "P00 INFO: WAL segment 000000080000000000000027 successfully archived to '/var/lib/pgbackrest/archive/demo/9.6-1/0000000800000000/000000080000000000000027-1b98bfacefe3eb0b5363624b2ef4416dbb0bfcb1.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -15777,25 +15723,25 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.6/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/pgsql/9.6/data/pg_xlog] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000022", "P01 DETAIL: pushed WAL file '000000080000000000000022' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", + "P00 INFO: archive-push:async command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.6/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/pgsql/9.6/data/pg_xlog] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 4 WAL file(s) to archive: 000000080000000000000023...000000080000000000000026", "P01 DETAIL: pushed WAL file '000000080000000000000023' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000024' to the archive", + "P02 DETAIL: pushed WAL file '000000080000000000000024' to the archive", "P01 DETAIL: pushed WAL file '000000080000000000000025' to the archive", - "P01 DETAIL: pushed WAL file '000000080000000000000026' to the archive", - "P00 INFO: archive-push-async command end: completed successfully", + "P02 DETAIL: pushed WAL file '000000080000000000000026' to the archive", + "P00 INFO: archive-push:async command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push-async command begin 2.20: [/var/lib/pgsql/9.6/data/pg_xlog] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-push:async command begin 2.21: [/var/lib/pgsql/9.6/data/pg_xlog] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: push 1 WAL file(s) to archive: 000000080000000000000027", "P01 DETAIL: pushed WAL file '000000080000000000000027' to the archive", - "P00 INFO: archive-push-async command end: completed successfully" + "P00 INFO: archive-push:async command end: completed successfully" ] } }, @@ -15834,24 +15780,23 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get-async command begin 2.20: [000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-get:async command begin 2.21: [000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000020...000000080000000000000027", "P01 DETAIL: found 000000080000000000000020 in the archive", - "P01 DETAIL: found 000000080000000000000021 in the archive", + "P02 DETAIL: found 000000080000000000000021 in the archive", + "P02 DETAIL: unable to find 000000080000000000000023 in the archive", "P01 DETAIL: unable to find 000000080000000000000022 in the archive", - "P01 DETAIL: unable to find 000000080000000000000023 in the archive", " [filtered 20 lines of output]", - "P00 INFO: archive-get-async command begin 2.20: [000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029] --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-get:async command begin 2.21: [000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000022...000000080000000000000029", "P01 DETAIL: found 000000080000000000000022 in the archive", - "P01 DETAIL: found 000000080000000000000023 in the archive", + "P02 DETAIL: found 000000080000000000000023 in the archive", "P01 DETAIL: found 000000080000000000000024 in the archive", - "P01 DETAIL: found 000000080000000000000025 in the archive", + "P02 DETAIL: found 000000080000000000000025 in the archive", "P01 DETAIL: found 000000080000000000000026 in the archive", - "P01 DETAIL: found 000000080000000000000027 in the archive", + "P02 DETAIL: found 000000080000000000000027 in the archive", "P01 DETAIL: unable to find 000000080000000000000028 in the archive", - "P01 DETAIL: unable to find 000000080000000000000029 in the archive", - " [filtered 12 lines of output]" + "P02 DETAIL: unable to find 000000080000000000000029 in the archive" ] } }, @@ -15933,18 +15878,18 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-12-12 03:31:00\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup(): backup begins after the requested immediate checkpoint completes", "P00 INFO: backup start archive = 000000080000000000000029, lsn = 0/29000028", "P00 INFO: wait for replay on the standby to reach 0/29000028", - "P00 INFO: replay on the standby reached 0/290003C0, checkpoint 0/29000060", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/global/pg_control (8KB, 0%) checksum c296484bf45e692b07169e004f6988fac224357a", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_log/postgresql.log (5.6KB, 0%) checksum 9960ecc9a2e9e133b4b7271bb8f0670bb1a8e474", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1249 (360KB, 17%) checksum 1e1386987e39a37fc37dd0d874a94c2f1af99387", - "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/2674 (344KB, 33%) checksum 98f5089326d932f62ad6d695bbc2dc5401a81900", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_hba.conf (4.1KB, 33%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/2673 (304KB, 47%) checksum 96a4953ae02127c208dc45a4ea2a998658911e6d", - "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/2608 (440KB, 67%) checksum 7f38f711ed79db32fb96ebbda568c415e2a34d48", - " [filtered 36 lines of output]" + "P00 INFO: replay on the standby reached 0/29000028", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/global/pg_control (8KB, 0%) checksum fdea4c1f62170ee6465fe10f9d287d1e2d127572", + "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1247 (72KB, 3%) checksum b1052fbc6704e4e3e88eeb493bf4e58a05144075", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_log/postgresql.log (5.4KB, 3%) checksum e1fdda7065c51a133ad8b6bc2dc6bbb3c2ef1aa7", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1249_fsm (24KB, 5%) checksum 98bdb632d1f1ad812ef8d6670b509c8ed6e3cc5f", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_hba.conf (4.2KB, 5%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", + "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1249_vm (8KB, 5%) checksum 3dcbde6e789a3a29d6800584e73707f275946b37", + "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1249 (360KB, 22%) checksum e659043aab568e880df6e3bd3c1c2c6c5aee8bc9", + " [filtered 1147 lines of output]" ] } }, @@ -16206,7 +16151,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.20: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/pgsql/10/data --pg2-path=/var/lib/pgsql/10/data --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-upgrade command begin 2.21: --no-backup-standby --log-level-console=info --log-level-stderr=off --no-log-timestamp --no-online --pg1-host=pg-primary --pg2-host=pg-standby --pg1-path=/var/lib/pgsql/10/data --pg2-path=/var/lib/pgsql/10/data --repo1-path=/var/lib/pgbackrest --stanza=demo", "P00 INFO: stanza-upgrade command end: completed successfully" ] } @@ -16240,20 +16185,20 @@ "output" : [ "● postgresql-10.service - PostgreSQL 10 database server", " Loaded: loaded (/usr/lib/systemd/system/postgresql-10.service; disabled; vendor preset: disabled)", - " Active: active (running) since Thu 2019-12-12 03:31:21 UTC; 343ms ago", + " Active: active (running) since Wed 2020-01-15 19:43:22 UTC; 313ms ago", " Docs: https://www.postgresql.org/docs/10/static/", - " Process: 3955 ExecStartPre=/usr/pgsql-10/bin/postgresql-10-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)", - " Main PID: 3960 (postmaster)", - " CGroup: /docker/3531eca8ec724f0ddd828503bd413377232ee1919a6df8debd79d9634406212f/system.slice/postgresql-10.service", - " ├─3960 /usr/pgsql-10/bin/postmaster -D /var/lib/pgsql/10/data/", - " ├─3961 postgres: logger process ", - " ├─3963 postgres: checkpointer process ", - " ├─3964 postgres: writer process ", - " ├─3965 postgres: wal writer process ", - " ├─3966 postgres: autovacuum launcher process ", - " ├─3967 postgres: archiver process ", - " ├─3968 postgres: stats collector process ", - " └─3969 postgres: bgworker: logical replication launcher " + " Process: 3900 ExecStartPre=/usr/pgsql-10/bin/postgresql-10-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)", + " Main PID: 3905 (postmaster)", + " CGroup: /docker/4c26194204dcf369847331b370135960c0c7b00e58250aa1b58635c1f042af5b/system.slice/postgresql-10.service", + " ├─3905 /usr/pgsql-10/bin/postmaster -D /var/lib/pgsql/10/data/", + " ├─3906 postgres: logger process ", + " ├─3908 postgres: checkpointer process ", + " ├─3909 postgres: writer process ", + " ├─3910 postgres: wal writer process ", + " ├─3911 postgres: autovacuum launcher process ", + " ├─3912 postgres: archiver process ", + " ├─3913 postgres: stats collector process ", + " └─3914 postgres: bgworker: logical replication launcher " ] } }, diff --git a/doc/resource/git-history.cache b/doc/resource/git-history.cache index 8c5247b9b..67c93f202 100644 --- a/doc/resource/git-history.cache +++ b/doc/resource/git-history.cache @@ -1,4 +1,277 @@ [ + { + "commit": "8d3710b2fe94c90783374d19a435bded1903fe1b", + "date": "2020-01-15 12:24:58 -0700", + "subject": "Fix options being ignored by asynchronous commands.", + "body": "The local, remote, archive-get-async, and archive-push-async commands were used to run functionality that was not directly available to the user. Unfortunately that meant they would not pick up options from the command that the user expected, e.g. backup, archive-get, etc.\n\nRemove the internal commands and add roles which allow pgBackRest to determine what functionality is required without implementing special commands. This way the options are loaded from the expected command section.\n\nSince remote is no longer a specific command with its own options, more manipulation is required when calling remote. This might be something we can improve in the config system but it may be worth leaving as is because it is a one-off, for now at least." + }, + { + "commit": "c43ec9d38c7cd543d7a832f1e362705658ca5c12", + "date": "2020-01-15 08:19:32 -0700", + "subject": "Fix function return logging type.", + "body": "This was working because the stack was being cleaned up by a try block at the call site." + }, + { + "commit": "f8a29c266e1e9b6e207fdd74478e3aca9b728cb9", + "date": "2020-01-13 20:36:42 -0700", + "subject": "Clarify comment." + }, + { + "commit": "a7738ebba3cfd3a732c5de997a113746136133af", + "date": "2020-01-13 13:21:28 -0700", + "subject": "Update comments in command/remote module." + }, + { + "commit": "a969a860abea7384572a1244913bcfbd8851545d", + "date": "2020-01-13 11:13:37 -0700", + "subject": "Fix misaligned braces." + }, + { + "commit": "fe263e87b1822b051ccea3fc0a8fea64f944dd7b", + "date": "2020-01-12 11:31:06 -0700", + "subject": "Allow path-style URIs in S3 driver.", + "body": "Although path-style URIs have been deprecated by AWS, they may still be used with products like Minio because no additional DNS configuration is required.\n\nPath-style URIs must be explicitly enabled since it is not clear how they can be auto-detected reliably. More importantly, faulty detection could cause regressions in current installations." + }, + { + "commit": "069345d33959eb7b2ff0f4ae2b2ec65023ac7186", + "date": "2020-01-12 11:00:10 -0700", + "subject": "Add string constants." + }, + { + "commit": "3f89ecf8d9b848c2ca063581bc75064d9d353255", + "date": "2020-01-10 09:39:33 -0700", + "subject": "Add time to storage ls JSON output.", + "body": "Time is supported in all drivers with the update to S3 at 61538f93, so it is now possible to add time to the ls command and have it work on all repo types." + }, + { + "commit": "0fe7bb2ec4d6ba10af8f2a6fd736e2c4cbdb2af2", + "date": "2020-01-09 12:20:13 -0700", + "subject": "Improve code that updates/removes pg options passed to a remote.", + "body": "The prior code was updating/removing hard-coded options but new options are added all the time and there was no indication that this code needed to be updated. For example, dc1e7ca2 added the pg-user option but this code was not updated.\n\nInstead find the options to update/remove dynamically. The new code uses prefixes, which is not perfect, but the patterns for pg options are pretty well established and this seems safer than the existing code." + }, + { + "commit": "4c8653fc8bc6e8b3070c59ba12af4e5f2131c21c", + "date": "2020-01-09 11:56:03 -0700", + "subject": "Update inaccurate comments." + }, + { + "commit": "2e11389ed4db29d530ec8e480134c44eab9a5896", + "date": "2020-01-09 11:52:51 -0700", + "subject": "Fix comment typo." + }, + { + "commit": "0c5c78e5e16b10f79dcfa023c6276a65ad87481d", + "date": "2020-01-09 09:23:15 -0700", + "subject": "Make quoting in cfgExeParam() optional.", + "body": "Parameter lists that are passed directly to exec*() do not need quoting when spaces are present. Worse, the quotes will not be stripped and the option value will be garbled.\n\nUnfortunately this still does not fix all issues with quoting since we don't know how it might need to be escaped to work with SSH command configuration. The answer seems to be to pass the options in the protocol layer but that's beyond the scope of this commit." + }, + { + "commit": "7de5ce23ad387602125f478ceec2c834703080d5", + "date": "2020-01-08 18:59:02 -0700", + "subject": "Add internal remote-type option.", + "body": "This option was overloaded on the general type option but it makes sense to split this out since the meaning is pretty different.\n\nRename the values to conform to current standards, i.e. pg and repo, now that the Perl code won't care anymore." + }, + { + "commit": "7a1871c341c2ae530927bcf018792733530fc417", + "date": "2020-01-08 09:54:44 -0700", + "subject": "Fix test log message to match pg-version parameter name.", + "body": "It was confusing that this part of the log message did not match the parameter name, which made reproducing test failures from CI a little harder." + }, + { + "commit": "8e1f78b4c82d3b4f7ecbdb053df1c8fd46bf3c1e", + "date": "2020-01-07 12:20:51 -0700", + "subject": "Remove obsolete Perl code missed in f0ef73db." + }, + { + "commit": "a84ae6be04fc21c52c04284004836292089fa0e1", + "date": "2020-01-06 16:16:48 -0700", + "subject": "Fix comment typos." + }, + { + "commit": "61538f932c58c3bb0afad5b6c16cf997604e3606", + "date": "2020-01-06 15:53:53 -0700", + "subject": "Parse dates in storageS3InfoList() and storageS3Info().", + "body": "Previously dates were not being filled by these functions which was fine since dates were not used.\n\nWe plan to use dates for the ls command plus it makes sense for the driver to be complete since it will be used as an example." + }, + { + "commit": "d2fb4f977ceba499f134ad363ea3170f0d9ef5b9", + "date": "2020-01-06 15:24:49 -0700", + "subject": "Add httpLastModifiedToTime() to parse HTTP last-modified header." + }, + { + "commit": "a08298ce1b9ee96a9f84b613848327f7f60eb063", + "date": "2020-01-06 15:18:52 -0700", + "subject": "Add basic time management functions.", + "body": "These are similar to what mktime() and strptime() do but they ignore the local system timezone which saves having to munge the TZ env variable to do time conversions." + }, + { + "commit": "fc47907fe32560e8d3086287023d6f727027a0a1", + "date": "2020-01-03 09:32:52 -0700", + "subject": "Update LICENSE.txt for 2020." + }, + { + "commit": "011bcb48697ddb56fe1396502a36254718f74dfa", + "date": "2019-12-29 21:22:18 -0700", + "subject": "Remove command option from Perl db application name.", + "body": "The command option will be removed from the C code so it needs to be removed here as well.\n\nThis code is now used only for testing so it's not important that it be so precise." + }, + { + "commit": "33e328abbf5992caccc15ff42ca2dca14502c983", + "date": "2019-12-28 18:30:32 -0700", + "subject": "Remove unused LibC code.", + "body": "The code was made obsolete by the migration to C." + }, + { + "commit": "e72a9dd0d2b6aad58a5d845112631253382e20e2", + "date": "2019-12-28 13:37:03 -0700", + "subject": "Add error parameter to cfgCommandId().", + "body": "This allows commands to be checked for validity without generating an error." + }, + { + "commit": "d28837a300d4b585792c049dce25fd73387408b3", + "date": "2019-12-28 13:31:59 -0700", + "subject": "Remove obsolete function declaration." + }, + { + "commit": "d41eea685a732fa80d99d0af0fc52746e13d1152", + "date": "2019-12-26 18:08:27 -0700", + "subject": "Change meaning of TEST_RESULT_STR() macro.", + "body": "This macro was created before the String object existed so subsequent usage with String always included a lot of strPtr() wrapping.\n\nTEST_RESULT_STR_Z() had already been introduced but a wholesale replacement of TEST_RESULT_STR() was not done since the priority was on the C migration.\n\nUpdate all calls to (old) TEST_RESULT_STR() with one of the following variants: (new) TEST_RESULT_STR(), TEST_RESULT_STR_Z(), TEST_RESULT_Z(), TEST_RESULT_Z_STR()." + }, + { + "commit": "02d3918b3233276651fff443b7fcee3f325cf263", + "date": "2019-12-19 19:37:55 -0500", + "subject": "Remove duplicate header and extra linefeed." + }, + { + "commit": "74c3842595f49b81be341faf56f2343e9a5c60c8", + "date": "2019-12-19 16:25:46 -0500", + "subject": "Remove errant tabs and fix spacing." + }, + { + "commit": "7dfea6b71728bc4985021ce8eb993c1376344581", + "date": "2019-12-19 16:20:11 -0500", + "subject": "Remove errant tab." + }, + { + "commit": "dc1e7ca22dbdae2556513468433b0591d7cf5a44", + "date": "2019-12-19 11:26:38 -0500", + "subject": "Add pg-user option.", + "body": "Specifies the database user name when connecting to PostgreSQL.\n\nIf not specified pgBackRest will connect with the local OS user or PGUSER, which was the previous behavior." + }, + { + "commit": "9452084dd174925c554273eb2f8b224c89069123", + "date": "2019-12-17 23:32:39 -0500", + "subject": "Fix misspellings of libpq." + }, + { + "commit": "63a855e2f7108f54100b973e23e4bcf3005a1647", + "date": "2019-12-17 23:26:52 -0500", + "subject": "Fix misaligned continuation character." + }, + { + "commit": "2f7e139534de54fb19fa46edf7eeb7ecf00d8284", + "date": "2019-12-17 22:35:30 -0500", + "subject": "Error if option prefix and index total are not both defined.", + "body": "They are both required for indexed options." + }, + { + "commit": "d780d084b7b4ad0950bd35b905c778c3a47e8860", + "date": "2019-12-17 21:56:02 -0500", + "subject": "Add comments about increasing Vagrantfile disk size." + }, + { + "commit": "d89d9f1c52b9fc7bf4827d1b367da6e8520a79d2", + "date": "2019-12-17 21:47:19 -0500", + "subject": "Skip vagrant disksize option if no plugin.", + "body": "Previously, `vagrant up` would bail if no `vagrant-disksize` plugin was\ninstalled. This option is just a nice-to-have, so skip it rather than\nbailing." + }, + { + "commit": "ac35dcac39699b5ecae5f3d178cb837bac1446dc", + "date": "2019-12-17 21:28:40 -0500", + "subject": "Add note about symlink required for contributing documentation to build." + }, + { + "commit": "3394a5017091e57b0adc296b43ac00010a223c3d", + "date": "2019-12-17 21:25:54 -0500", + "subject": "Remove unused Perl library missed in f0ef73db." + }, + { + "commit": "620386f034fd97371c467bda4dc0d90f423bf663", + "date": "2019-12-17 20:14:45 -0500", + "subject": "Remove integration tests that are now covered in the unit tests.", + "body": "Most of these tests are just checking that errors are thrown when required. These are well covered in various unit tests.\n\nThe \"cannot resume\" tests are also well covered in the backup unit tests.\n\nFinally, config warnings are well covered in the config unit tests.\n\nThere is more to be done here, but this accounts for the low-hanging fruit." + }, + { + "commit": "977ec2e307c5487df9ed6fadebd486a92c75f269", + "date": "2019-12-17 15:23:07 -0500", + "subject": "Integration test improvements for disk and memory efficiency.", + "body": "Set log-level-file=off when more that one test will run. In this case is it impossible to see the logs anyway since they will be automatically cleaned up after the test. This improves performance pretty dramatically since trace-level logging is expensive. If a singe integration test is run then log-level-file is trace by default but can be changed with the --log-level-test-file option.\n\nReduce buffer-size to 64k to save memory during testing and allow more processes to run in parallel.\n\nUpdate log replacement rules so that these options can change without affecting expect logs." + }, + { + "commit": "ccea30b8d8970acf9c1826c5c988d819aabf2d0f", + "date": "2019-12-14 10:20:23 -0500", + "subject": "Increase memory in ramdisk for Travis CI testing.", + "body": "The co6 tests were occasionally running out of space so bump up the size of the ramdisk a bit to hopefully prevent this.\n\nA longer term solution would be to disable the trace-level file logs when running on Travis CI since they seem to be using most of the space." + }, + { + "commit": "6bd280f7bd667305317a7c825d913dac9719c475", + "date": "2019-12-14 09:53:50 -0500", + "subject": "Don't warn when stop-auto is enabled on PostgreSQL >= 9.6.", + "body": "PostgreSQL >= 9.6 uses non-exclusive backup which has implicit stop-auto since the backup will stop when the connection is terminated.\n\nThe warning was made more verbose in 1f2ce45e but this now seems like a bad idea since there are likely users with mixed version environments where stop-auto is enabled globally. There's no reason to fill their logs with warnings over a harmless option. If anything we should warn when stop-auto is explicitly set to false but this doesn't seem very important either.\n\nRevert to the prior behavior, which is to warn and reset when stop-auto is enabled on PostgreSQL < 9.3." + }, + { + "commit": "03849840b813fdfdc2e00874fa8e3bbe9ac95338", + "date": "2019-12-13 21:33:13 -0500", + "subject": "Fix handling of \\ in filenames.", + "body": "\\ was not being properly escaped when calculating the manifest checksum which prevented the manifest from loading.\n\nUse jsonFromStr() to properly quote and escape \\.\n\nSince instances of \\ in cluster filenames should be rare to nonexistent this does not seem likely to be a serious problem in the field." + }, + { + "commit": "f0ef73db7009cd6e08740d270a6ee7565efc9f8c", + "date": "2019-12-13 17:55:41 -0500", + "subject": "pgBackRest is now pure C.", + "body": "Remove embedded Perl from the distributed binary. This includes code, configure, Makefile, and packages. The distributed binary is now pure C.\n\nRemove storagePathEnforceSet() from the C Storage object which allowed Perl to write outside of the storage base directory. Update mock/all and real/all integration tests to use storageLocal() where they were violating this rule.\n\nRemove \"c\" option that allowed the remote to tell if it was being called from C or Perl.\n\nCode to convert options to JSON for passing to Perl (perl/config.c) has been moved to LibC since it is still required for Perl integration tests.\n\nUpdate build and installation instructions in the user guide.\n\nRemove all Perl unit tests.\n\nRemove obsolete Perl code. In particular this included all the Perl protocol code which required modifications to the Perl storage, manifest, and db objects that are still required for integration testing but only run locally. Any remaining Perl code is required for testing, documentation, or code generation.\n\nRename perlReq to binReq in define.yaml to indicate that the binary is required for a test. This had been the actual meaning for quite some time but the key was never renamed." + }, + { + "commit": "1f2ce45e6b613edfb628ac40fd2369c9455692ba", + "date": "2019-12-13 17:14:26 -0500", + "subject": "The backup command is implemented entirely in C.", + "body": "For the most part this is a direct migration of the Perl code into C except as noted below.\n\nA backup can now be initiated from a linked directory. The link will not be stored in the manifest or recreated on restore. If a link or directory does not already exist in the restore location then a directory will be created.\n\nThe logic for creating backup labels has been improved and it should no longer be possible to get a backup label earlier than the latest backup even with timezone changes or clock skew. This has never been an issue in the field that we know of, but we found it in testing.\n\nFor online backups all times are fetched from the PostgreSQL primary host (before only copy start was). This doesn't affect backup integrity but it does prevent clock skew between hosts affecting backup duration reporting.\n\nArchive copy now works as expected when the archive and backup have different compression settings, i.e. when one is compressed and the other is not. This was a long-standing bug in the Perl code.\n\nResume will now work even if hardlink settings have been changed." + }, + { + "commit": "e206093beb43981f11b532f05897c383f93d8f63", + "date": "2019-12-12 18:52:16 -0500", + "subject": "Allow end anchor to be excluded in backupRegExp().", + "body": "This is useful for matching files in the backup history directory which have characters after the backup label." + }, + { + "commit": "8acfb6adf410571464c956ad161ad3df227b73a5", + "date": "2019-12-12 16:43:34 -0500", + "subject": "Add pgLsnRangeToWalSegmentList() to convert lsn range to wal segments." + }, + { + "commit": "81295fd3889ce05829b6443aa29032ccffdfef3e", + "date": "2019-12-12 16:28:26 -0500", + "subject": "Move not found error into walSegmentFind().", + "body": "This error is also needed in backup so move it here to centralize it." + }, + { + "commit": "1378d9c58b05f2f45352df155463ab8cd55276a6", + "date": "2019-12-12 16:21:51 -0500", + "subject": "Fix bad arithmetic in pgLsnToWalSegment().", + "body": "/ takes precedence over & but the appropriate parens were not provided.\n\nBy some bad luck the tests worked either way, so add a new test that only works the correct way to prevent a regression." + }, + { + "commit": "676be2c77390587bb36c9d88bcf1a54d333ee0f3", + "date": "2019-12-12 16:11:09 -0500", + "subject": "Add pgWalPath() to return version-specific WAL path.", + "body": "Also update the manifest module to use the new function." + }, + { + "commit": "94cb9540f1c94746d78ae4efb16246b26daf79a0", + "date": "2019-12-12 09:05:10 -0500", + "subject": "Begin v2.21 development." + }, { "commit": "39fc2b7ad68d97cf5f23757e8a341428935621f4", "date": "2019-12-12 08:20:21 -0500", diff --git a/doc/xml/auto/metric-coverage-report.auto.xml b/doc/xml/auto/metric-coverage-report.auto.xml index 87b9cb230..9840c4420 100644 --- a/doc/xml/auto/metric-coverage-report.auto.xml +++ b/doc/xml/auto/metric-coverage-report.auto.xml @@ -8,8 +8,8 @@ command/archive 10/10 (100.0%) - 68/68 (100.0%) - 186/186 (100.0%) + 72/72 (100.0%) + 188/188 (100.0%) @@ -28,16 +28,16 @@ command/backup - 11/11 (100.0%) - 114/114 (100.0%) - 292/292 (100.0%) + 33/33 (100.0%) + 464/464 (100.0%) + 1085/1085 (100.0%) command/check 8/8 (100.0%) - 56/56 (100.0%) - 127/127 (100.0%) + 54/54 (100.0%) + 125/125 (100.0%) @@ -79,7 +79,7 @@ command/remote 1/1 (100.0%) 6/6 (100.0%) - 29/29 (100.0%) + 28/28 (100.0%) @@ -100,14 +100,14 @@ command/storage 3/3 (100.0%) 28/28 (100.0%) - 75/75 (100.0%) + 76/76 (100.0%) common - 146/146 (100.0%) - 470/470 (100.0%) - 1517/1517 (100.0%) + 151/151 (100.0%) + 490/490 (100.0%) + 1558/1558 (100.0%) @@ -147,9 +147,9 @@ common/io/http - 36/36 (100.0%) - 158/158 (100.0%) - 453/453 (100.0%) + 37/37 (100.0%) + 164/164 (100.0%) + 472/472 (100.0%) @@ -168,16 +168,16 @@ config - 98/98 (100.0%) - 546/546 (100.0%) - 1390/1390 (100.0%) + 101/101 (100.0%) + 590/590 (100.0%) + 1441/1441 (100.0%) db 27/27 (100.0%) - 98/98 (100.0%) - 366/366 (100.0%) + 100/100 (100.0%) + 367/367 (100.0%) @@ -187,32 +187,25 @@ 2303/2303 (100.0%) - - perl - 10/10 (100.0%) - 26/26 (100.0%) - 138/138 (100.0%) - - postgres - 35/35 (100.0%) - 108/108 (100.0%) - 389/389 (100.0%) + 37/37 (100.0%) + 122/122 (100.0%) + 426/426 (100.0%) protocol 66/66 (100.0%) - 168/168 (100.0%) - 791/791 (100.0%) + 182/182 (100.0%) + 810/810 (100.0%) storage - 68/68 (100.0%) - 196/196 (100.0%) - 789/789 (100.0%) + 67/67 (100.0%) + 194/194 (100.0%) + 781/781 (100.0%) @@ -238,14 +231,14 @@ storage/s3 - 28/28 (100.0%) - 120/120 (100.0%) - 587/587 (100.0%) + 29/29 (100.0%) + 126/126 (100.0%) + 599/599 (100.0%) TOTAL - 1196/1196 (100.0%) - 5301/5302 (99.98%) - 17693/17693 (100.0%) + 1219/1219 (100.0%) + 5731/5732 (99.98%) + 18520/18520 (100.0%) \ No newline at end of file diff --git a/doc/xml/release.xml b/doc/xml/release.xml index a5d8297e3..5ef92c841 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -12,7 +12,7 @@ - + diff --git a/lib/pgBackRest/Version.pm b/lib/pgBackRest/Version.pm index e60edb5b0..1c75c3bd3 100644 --- a/lib/pgBackRest/Version.pm +++ b/lib/pgBackRest/Version.pm @@ -39,7 +39,7 @@ push @EXPORT, qw(projectBin projectBinSet); # Defines the current version of the BackRest executable. The version number is used to track features but does not affect what # repositories or manifests can be read - that's the job of the format number. #----------------------------------------------------------------------------------------------------------------------------------- -use constant PROJECT_VERSION => '2.21dev'; +use constant PROJECT_VERSION => '2.21'; push @EXPORT, qw(PROJECT_VERSION); # Repository Format Number diff --git a/src/configure b/src/configure index 5ef32912f..fd38c1d10 100755 --- a/src/configure +++ b/src/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for pgBackRest 2.21dev. +# Generated by GNU Autoconf 2.69 for pgBackRest 2.21. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -576,8 +576,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='pgBackRest' PACKAGE_TARNAME='pgbackrest' -PACKAGE_VERSION='2.21dev' -PACKAGE_STRING='pgBackRest 2.21dev' +PACKAGE_VERSION='2.21' +PACKAGE_STRING='pgBackRest 2.21' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1199,7 +1199,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures pgBackRest 2.21dev to adapt to many kinds of systems. +\`configure' configures pgBackRest 2.21 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1261,7 +1261,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of pgBackRest 2.21dev:";; + short | recursive ) echo "Configuration of pgBackRest 2.21:";; esac cat <<\_ACEOF @@ -1348,7 +1348,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -pgBackRest configure 2.21dev +pgBackRest configure 2.21 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1449,7 +1449,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by pgBackRest $as_me 2.21dev, which was +It was created by pgBackRest $as_me 2.21, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3566,7 +3566,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by pgBackRest $as_me 2.21dev, which was +This file was extended by pgBackRest $as_me 2.21, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -3628,7 +3628,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -pgBackRest config.status 2.21dev +pgBackRest config.status 2.21 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/src/configure.ac b/src/configure.ac index b052ce31b..4e1d10568 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -1,6 +1,6 @@ # Initialize configuration AC_PREREQ([2.69]) -AC_INIT([pgBackRest], [2.21dev]) +AC_INIT([pgBackRest], [2.21]) AC_CONFIG_SRCDIR([version.h]) # Check compiler diff --git a/src/version.h b/src/version.h index b3cd7ea5d..f99a24aed 100644 --- a/src/version.h +++ b/src/version.h @@ -23,6 +23,6 @@ repository will be invalid unless migration functions are written. /*********************************************************************************************************************************** Software version. Currently this value is maintained in Version.pm and updated by test.pl. ***********************************************************************************************************************************/ -#define PROJECT_VERSION "2.21dev" +#define PROJECT_VERSION "2.21" #endif diff --git a/test/code-count/file-type.yaml b/test/code-count/file-type.yaml index 2cf3b5e8a..22b43f131 100644 --- a/test/code-count/file-type.yaml +++ b/test/code-count/file-type.yaml @@ -27,10 +27,6 @@ build/lib/pgBackRestBuild/Config/Data.pm: class: build type: perl -build/lib/pgBackRestBuild/Embed/Build.pm: - class: build - type: perl - build/lib/pgBackRestBuild/Error/Build.pm: class: build type: perl @@ -179,26 +175,14 @@ lib/pgBackRest/Archive/Info.pm: class: core type: perl -lib/pgBackRest/Backup/Backup.pm: - class: core - type: perl - lib/pgBackRest/Backup/Common.pm: class: core type: perl -lib/pgBackRest/Backup/File.pm: - class: core - type: perl - lib/pgBackRest/Backup/Info.pm: class: core type: perl -lib/pgBackRest/Common/Cipher.pm: - class: core - type: perl - lib/pgBackRest/Common/Exception.pm: class: core type: perl @@ -227,14 +211,6 @@ lib/pgBackRest/Common/Io/Handle.pm: class: core type: perl -lib/pgBackRest/Common/Io/Process.pm: - class: core - type: perl - -lib/pgBackRest/Common/Lock.pm: - class: core - type: perl - lib/pgBackRest/Common/Log.pm: class: core type: perl @@ -271,62 +247,14 @@ lib/pgBackRest/LibCAuto.pm: class: core/auto type: perl -lib/pgBackRest/Main.pm: - class: core - type: perl - lib/pgBackRest/Manifest.pm: class: core type: perl -lib/pgBackRest/Protocol/Base/Master.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Base/Minion.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Command/Master.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Command/Minion.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Helper.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Local/Master.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Local/Process.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Remote/Master.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Remote/Minion.pm: - class: core - type: perl - -lib/pgBackRest/Protocol/Storage/File.pm: - class: core - type: perl - lib/pgBackRest/Protocol/Storage/Helper.pm: class: core type: perl -lib/pgBackRest/Protocol/Storage/Remote.pm: - class: core - type: perl - lib/pgBackRest/Storage/Base.pm: class: core type: perl @@ -367,18 +295,6 @@ libc/build/lib/pgBackRestLibC/Build.pm: class: build type: perl -libc/xs/common/encode.xs: - class: core - type: xs - -libc/xs/common/encode.xsh: - class: core - type: c/h - -libc/xs/common/lock.xs: - class: core - type: xs - libc/xs/config/config.xs: class: core type: xs @@ -387,6 +303,10 @@ libc/xs/config/configTest.xs: class: core type: xs +libc/xs/config/configTest.xsh: + class: core + type: c/h + libc/xs/config/define.xs: class: core type: xs @@ -399,10 +319,6 @@ libc/xs/crypto/hash.xsh: class: core type: c/h -libc/xs/crypto/random.xs: - class: core - type: xs - libc/xs/postgres/client.xs: class: core type: xs @@ -503,6 +419,14 @@ src/command/archive/push/push.h: class: core type: c/h +src/command/backup/backup.c: + class: core + type: c + +src/command/backup/backup.h: + class: core + type: c/h + src/command/backup/common.c: class: core type: c @@ -1283,30 +1207,6 @@ src/main.c: class: core type: c -src/perl/config.c: - class: core - type: c - -src/perl/config.h: - class: core - type: c/h - -src/perl/embed.auto.c: - class: core/auto - type: c - -src/perl/exec.c: - class: core - type: c - -src/perl/exec.h: - class: core - type: c/h - -src/perl/libc.auto.c: - class: core/auto - type: c - src/postgres/client.c: class: core type: c @@ -1711,54 +1611,6 @@ test/lib/pgBackRestTest/Env/HostEnvTest.pm: class: test/harness type: perl -test/lib/pgBackRestTest/Module/Backup/BackupFileUnitPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Backup/BackupUnitPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Command/CommandArchiveCommonPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonEncodePerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonIniPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonIoBufferedPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonIoHandlePerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonIoProcessPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Common/CommonLogPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Info/InfoInfoArchivePerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Info/InfoInfoBackupPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Manifest/ManifestAllPerlTest.pm: - class: test/module - type: perl - test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm: class: test/module type: perl @@ -1783,26 +1635,10 @@ test/lib/pgBackRestTest/Module/Performance/PerformanceArchivePerlTest.pm: class: test/module type: perl -test/lib/pgBackRestTest/Module/Protocol/ProtocolCommonMinionPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Protocol/ProtocolHelperPerlTest.pm: - class: test/module - type: perl - test/lib/pgBackRestTest/Module/Real/RealAllTest.pm: class: test/module type: perl -test/lib/pgBackRestTest/Module/Storage/StorageHelperPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Storage/StoragePerlTest.pm: - class: test/module - type: perl - test/src/common/harnessConfig.c: class: test/harness type: c @@ -2123,14 +1959,6 @@ test/src/module/performance/typeTest.c: class: test/module type: c -test/src/module/perl/configTest.c: - class: test/module - type: c - -test/src/module/perl/execTest.c: - class: test/module - type: c - test/src/module/postgres/clientTest.c: class: test/module type: c