From 68d20edea6cbfc7b8b6db69633e08ac473821547 Mon Sep 17 00:00:00 2001 From: David Steele Date: Sun, 10 Mar 2019 18:56:00 +0200 Subject: [PATCH] v2.11: C Implementation of Archive Get MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug Fixes: * Fix possible truncated WAL segments when an error occurs mid-write. (Reported by blogh.) * Fix info command missing WAL min/max when stanza specified. (Fixed by Stefan Fercot.) * Fix non-compliant JSON for options passed from C to Perl. (Reported by Leo Khomenko.) Improvements: * The archive-get command is implemented entirely in C. * Enable socket keep-alive on older Perl versions. (Contributed by Marc Cousin.) * Error when parameters are passed to a command that does not accept parameters. (Suggested by Jason O'Donnell.) * Add hints when unable to find a WAL segment in the archive. (Suggested by Hans-Jürgen Schönig.) * Improve error when hostname cannot be found in a certificate. (Suggested by James Badger.) * Add additional options to backup.manifest for debugging purposes. (Contributed by blogh.) --- README.md | 4 +- doc/RELEASE.md | 7 +- doc/resource/exe.cache | 2740 ++++++++++++++------------------ doc/xml/release.xml | 2 +- lib/pgBackRest/Version.pm | 2 +- src/perl/embed.auto.c | 2 +- src/version.h | 2 +- test/code-count/file-type.yaml | 318 ++-- 8 files changed, 1413 insertions(+), 1664 deletions(-) diff --git a/README.md b/README.md index fcce14d00..e90dd4bd2 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.10](https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.10) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page. +pgBackRest [v2.11](https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.11) 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. @@ -90,7 +90,7 @@ pgBackRest includes support for versions down to 8.3, since older versions of Po pgBackRest strives to be easy to configure and operate: -- [User guide](http://www.pgbackrest.org/user-guide.html) for Debian & Ubuntu / PostgreSQL 9.4. +- [User guide](http://www.pgbackrest.org/user-guide.html) for Debian & Ubuntu / PostgreSQL 10. - [Command reference](http://www.pgbackrest.org/command.html) for command-line operations. diff --git a/doc/RELEASE.md b/doc/RELEASE.md index 988169cee..758c09e28 100644 --- a/doc/RELEASE.md +++ b/doc/RELEASE.md @@ -30,7 +30,8 @@ if (!$bTest) - Copy coverage report: ``` -cd doc/site +cd /doc/site +rm -rf coverage cp -r ../../test/coverage/c coverage ``` @@ -63,7 +64,7 @@ with: - In `doc/site/coverage` replace: ``` - all C unit + all.lcov ``` with: ``` @@ -72,6 +73,6 @@ with: - Switch to prior dir and copy coverage: ``` -doc/site/prior/X.XX +cd ../prior/X.XX cp -r ../../coverage . ``` diff --git a/doc/resource/exe.cache b/doc/resource/exe.cache index d8b1e9a36..63c2fb051 100644 --- a/doc/resource/exe.cache +++ b/doc/resource/exe.cache @@ -20,7 +20,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir /root/pgbackrest-release-2.10" + "sudo mkdir /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -33,7 +33,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -46,7 +46,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -104,7 +104,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo make -s -C /root/pgbackrest-release-2.10/src" + "sudo make -s -C /root/pgbackrest-release-2.11/src" ], "host" : "build", "load-env" : true, @@ -144,7 +144,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -286,7 +286,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - General help", + "pgBackRest 2.11 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -315,8 +315,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres /usr/lib/postgresql/9.4/bin/initdb \\", - " -D /var/lib/postgresql/9.4/demo -k -A peer" + "sudo -u postgres /usr/lib/postgresql/10/bin/initdb \\", + " -D /var/lib/postgresql/10/demo -k -A peer" ], "host" : "pg-primary", "load-env" : true, @@ -329,7 +329,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_createcluster 9.4 demo" + "sudo pg_createcluster 10 demo" ], "host" : "pg-primary", "load-env" : true, @@ -339,15 +339,15 @@ "type" : "exe", "value" : { "output" : [ - "Configuring already existing cluster (configuration: /etc/postgresql/9.4/demo, data: /var/lib/postgresql/9.4/demo, owner: 106:110)", - "Ver Cluster Port Status Owner Data directory Log file", - "9.4 demo 5432 down postgres /var/lib/postgresql/9.4/demo /var/log/postgresql/postgresql-9.4-demo.log" + "Configuring already existing cluster (configuration: /etc/postgresql/10/demo, data: /var/lib/postgresql/10/demo, owner: 106:110)", + "Ver Cluster Port Status Owner Data directory Log file", + "10 demo 5432 down postgres /var/lib/postgresql/10/demo /var/log/postgresql/postgresql-10-demo.log" ] } }, { "key" : { - "file" : "/etc/postgresql/9.4/demo/postgresql.conf", + "file" : "/etc/postgresql/10/demo/postgresql.conf", "host" : "pg-primary", "option" : { "listen_addresses" : { @@ -364,7 +364,7 @@ }, { "key" : { - "file" : "/etc/postgresql/9.4/demo/postgresql.conf", + "file" : "/etc/postgresql/10/demo/postgresql.conf", "host" : "pg-primary", "option" : { "log_line_prefix" : { @@ -387,7 +387,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.4/demo" + "value" : "/var/lib/postgresql/10/demo" } }, "global" : { @@ -404,7 +404,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo" + "pg1-path=/var/lib/postgresql/10/demo" ] } }, @@ -431,7 +431,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - 'backup' command - 'log-path' option help", + "pgBackRest 2.11 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -498,7 +498,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-path=/var/lib/pgbackrest" @@ -507,7 +507,7 @@ }, { "key" : { - "file" : "/etc/postgresql/9.4/demo/postgresql.conf", + "file" : "/etc/postgresql/10/demo/postgresql.conf", "host" : "pg-primary", "option" : { "archive_command" : { @@ -540,7 +540,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo restart" + "sudo pg_ctlcluster 10 demo restart" ], "host" : "pg-primary", "load-env" : true, @@ -578,7 +578,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -604,7 +604,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -634,7 +634,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -668,7 +668,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-create command begin 2.11: --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" ] } @@ -694,8 +694,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/var/lib/pgbackrest --stanza=demo", - "P00 INFO: WAL segment 000000010000000000000001 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000100000000/000000010000000000000001-5d6e42ba3648e6b292193f562ec9c6882ca955b1.gz'", + "P00 INFO: check command begin 2.11: --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 stored in the archive at '/var/lib/pgbackrest/archive/demo/10-1/0000000100000000/000000010000000000000001-f11824666a888d45ae82cd7086d253f91f660e23.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -722,16 +722,16 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/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.11: --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 exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:33:12\": backup begins after the next regular checkpoint completes", - "P00 INFO: backup start archive = 000000010000000000000003, lsn = 0/3000028", - " [filtered 754 lines of output]", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/base/1/11895 (0B, 100%)", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/base/1/11885 (0B, 100%)", - "P00 INFO: full backup size = 19.2MB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F0", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:11:48\": 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: 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]" ] } @@ -750,7 +750,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173312F" + "20190310-121148F" ] } }, @@ -777,11 +777,11 @@ "value" : { "output" : [ " [filtered 4 lines of output]", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB, 97%) checksum 2111c90651e68317ca1461a4b13b8513d049adcf", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 100%) checksum cdee6d4e0bd7bdeaa7fd70971378a635533e641d", - "P00 INFO: diff backup size = 8.2KB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000010000000000000004, lsn = 0/4000128", + "P01 INFO: backup file /var/lib/postgresql/10/demo/global/pg_control (8KB, 99%) checksum 40b1b49d010202c2752f6a39eb72e695d0025077", + "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]" ] } @@ -812,20 +812,20 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.4-1): 000000010000000000000003/000000010000000000000004", + " wal archive min/max (10-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20190209-173312F", - " timestamp start/stop: 2019-02-09 17:33:12 / 2019-02-09 17:33:23", + " full backup: 20190310-121148F", + " timestamp start/stop: 2019-03-10 12:11:48 / 2019-03-10 12:11:55", + " wal start/stop: 000000010000000000000002 / 000000010000000000000002", + " database size: 22.4MB, backup size: 22.4MB", + " repository size: 2.7MB, repository backup size: 2.7MB", + "", + " diff backup: 20190310-121148F_20190310-121156D", + " timestamp start/stop: 2019-03-10 12:11:56 / 2019-03-10 12:12:00", " wal start/stop: 000000010000000000000003 / 000000010000000000000003", - " database size: 19.2MB, backup size: 19.2MB", - " repository size: 2.3MB, repository backup size: 2.3MB", - "", - " diff backup: 20190209-173312F_20190209-173324D", - " timestamp start/stop: 2019-02-09 17:33:24 / 2019-02-09 17:33:28", - " wal start/stop: 000000010000000000000004 / 000000010000000000000004", - " database size: 19.2MB, backup size: 8.2KB", - " repository size: 2.3MB, repository backup size: 400B", - " backup reference list: 20190209-173312F" + " database size: 22.4MB, backup size: 8.2KB", + " repository size: 2.7MB, repository backup size: 517B", + " backup reference list: 20190310-121148F" ] } }, @@ -833,7 +833,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -846,7 +846,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres rm /var/lib/postgresql/9.4/demo/global/pg_control" + "sudo -u postgres rm /var/lib/postgresql/10/demo/global/pg_control" ], "host" : "pg-primary", "load-env" : true, @@ -859,7 +859,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "err-expect" : "1", "highlight" : { @@ -877,10 +877,11 @@ "type" : "exe", "value" : { "output" : [ - "The PostgreSQL server failed to start. Please check the log output:", + "Error: /usr/lib/postgresql/10/bin/pg_ctl /usr/lib/postgresql/10/bin/pg_ctl start -D /var/lib/postgresql/10/demo -l /var/log/postgresql/postgresql-10-demo.log -s -o -c config_file=\"/etc/postgresql/10/demo/postgresql.conf\" exited with status 1: ", "postgres: could not find the database system", - "Expected to find it in the directory \"/var/lib/postgresql/9.4/demo\",", - "but could not open file \"/var/lib/postgresql/9.4/demo/global/pg_control\": No such file or directory" + "Expected to find it in the directory \"/var/lib/postgresql/10/demo\",", + "but could not open file \"/var/lib/postgresql/10/demo/global/pg_control\": No such file or directory", + "Examine the log output." ] } }, @@ -888,7 +889,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres find /var/lib/postgresql/9.4/demo -mindepth 1 -delete" + "sudo -u postgres find /var/lib/postgresql/10/demo -mindepth 1 -delete" ], "host" : "pg-primary", "load-env" : true, @@ -914,7 +915,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -958,12 +959,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/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 = 20190209-173312F_20190209-173324D, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:33:42\": backup begins after the next regular checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000006, lsn = 0/6000028", + "P00 INFO: backup command begin 2.11: --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 = 20190310-121148F_20190310-121156D, version = 2.11", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:12:11\": 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]" + " [filtered 8 lines of output]" ] } }, @@ -983,7 +984,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -1019,164 +1020,11 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/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 = 20190209-173312F_20190209-173342I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:33:51\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000007, lsn = 0/7000028", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB, 97%) checksum f537ac010fc2bc61c43840715a635246ff5edc5f", - " [filtered 8 lines of output]" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo chmod 550 /var/lib/pgbackrest/backup/demo/" - ], - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "err-expect" : "47", - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "ERROR:" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:33:56\": 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/20190209-173312F_20190209-173356I': Permission denied", - "P00 INFO: backup command end: aborted with exception [047]" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo chmod 750 /var/lib/pgbackrest/backup/demo/" - ], - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "err-expect" : "57", - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "ERROR:" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/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 = 20190209-173312F_20190209-173351I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:33:59\": backup begins after the requested immediate checkpoint completes", - "P00 ERROR: [057]: ERROR: a backup is already in progress", - " HINT: Run pg_stop_backup() and try again.:", - " 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-02-09 17:33:59', true) as lsn" - ] - } - }, - { - "key" : { - "file" : "/etc/pgbackrest/pgbackrest.conf", - "host" : "pg-primary", - "option" : { - "global" : { - "stop-auto" : { - "value" : "y" - } - } - } - }, - "type" : "cfg-pgbackrest", - "value" : { - "config" : [ - "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", - "", - "[global]", - "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", - "repo1-cipher-type=aes-256-cbc", - "repo1-path=/var/lib/pgbackrest", - "repo1-retention-full=2", - "start-fast=y", - "stop-auto=y", - "", - "[global:archive-push]", - "compress-level=3" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "cluster is already in backup mode|backup begins after the requested immediate checkpoint completes" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --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 = 20190209-173312F_20190209-173351I, version = 2.10", - "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-02-09 17:34:01\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000009, lsn = 0/9000028", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB, 97%) checksum 04f12f415c5a39d57640d87ba8c4af7a32f7b2db", + "P00 INFO: backup command begin 2.11: --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 = 20190310-121148F_20190310-121211I, version = 2.11", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:12:18\": 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 b77df9e069b4e1854a865fdf0631e443edf09e3a", " [filtered 8 lines of output]" ] } @@ -1202,71 +1050,103 @@ " \"database\" : {", " \"id\" : 1", " },", - " \"id\" : \"9.4-1\",", - " \"max\" : \"000000020000000000000009\",", - " \"min\" : \"000000010000000000000003\"", + " \"id\" : \"10-1\",", + " \"max\" : \"000000020000000000000006\",", + " \"min\" : \"000000010000000000000002\"", " }", " ],", " \"backup\" : [", " {", " \"archive\" : {", + " \"start\" : \"000000010000000000000002\",", + " \"stop\" : \"000000010000000000000002\"", + " },", + " \"backrest\" : {", + " \"format\" : 5,", + " \"version\" : \"2.11\"", + " },", + " \"database\" : {", + " \"id\" : 1", + " },", + " \"info\" : {", + " \"delta\" : 23521617,", + " \"repository\" : {", + " \"delta\" : 2790309,", + " \"size\" : 2790309", + " },", + " \"size\" : 23521617", + " },", + " \"label\" : \"20190310-121148F\",", + " \"prior\" : null,", + " \"reference\" : null,", + " \"timestamp\" : {", + " \"start\" : 1552219908,", + " \"stop\" : 1552219915", + " },", + " \"type\" : \"full\"", + " },", + " {", + " \"archive\" : {", " \"start\" : \"000000010000000000000003\",", " \"stop\" : \"000000010000000000000003\"", " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 20162900,", + " \"delta\" : 8429,", " \"repository\" : {", - " \"delta\" : 2389232,", - " \"size\" : 2389232", + " \"delta\" : 517,", + " \"size\" : 2790309", " },", - " \"size\" : 20162900", + " \"size\" : 23521617", " },", - " \"label\" : \"20190209-173312F\",", - " \"prior\" : null,", - " \"reference\" : null,", + " \"label\" : \"20190310-121148F_20190310-121156D\",", + " \"prior\" : \"20190310-121148F\",", + " \"reference\" : [", + " \"20190310-121148F\"", + " ],", " \"timestamp\" : {", - " \"start\" : 1549733592,", - " \"stop\" : 1549733603", + " \"start\" : 1552219916,", + " \"stop\" : 1552219920", " },", - " \"type\" : \"full\"", + " \"type\" : \"diff\"", " },", " {", " \"archive\" : {", - " \"start\" : \"000000010000000000000004\",", - " \"stop\" : \"000000010000000000000004\"", + " \"start\" : \"000000020000000000000005\",", + " \"stop\" : \"000000020000000000000005\"", " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 8428,", + " \"delta\" : 8421,", " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2389232", + " \"delta\" : 469,", + " \"size\" : 2790309", " },", - " \"size\" : 20162900", + " \"size\" : 23521617", " },", - " \"label\" : \"20190209-173312F_20190209-173324D\",", - " \"prior\" : \"20190209-173312F\",", + " \"label\" : \"20190310-121148F_20190310-121211I\",", + " \"prior\" : \"20190310-121148F_20190310-121156D\",", " \"reference\" : [", - " \"20190209-173312F\"", + " \"20190310-121148F\",", + " \"20190310-121148F_20190310-121156D\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549733604,", - " \"stop\" : 1549733608", + " \"start\" : 1552219931,", + " \"stop\" : 1552219936", " },", - " \"type\" : \"diff\"", + " \"type\" : \"incr\"", " },", " {", " \"archive\" : {", @@ -1275,89 +1155,27 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 8428,", + " \"delta\" : 8429,", " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2389232", + " \"delta\" : 517,", + " \"size\" : 2790309", " },", - " \"size\" : 20162900", + " \"size\" : 23521617", " },", - " \"label\" : \"20190209-173312F_20190209-173342I\",", - " \"prior\" : \"20190209-173312F_20190209-173324D\",", + " \"label\" : \"20190310-121148F_20190310-121218I\",", + " \"prior\" : \"20190310-121148F_20190310-121211I\",", " \"reference\" : [", - " \"20190209-173312F\"", + " \"20190310-121148F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549733622,", - " \"stop\" : 1549733628", - " },", - " \"type\" : \"incr\"", - " },", - " {", - " \"archive\" : {", - " \"start\" : \"000000020000000000000007\",", - " \"stop\" : \"000000020000000000000007\"", - " },", - " \"backrest\" : {", - " \"format\" : 5,", - " \"version\" : \"2.10\"", - " },", - " \"database\" : {", - " \"id\" : 1", - " },", - " \"info\" : {", - " \"delta\" : 8428,", - " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2389232", - " },", - " \"size\" : 20162900", - " },", - " \"label\" : \"20190209-173312F_20190209-173351I\",", - " \"prior\" : \"20190209-173312F_20190209-173342I\",", - " \"reference\" : [", - " \"20190209-173312F\"", - " ],", - " \"timestamp\" : {", - " \"start\" : 1549733631,", - " \"stop\" : 1549733634", - " },", - " \"type\" : \"incr\"", - " },", - " {", - " \"archive\" : {", - " \"start\" : \"000000020000000000000009\",", - " \"stop\" : \"000000020000000000000009\"", - " },", - " \"backrest\" : {", - " \"format\" : 5,", - " \"version\" : \"2.10\"", - " },", - " \"database\" : {", - " \"id\" : 1", - " },", - " \"info\" : {", - " \"delta\" : 8428,", - " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2389232", - " },", - " \"size\" : 20162900", - " },", - " \"label\" : \"20190209-173312F_20190209-173401I\",", - " \"prior\" : \"20190209-173312F_20190209-173351I\",", - " \"reference\" : [", - " \"20190209-173312F\"", - " ],", - " \"timestamp\" : {", - " \"start\" : 1549733641,", - " \"stop\" : 1549733647", + " \"start\" : 1552219938,", + " \"stop\" : 1552219941", " },", " \"type\" : \"incr\"", " }", @@ -1366,8 +1184,8 @@ " \"db\" : [", " {", " \"id\" : 1,", - " \"system-id\" : 6656054950746378482,", - " \"version\" : \"9.4\"", + " \"system-id\" : 6666733617317675250,", + " \"version\" : \"10\"", " }", " ],", " \"name\" : \"demo\",", @@ -1521,7 +1339,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-02-09 17:34:07+00 | 000000020000000000000009", + " \"demo\" | 2019-03-10 12:12:21+00 | 000000020000000000000006", "(1 row)" ] } @@ -1555,7 +1373,7 @@ "type" : "exe", "value" : { "output" : [ - "1549733647" + "1552219941" ] } }, @@ -1574,7 +1392,7 @@ "type" : "exe", "value" : { "output" : [ - "null" + "\"000000020000000000000006\"" ] } }, @@ -1594,7 +1412,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -1602,7 +1420,6 @@ "repo1-path=/var/lib/pgbackrest", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -1620,7 +1437,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-173312F|remove archive" + "archive retention on backup 20190310-121148F|remove archive" ] }, "host" : "pg-primary", @@ -1631,11 +1448,11 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 763 lines of output]", + " [filtered 951 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 DETAIL: archive retention on backup 20190209-173312F, archiveId = 9.4-1, start = 000000010000000000000003", - "P00 DETAIL: no archive to remove, archiveId = 9.4-1", + "P00 DETAIL: archive retention on backup 20190310-121148F, archiveId = 10-1, start = 000000010000000000000002", + "P00 DETAIL: no archive to remove, archiveId = 10-1", "P00 INFO: expire command end: completed successfully" ] } @@ -1654,7 +1471,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173417F" + "20190310-121228F" ] } }, @@ -1669,7 +1486,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20190209-173312F|archive retention on backup 20190209-173417F|remove archive" + "expire full backup set\\: 20190310-121148F|archive retention on backup 20190310-121228F|remove archive" ] }, "host" : "pg-primary", @@ -1680,13 +1497,13 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 763 lines of output]", + " [filtered 950 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire full backup set: 20190209-173312F, 20190209-173312F_20190209-173324D, 20190209-173312F_20190209-173342I, 20190209-173312F_20190209-173351I, 20190209-173312F_20190209-173401I", - "P00 INFO: remove expired backup 20190209-173312F_20190209-173401I", - "P00 INFO: remove expired backup 20190209-173312F_20190209-173351I", - " [filtered 3 lines of output]" + "P00 INFO: expire full backup set: 20190310-121148F, 20190310-121148F_20190310-121156D, 20190310-121148F_20190310-121211I, 20190310-121148F_20190310-121218I", + "P00 INFO: remove expired backup 20190310-121148F_20190310-121218I", + "P00 INFO: remove expired backup 20190310-121148F_20190310-121211I", + " [filtered 2 lines of output]" ] } }, @@ -1706,7 +1523,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -1715,7 +1532,6 @@ "repo1-retention-diff=1", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -1749,7 +1565,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173426F_20190209-173438D" + "20190310-121237F_20190310-121245D" ] } }, @@ -1777,7 +1593,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20190209-173426F_20190209-173438D" + "expire diff backup set: 20190310-121237F_20190310-121245D" ] }, "host" : "pg-primary", @@ -1788,12 +1604,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 11 lines of output]", + " [filtered 10 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire diff backup set: 20190209-173426F_20190209-173438D, 20190209-173426F_20190209-173443I", - "P00 INFO: remove expired backup 20190209-173426F_20190209-173443I", - "P00 INFO: remove expired backup 20190209-173426F_20190209-173438D" + "P00 INFO: expire diff backup set: 20190310-121237F_20190310-121245D, 20190310-121237F_20190310-121250I", + "P00 INFO: remove expired backup 20190310-121237F_20190310-121250I", + "P00 INFO: remove expired backup 20190310-121237F_20190310-121245D" ] } }, @@ -1813,7 +1629,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -1822,7 +1638,6 @@ "repo1-retention-diff=2", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -1843,7 +1658,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173426F_20190209-173448D" + "20190310-121237F_20190310-121253D" ] } }, @@ -1852,8 +1667,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres psql -c \" \\", - " select pg_create_restore_point('generate WAL'); select pg_switch_xlog(); \\", - " select pg_create_restore_point('generate WAL'); select pg_switch_xlog();\"" + " select pg_create_restore_point('generate WAL'); select pg_switch_wal(); \\", + " select pg_create_restore_point('generate WAL'); select pg_switch_wal();\"" ], "host" : "pg-primary", "load-env" : true, @@ -1884,10 +1699,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 8 lines of output]", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000020000000000000014, lsn = 0/140000F0", - "P00 INFO: new backup label = 20190209-173426F_20190209-173455D", + " [filtered 7 lines of output]", + "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", + "P00 INFO: backup stop archive = 000000020000000000000010, lsn = 0/100000F8", + "P00 INFO: new backup label = 20190310-121237F_20190310-121259D", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin" ] @@ -1907,7 +1722,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173426F_20190209-173455D" + "20190310-121237F_20190310-121259D" ] } }, @@ -1922,7 +1737,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-173426F_20190209-173448D|remove archive" + "archive retention on backup 20190310-121237F_20190310-121253D|remove archive" ] }, "host" : "pg-primary", @@ -1933,13 +1748,14 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.10: --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 20190209-173417F, archiveId = 9.4-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", - "P00 DETAIL: archive retention on backup 20190209-173426F, archiveId = 9.4-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", - "P00 DETAIL: archive retention on backup 20190209-173426F_20190209-173448D, archiveId = 9.4-1, start = 000000020000000000000010, stop = 000000020000000000000010", - "P00 DETAIL: archive retention on backup 20190209-173426F_20190209-173455D, archiveId = 9.4-1, start = 000000020000000000000014", - "P00 DETAIL: remove archive: archiveId = 9.4-1, start = 00000002000000000000000D, stop = 00000002000000000000000F", - "P00 DETAIL: remove archive: archiveId = 9.4-1, start = 000000020000000000000011, stop = 000000020000000000000013", + "P00 INFO: expire command begin 2.11: --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 20190310-121228F, archiveId = 10-1, start = 000000020000000000000008, stop = 000000020000000000000008", + "P00 DETAIL: archive retention on backup 20190310-121237F, archiveId = 10-1, start = 00000002000000000000000A, stop = 00000002000000000000000A", + "P00 DETAIL: archive retention on backup 20190310-121237F_20190310-121253D, archiveId = 10-1, start = 00000002000000000000000D, stop = 00000002000000000000000D", + "P00 DETAIL: archive retention on backup 20190310-121237F_20190310-121259D, archiveId = 10-1, start = 000000020000000000000010", + "P00 DETAIL: remove archive: archiveId = 10-1, start = 000000020000000000000009, stop = 000000020000000000000009", + "P00 DETAIL: remove archive: archiveId = 10-1, start = 00000002000000000000000B, stop = 00000002000000000000000C", + "P00 DETAIL: remove archive: archiveId = 10-1, start = 00000002000000000000000E, stop = 00000002000000000000000F", "P00 INFO: expire command end: completed successfully" ] } @@ -1948,7 +1764,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -1979,15 +1795,15 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 692 lines of output]", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/base/12134/PG_VERSION - exists and matches backup (4B, 99%) checksum 8dbabb96e032b8d9f1993c0e4b9141e71ade01a1", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/base/1/PG_VERSION - exists and matches backup (4B, 99%) checksum 8dbabb96e032b8d9f1993c0e4b9141e71ade01a1", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/PG_VERSION - exists and matches backup (4B, 100%) checksum 8dbabb96e032b8d9f1993c0e4b9141e71ade01a1", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/global/12086 - exists and is zero size (0B, 100%)", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/global/12038 - exists and is zero size (0B, 100%)", - " [filtered 83 lines of output]", - "P01 DETAIL: restore file /var/lib/postgresql/9.4/demo/base/1/11885 - exists and is zero size (0B, 100%)", - "P00 INFO: write /var/lib/postgresql/9.4/demo/recovery.conf", + " [filtered 760 lines of output]", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/base/12977/PG_VERSION - exists and matches backup (3B, 99%) checksum 4143d3a341877154d6e95211464e1df1015b74bd", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/base/1/PG_VERSION - exists and matches backup (3B, 99%) checksum 4143d3a341877154d6e95211464e1df1015b74bd", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/PG_VERSION - exists and matches backup (3B, 100%) checksum 4143d3a341877154d6e95211464e1df1015b74bd", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/global/6100_vm - exists and is zero size (0B, 100%)", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/global/6100 - exists and is zero size (0B, 100%)", + " [filtered 203 lines of output]", + "P01 DETAIL: restore file /var/lib/postgresql/10/demo/base/1/12815 - exists and is zero size (0B, 100%)", + "P00 INFO: write /var/lib/postgresql/10/demo/recovery.conf", "P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started)", "P00 INFO: restore command end: completed successfully" ] @@ -1997,7 +1813,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -2128,7 +1944,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres du -sh /var/lib/postgresql/9.4/demo/base/24576" + "sudo -u postgres du -sh /var/lib/postgresql/10/demo/base/24576" ], "host" : "pg-primary", "load-env" : true, @@ -2138,7 +1954,7 @@ "type" : "exe", "value" : { "output" : [ - "6.4M\t/var/lib/postgresql/9.4/demo/base/24576" + "7.5M\t/var/lib/postgresql/10/demo/base/24576" ] } }, @@ -2146,7 +1962,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -2173,7 +1989,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -2246,7 +2062,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres du -sh /var/lib/postgresql/9.4/demo/base/24576" + "sudo -u postgres du -sh /var/lib/postgresql/10/demo/base/24576" ], "host" : "pg-primary", "load-env" : true, @@ -2256,7 +2072,7 @@ "type" : "exe", "value" : { "output" : [ - "152K\t/var/lib/postgresql/9.4/demo/base/24576" + "176K\t/var/lib/postgresql/10/demo/base/24576" ] } }, @@ -2302,8 +2118,8 @@ " oid | datname ", "-------+-----------", " 1 | template1", - " 12134 | template0", - " 12139 | postgres", + " 12977 | template0", + " 12978 | postgres", " 24577 | test2", "(4 rows)" ] @@ -2368,7 +2184,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-02-09 17:35:51.553264+00" + "2019-03-10 12:13:43.83879+00" ] } }, @@ -2407,7 +2223,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -2421,7 +2237,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:35:51.553264+00\" restore" + " --type=time \"--target=2019-03-10 12:13:43.83879+00\" \\", + " --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -2434,7 +2251,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/log/postgresql/postgresql-9.4-demo.log" + "sudo rm /var/log/postgresql/postgresql-10-demo.log" ], "host" : "pg-primary", "load-env" : true, @@ -2447,7 +2264,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/postgresql/9.4/demo/recovery.conf" + "sudo -u postgres cat /var/lib/postgresql/10/demo/recovery.conf" ], "highlight" : { "filter" : true, @@ -2465,7 +2282,8 @@ "value" : { "output" : [ "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-02-09 17:35:51.553264+00'" + "recovery_target_time = '2019-03-10 12:13:43.83879+00'", + "recovery_target_action = 'promote'" ] } }, @@ -2473,7 +2291,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -2527,7 +2345,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/log/postgresql/postgresql-9.4-demo.log" + "sudo -u postgres cat /var/log/postgresql/postgresql-10-demo.log" ], "highlight" : { "filter" : true, @@ -2544,19 +2362,21 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:35:44 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:35:51.553264+00", + " [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-03-10 12:13:37 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:13:43.83879+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000019\" from archive", - "LOG: redo starts at 0/19000028", - "LOG: consistent recovery state reached at 0/190000F0", - "LOG: restored log file \"00000004000000000000001A\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2019-02-09 17:35:51.912377+00", - "LOG: redo done at 0/1A016E90", - "LOG: last completed transaction was at log time 2019-02-09 17:35:51.128448+00", + "LOG: restored log file \"000000040000000000000015\" from archive", + " [filtered 2 lines of output]", + "LOG: database system is ready to accept read only connections", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: recovery stopping before commit of transaction 564, time 2019-03-10 12:13:44.188755+00", + "LOG: redo done at 0/160207B0", + "LOG: last completed transaction was at log time 2019-03-10 12:13:43.488976+00", "LOG: selected new timeline ID: 5", - "LOG: restored log file \"00000004.history\" from archive", - " [filtered 5 lines of output]" + "LOG: archive recovery complete", + " [filtered 3 lines of output]" ] } }, @@ -2605,7 +2425,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-173426F_20190209-173543D" + "20190310-121237F_20190310-121336D" ] } }, @@ -2626,7 +2446,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -2640,7 +2460,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:35:51.553264+00\" restore" + " --type=time \"--target=2019-03-10 12:13:43.83879+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -2653,7 +2473,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/log/postgresql/postgresql-9.4-demo.log" + "sudo rm /var/log/postgresql/postgresql-10-demo.log" ], "host" : "pg-primary", "load-env" : true, @@ -2666,7 +2486,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -2720,7 +2540,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/log/postgresql/postgresql-9.4-demo.log" + "sudo -u postgres cat /var/log/postgresql/postgresql-10-demo.log" ], "highlight" : { "filter" : true, @@ -2737,16 +2557,17 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:36:07 UTC", - "LOG: incomplete startup packet", - "LOG: starting point-in-time recovery to 2019-02-09 17:35:51.553264+00", + " [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-03-10 12:13:57 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:13:43.83879+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"00000005000000000000001B\" from archive", - "LOG: redo starts at 0/1B000028", - "LOG: consistent recovery state reached at 0/1B0000F0", - "LOG: redo done at 0/1B0000F0", - "LOG: restored log file \"00000005000000000000001B\" from archive", - " [filtered 9 lines of output]" + "LOG: restored log file \"000000050000000000000017\" from archive", + "LOG: redo starts at 0/17000028", + "LOG: consistent recovery state reached at 0/170000F8", + "LOG: database system is ready to accept read only connections", + "LOG: redo done at 0/170000F8", + " [filtered 8 lines of output]" ] } }, @@ -2760,7 +2581,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20190209-173426F_20190209-173543D" + "20190310-121237F_20190310-121336D" ] }, "host" : "pg-primary", @@ -2776,47 +2597,47 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.4-1): 00000002000000000000000B/00000005000000000000001B", + " wal archive min/max (10-1): 000000020000000000000008/000000050000000000000017", "", - " full backup: 20190209-173417F", - " timestamp start/stop: 2019-02-09 17:34:17 / 2019-02-09 17:34:25", - " wal start/stop: 00000002000000000000000B / 00000002000000000000000B", - " database size: 19.2MB, backup size: 19.2MB", - " repository size: 2.3MB, repository backup size: 2.3MB", + " full backup: 20190310-121228F", + " timestamp start/stop: 2019-03-10 12:12:28 / 2019-03-10 12:12:36", + " wal start/stop: 000000020000000000000008 / 000000020000000000000008", + " database size: 22.4MB, backup size: 22.4MB", + " repository size: 2.7MB, repository backup size: 2.7MB", "", - " full backup: 20190209-173426F", - " timestamp start/stop: 2019-02-09 17:34:26 / 2019-02-09 17:34:36", - " wal start/stop: 00000002000000000000000C / 00000002000000000000000C", - " database size: 19.2MB, backup size: 19.2MB", - " repository size: 2.3MB, repository backup size: 2.3MB", + " full backup: 20190310-121237F", + " timestamp start/stop: 2019-03-10 12:12:37 / 2019-03-10 12:12:44", + " wal start/stop: 00000002000000000000000A / 00000002000000000000000A", + " database size: 22.4MB, backup size: 22.4MB", + " repository size: 2.7MB, repository backup size: 2.7MB", "", - " diff backup: 20190209-173426F_20190209-173455D", - " timestamp start/stop: 2019-02-09 17:34:55 / 2019-02-09 17:35:02", - " wal start/stop: 000000020000000000000014 / 000000020000000000000014", - " database size: 19.2MB, backup size: 72.2KB", - " repository size: 2.3MB, repository backup size: 9.8KB", - " backup reference list: 20190209-173426F", + " diff backup: 20190310-121237F_20190310-121259D", + " timestamp start/stop: 2019-03-10 12:12:59 / 2019-03-10 12:13:03", + " wal start/stop: 000000020000000000000010 / 000000020000000000000010", + " database size: 22.4MB, backup size: 8.2KB", + " repository size: 2.7MB, repository backup size: 519B", + " backup reference list: 20190310-121237F", "", - " incr backup: 20190209-173426F_20190209-173515I", - " timestamp start/stop: 2019-02-09 17:35:15 / 2019-02-09 17:35:24", - " wal start/stop: 000000030000000000000016 / 000000030000000000000016", - " database size: 31.8MB, backup size: 12.6MB", - " repository size: 3.8MB, repository backup size: 1.5MB", - " backup reference list: 20190209-173426F, 20190209-173426F_20190209-173455D", + " incr backup: 20190310-121237F_20190310-121314I", + " timestamp start/stop: 2019-03-10 12:13:14 / 2019-03-10 12:13:22", + " wal start/stop: 000000030000000000000012 / 000000030000000000000012", + " database size: 37MB, backup size: 15MB", + " repository size: 4.4MB, repository backup size: 1.8MB", + " backup reference list: 20190310-121237F, 20190310-121237F_20190310-121259D", "", - " diff backup: 20190209-173426F_20190209-173543D", - " timestamp start/stop: 2019-02-09 17:35:43 / 2019-02-09 17:35:50", - " wal start/stop: 000000040000000000000019 / 000000040000000000000019", - " database size: 25.5MB, backup size: 6.4MB", - " repository size: 3MB, repository backup size: 781.0KB", - " backup reference list: 20190209-173426F", + " diff backup: 20190310-121237F_20190310-121336D", + " timestamp start/stop: 2019-03-10 12:13:36 / 2019-03-10 12:13:42", + " wal start/stop: 000000040000000000000015 / 000000040000000000000015", + " database size: 29.7MB, backup size: 7.8MB", + " repository size: 3.5MB, repository backup size: 948.7KB", + " backup reference list: 20190310-121237F", "", - " incr backup: 20190209-173426F_20190209-173605I", - " timestamp start/stop: 2019-02-09 17:36:05 / 2019-02-09 17:36:12", - " wal start/stop: 00000005000000000000001B / 00000005000000000000001B", - " database size: 25.5MB, backup size: 1.8MB", - " repository size: 3MB, repository backup size: 201.5KB", - " backup reference list: 20190209-173426F, 20190209-173426F_20190209-173543D" + " incr backup: 20190310-121237F_20190310-121356I", + " timestamp start/stop: 2019-03-10 12:13:56 / 2019-03-10 12:14:02", + " wal start/stop: 000000050000000000000017 / 000000050000000000000017", + " database size: 29.7MB, backup size: 2MB", + " repository size: 3.5MB, repository backup size: 218.3KB", + " backup reference list: 20190310-121237F, 20190310-121237F_20190310-121336D" ] } }, @@ -2824,7 +2645,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -2838,8 +2659,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:35:51.553264+00\" \\", - " --set=20190209-173426F_20190209-173543D restore" + " --type=time \"--target=2019-03-10 12:13:43.83879+00\" \\", + " --set=20190310-121237F_20190310-121336D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -2852,7 +2673,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/log/postgresql/postgresql-9.4-demo.log" + "sudo rm /var/log/postgresql/postgresql-10-demo.log" ], "host" : "pg-primary", "load-env" : true, @@ -2865,7 +2686,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -2919,7 +2740,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/log/postgresql/postgresql-9.4-demo.log" + "sudo -u postgres cat /var/log/postgresql/postgresql-10-demo.log" ], "highlight" : { "filter" : true, @@ -2936,20 +2757,21 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:35:44 UTC", - "LOG: incomplete startup packet", - "LOG: starting point-in-time recovery to 2019-02-09 17:35:51.553264+00", + " [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-03-10 12:13:37 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:13:43.83879+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000019\" from archive", - "LOG: redo starts at 0/19000028", - "LOG: consistent recovery state reached at 0/190000F0", - "LOG: restored log file \"00000004000000000000001A\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2019-02-09 17:35:51.912377+00", - "LOG: redo done at 0/1A016E90", - "LOG: last completed transaction was at log time 2019-02-09 17:35:51.128448+00", + "LOG: restored log file \"000000040000000000000015\" from archive", + " [filtered 2 lines of output]", + "LOG: database system is ready to accept read only connections", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: recovery stopping before commit of transaction 564, time 2019-03-10 12:13:44.188755+00", + "LOG: redo done at 0/160207B0", + "LOG: last completed transaction was at log time 2019-03-10 12:13:43.488976+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", - " [filtered 8 lines of output]" + " [filtered 5 lines of output]" ] } }, @@ -2997,7 +2819,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-cipher-type=none", @@ -3005,7 +2827,6 @@ "repo1-retention-diff=2", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -3052,7 +2873,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "process-max=4", @@ -3067,7 +2888,6 @@ "repo1-s3-region=us-east-1", "repo1-type=s3", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -3108,7 +2928,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -3135,16 +2955,16 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo --start-fast --stop-auto", + "P00 INFO: backup command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo --start-fast", "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-02-09 17:36:54\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000007000000000000001B, lsn = 0/1B000028", - " [filtered 995 lines of output]", - "P03 INFO: backup file /var/lib/postgresql/9.4/demo/base/1/11895 (0B, 100%)", - "P01 INFO: backup file /var/lib/postgresql/9.4/demo/base/1/11885 (0B, 100%)", - "P00 INFO: full backup size = 25.5MB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 00000007000000000000001B, lsn = 0/1B000128", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:14:34\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000070000000000000017, lsn = 0/17000028", + " [filtered 1238 lines of output]", + "P02 INFO: backup file /var/lib/postgresql/10/demo/base/1/12820 (0B, 100%)", + "P04 INFO: backup file /var/lib/postgresql/10/demo/base/1/12815 (0B, 100%)", + "P00 INFO: full backup size = 29.7MB", + "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", + "P00 INFO: backup stop archive = 000000070000000000000017, lsn = 0/17000130", " [filtered 4 lines of output]" ] } @@ -3153,7 +2973,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -3183,7 +3003,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -3209,7 +3029,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/10/demo --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-delete command end: completed successfully" ] } @@ -3218,7 +3038,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -3258,7 +3078,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -3569,7 +3389,7 @@ "value" : "pg-primary" }, "pg1-path" : { - "value" : "/var/lib/postgresql/9.4/demo" + "value" : "/var/lib/postgresql/10/demo" } }, "global" : { @@ -3593,7 +3413,7 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -3609,7 +3429,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.4/demo" + "value" : "/var/lib/postgresql/10/demo" } }, "global" : { @@ -3633,7 +3453,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "log-level-file=detail", @@ -3702,7 +3522,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -3728,7 +3548,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -3793,7 +3613,7 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "process-max=3", @@ -3842,19 +3662,19 @@ " cipher: none", "", " db (current)", - " wal archive min/max (9.4-1): 000000080000000000000023/000000080000000000000024", + " wal archive min/max (10-1): 000000080000000000000020/000000080000000000000022", "", - " full backup: 20190209-173849F", - " timestamp start/stop: 2019-02-09 17:38:49 / 2019-02-09 17:39:05", - " wal start/stop: 000000080000000000000023 / 000000080000000000000023", - " database size: 25.5MB, backup size: 25.5MB", - " repository size: 3MB, repository backup size: 3MB", + " full backup: 20190310-121613F", + " timestamp start/stop: 2019-03-10 12:16:13 / 2019-03-10 12:16:27", + " wal start/stop: 000000080000000000000020 / 000000080000000000000020", + " database size: 29.8MB, backup size: 29.8MB", + " repository size: 3.5MB, repository backup size: 3.5MB", "", - " full backup: 20190209-173906F", - " timestamp start/stop: 2019-02-09 17:39:06 / 2019-02-09 17:39:22", - " wal start/stop: 000000080000000000000024 / 000000080000000000000024", - " database size: 25.5MB, backup size: 25.5MB", - " repository size: 3MB, repository backup size: 3MB" + " full backup: 20190310-121629F", + " timestamp start/stop: 2019-03-10 12:16:29 / 2019-03-10 12:16:43", + " wal start/stop: 000000080000000000000022 / 000000080000000000000022", + " database size: 29.8MB, backup size: 29.8MB", + " repository size: 3.5MB, repository backup size: 3.5MB" ] } }, @@ -3998,7 +3818,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -4220,7 +4040,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.4/demo" + "value" : "/var/lib/postgresql/10/demo" }, "recovery-option" : { "value" : "standby_mode=on" @@ -4246,7 +4066,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "recovery-option=standby_mode=on", "", "[global]", @@ -4259,7 +4079,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_createcluster 9.4 demo" + "sudo pg_createcluster 10 demo" ], "host" : "pg-standby", "load-env" : true, @@ -4285,7 +4105,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/postgresql/9.4/demo/recovery.conf" + "sudo -u postgres cat /var/lib/postgresql/10/demo/recovery.conf" ], "host" : "pg-standby", "load-env" : true, @@ -4302,7 +4122,7 @@ }, { "key" : { - "file" : "/etc/postgresql/9.4/demo/postgresql.conf", + "file" : "/etc/postgresql/10/demo/postgresql.conf", "host" : "pg-standby", "option" : { "archive_command" : { @@ -4345,7 +4165,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/log/postgresql/postgresql-9.4-demo.log" + "sudo rm /var/log/postgresql/postgresql-10-demo.log" ], "host" : "pg-standby", "load-env" : true, @@ -4358,7 +4178,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-standby", "load-env" : true, @@ -4384,7 +4204,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/log/postgresql/postgresql-9.4-demo.log" + "sudo -u postgres cat /var/log/postgresql/postgresql-10-demo.log" ], "highlight" : { "filter" : true, @@ -4401,16 +4221,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: could not bind IPv6 socket: Cannot assign requested address", - "HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.", - "LOG: database system was interrupted; last known up at 2019-02-09 17:39:07 UTC", + " [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-03-10 12:16:30 UTC", "LOG: entering standby mode", - "LOG: incomplete startup packet", "LOG: restored log file \"00000008.history\" from archive", - " [filtered 2 lines of output]", - "LOG: redo starts at 0/24000028", - "LOG: consistent recovery state reached at 0/24000128", - "LOG: database system is ready to accept read only connections" + "LOG: restored log file \"000000080000000000000022\" from archive", + "LOG: redo starts at 0/22000028", + "LOG: consistent recovery state reached at 0/220000F8", + "LOG: database system is ready to accept read only connections", + "LOG: incomplete startup packet" ] } }, @@ -4479,7 +4299,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres psql -c \"select *, current_timestamp from pg_switch_xlog()\";" + "sudo -u postgres psql -c \"select *, current_timestamp from pg_switch_wal()\";" ], "host" : "pg-primary", "load-env" : true, @@ -4489,9 +4309,9 @@ "type" : "exe", "value" : { "output" : [ - " pg_switch_xlog | now ", - "----------------+-------------------------------", - " 0/25019A70 | 2019-02-09 17:40:01.546404+00", + " pg_switch_wal | current_timestamp ", + "---------------+-------------------------------", + " 0/2302A958 | 2019-03-10 12:17:22.344397+00", "(1 row)" ] } @@ -4518,9 +4338,9 @@ "type" : "exe", "value" : { "output" : [ - " message | now ", + " message | current_timestamp ", "----------------+------------------------------", - " Important Data | 2019-02-09 17:40:07.32096+00", + " Important Data | 2019-03-10 12:17:27.56201+00", "(1 row)" ] } @@ -4546,8 +4366,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-host=repository --stanza=demo", - "P00 INFO: switch xlog cannot be performed on the standby, all other checks passed successfully", + "P00 INFO: check command begin 2.11: --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 cannot be performed on the standby, all other checks passed successfully", "P00 INFO: check command end: completed successfully" ] } @@ -4577,7 +4397,7 @@ "cmd" : [ "sudo -u postgres sh -c 'echo \\", " \"host replication replicator 172.17.0.6/32 md5\" \\", - " >> /etc/postgresql/9.4/demo/pg_hba.conf'" + " >> /etc/postgresql/10/demo/pg_hba.conf'" ], "host" : "pg-primary", "load-env" : true, @@ -4590,7 +4410,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo reload" + "sudo pg_ctlcluster 10 demo reload" ], "host" : "pg-primary", "load-env" : true, @@ -4615,7 +4435,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -4657,7 +4477,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-standby", "load-env" : true, @@ -4683,7 +4503,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/postgresql/9.4/demo/recovery.conf" + "sudo -u postgres cat /var/lib/postgresql/10/demo/recovery.conf" ], "host" : "pg-standby", "load-env" : true, @@ -4703,7 +4523,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/log/postgresql/postgresql-9.4-demo.log" + "sudo rm /var/log/postgresql/postgresql-10-demo.log" ], "host" : "pg-standby", "load-env" : true, @@ -4716,7 +4536,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo start" + "sudo pg_ctlcluster 10 demo start" ], "host" : "pg-standby", "load-env" : true, @@ -4742,7 +4562,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/log/postgresql/postgresql-9.4-demo.log" + "sudo -u postgres cat /var/log/postgresql/postgresql-10-demo.log" ], "highlight" : { "filter" : true, @@ -4759,10 +4579,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 10 lines of output]", - "LOG: database system is ready to accept read only connections", - "LOG: restored log file \"000000080000000000000025\" from archive", - "LOG: started streaming WAL from primary at 0/26000000 on timeline 8" + " [filtered 11 lines of output]", + "LOG: restored log file \"000000080000000000000023\" from archive", + "LOG: incomplete startup packet", + "LOG: started streaming WAL from primary at 0/24000000 on timeline 8" ] } }, @@ -4792,9 +4612,9 @@ "type" : "exe", "value" : { "output" : [ - " message | now ", + " message | current_timestamp ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:40:24.730836+00", + " Important Data | 2019-03-10 12:17:42.903932+00", "(1 row)" ] } @@ -4821,9 +4641,9 @@ "type" : "exe", "value" : { "output" : [ - " message | now ", + " message | current_timestamp ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:40:25.164523+00", + " Important Data | 2019-03-10 12:17:43.488868+00", "(1 row)" ] } @@ -4909,7 +4729,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "", "[global]", "archive-async=y", @@ -4954,7 +4774,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -4994,7 +4814,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo restart" + "sudo pg_ctlcluster 10 demo restart" ], "host" : "pg-standby", "load-env" : true, @@ -5021,11 +4841,11 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres psql -c \" \\", - " select pg_create_restore_point('test async push'); select pg_switch_xlog(); \\", - " select pg_create_restore_point('test async push'); select pg_switch_xlog(); \\", - " select pg_create_restore_point('test async push'); select pg_switch_xlog(); \\", - " select pg_create_restore_point('test async push'); select pg_switch_xlog(); \\", - " select pg_create_restore_point('test async push'); select pg_switch_xlog();\"" + " select pg_create_restore_point('test async push'); select pg_switch_wal(); \\", + " select pg_create_restore_point('test async push'); select pg_switch_wal(); \\", + " select pg_create_restore_point('test async push'); select pg_switch_wal(); \\", + " select pg_create_restore_point('test async push'); select pg_switch_wal(); \\", + " select pg_create_restore_point('test async push'); select pg_switch_wal();\"" ], "host" : "pg-primary", "load-env" : true, @@ -5055,8 +4875,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --log-level-console=info --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --repo1-host=repository --stanza=demo", - "P00 INFO: WAL segment 00000008000000000000002B successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000800000000/00000008000000000000002B-b56115e2e0d37461d4ee2f063a9d7a6fb6bb1a1d.gz'", + "P00 INFO: check command begin 2.11: --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 000000080000000000000029 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/10-1/0000000800000000/000000080000000000000029-dbd7a9c8545e22f8df39a1b2b9b54f9748720c19.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -5083,19 +4903,19 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/000000080000000000000026] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: push 3 WAL file(s) to archive: 000000080000000000000026...000000080000000000000028", - "P02 DETAIL: pushed WAL file 000000080000000000000027 to archive", - "P01 DETAIL: pushed WAL file 000000080000000000000026 to archive", - "P02 DETAIL: pushed WAL file 000000080000000000000028 to archive", + "P00 INFO: archive-push command begin 2.11: [pg_wal/000000080000000000000024] --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 2 WAL file(s) to archive: 000000080000000000000024...000000080000000000000025", + "P01 DETAIL: pushed WAL file 000000080000000000000024 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000025 to archive", "P00 INFO: archive-push command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/000000080000000000000029] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: push 3 WAL file(s) to archive: 000000080000000000000029...00000008000000000000002B", - "P02 DETAIL: pushed WAL file 00000008000000000000002A to archive", + "P00 INFO: archive-push command begin 2.11: [pg_wal/000000080000000000000026] --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: 000000080000000000000026...000000080000000000000029", + "P02 DETAIL: pushed WAL file 000000080000000000000027 to archive", + "P01 DETAIL: pushed WAL file 000000080000000000000026 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000028 to archive", "P01 DETAIL: pushed WAL file 000000080000000000000029 to archive", - "P02 DETAIL: pushed WAL file 00000008000000000000002B to archive", "P00 INFO: archive-push command end: completed successfully" ] } @@ -5123,7 +4943,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "got WAL file [0-F]{24} from archive" + "found [0-F]{24} in the archive" ] }, "host" : "pg-standby", @@ -5135,43 +4955,33 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: archive-get-async command begin 2.11: [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/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: 000000080000000000000022...000000080000000000000029", + "P00 DETAIL: found 000000080000000000000023 in the archive", + "P00 DETAIL: unable to find 000000080000000000000024 in the archive", + "P00 DETAIL: found 000000080000000000000022 in the archive", + "P00 DETAIL: unable to find 000000080000000000000025 in the archive", + "P00 DETAIL: unable to find 000000080000000000000026 in the archive", + " [filtered 45 lines of output]", + "P00 INFO: archive-get-async command begin 2.11: [000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B] --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: 000000080000000000000024...00000008000000000000002B", - "P01 DETAIL: got WAL file 000000080000000000000024 from archive", - "P01 DETAIL: WAL file 000000080000000000000026 not found in archive", - "P01 DETAIL: WAL file 000000080000000000000027 not found in archive", - " [filtered 2 lines of output]", - "P01 DETAIL: WAL file 00000008000000000000002A not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002B not found in archive", - "P02 DETAIL: got WAL file 000000080000000000000025 from archive", - "P00 INFO: archive-get command end: completed successfully", + "P00 DETAIL: found 000000080000000000000025 in the archive", + "P00 DETAIL: found 000000080000000000000024 in the archive", + "P00 DETAIL: found 000000080000000000000027 in the archive", + "P00 DETAIL: found 000000080000000000000026 in the archive", + "P00 DETAIL: unable to find 000000080000000000000029 in the archive", + "P00 DETAIL: unable to find 00000008000000000000002A in the archive", + "P00 DETAIL: unable to find 00000008000000000000002B in the archive", + "P00 DETAIL: found 000000080000000000000028 in the archive", "", - " [filtered 27 lines of output]", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000026...00000008000000000000002D", - "P01 DETAIL: got WAL file 000000080000000000000026 from archive", - "P02 DETAIL: got WAL file 000000080000000000000027 from archive", - "P02 DETAIL: WAL file 000000080000000000000029 not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002A not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002B not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002D not found in archive", - "P01 DETAIL: got WAL file 000000080000000000000028 from archive", - "P00 INFO: archive-get command end: completed successfully", + "-------------------PROCESS START-------------------", + " [filtered 5 lines of output]", + "P00 DETAIL: unable to find 00000008000000000000002C in the archive", + "P00 DETAIL: unable to find 00000008000000000000002D in the archive", + "P00 DETAIL: found 000000080000000000000029 in the archive", "", - " [filtered 13 lines of output]", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D, 00000008000000000000002E, 00000008000000000000002F, 000000080000000000000030] --archive-async --log-level-console=off --log-level-file=detail --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/postgresql/9.4/demo --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", - "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000029...000000080000000000000030", - "P01 DETAIL: got WAL file 000000080000000000000029 from archive", - "P02 DETAIL: got WAL file 00000008000000000000002A from archive", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002D not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002E not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002F not found in archive", - "P01 DETAIL: got WAL file 00000008000000000000002B from archive", - "P02 DETAIL: WAL file 000000080000000000000030 not found in archive", - "P00 INFO: archive-get command end: completed successfully", - " [filtered 11 lines of output]" + "-------------------PROCESS START-------------------", + " [filtered 24 lines of output]" ] } }, @@ -5203,7 +5013,7 @@ "value" : "pg-standby" }, "pg2-path" : { - "value" : "/var/lib/postgresql/9.4/demo" + "value" : "/var/lib/postgresql/10/demo" } }, "global" : { @@ -5218,9 +5028,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/postgresql/9.4/demo", + "pg1-path=/var/lib/postgresql/10/demo", "pg2-host=pg-standby", - "pg2-path=/var/lib/postgresql/9.4/demo", + "pg2-path=/var/lib/postgresql/10/demo", "", "[global]", "backup-standby=y", @@ -5253,15 +5063,15 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:40:54\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000008000000000000002D, lsn = 0/2D000028", - "P00 INFO: wait for replay on the standby to reach 0/2D000028", - "P00 INFO: replay on the standby reached 0/2D0000C8", - "P01 INFO: backup file pg-primary:/var/lib/postgresql/9.4/demo/global/pg_control (8KB, 0%) checksum 8f73a93294364c5dc115ccaa3c10088d00a92f6d", - "P01 INFO: backup file pg-primary:/var/lib/postgresql/9.4/demo/backup_label (238B, 0%) checksum 00c66e6379c216aa3b2e6d9e9553c6829027844a", - "P03 INFO: backup file pg-standby:/var/lib/postgresql/9.4/demo/base/12139/11889 (344KB, 18%) checksum a9521f29eb7622c983fe1dff2c50589ea2cd0c42", - "P04 INFO: backup file pg-standby:/var/lib/postgresql/9.4/demo/base/12139/12009 (240KB, 30%) checksum 85a85fa393bc5c937c227abc9bac6b5050b181c7", - " [filtered 35 lines of output]" + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:18:07\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 00000008000000000000002B, lsn = 0/2B000028", + "P00 INFO: wait for replay on the standby to reach 0/2B000028", + "P00 INFO: replay on the standby reached 0/2B0000D0, checkpoint 0/2B000060", + "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/global/pg_control (8KB, 0%) checksum 6faf2545f769bd65fb89293f8c3f8673bb60e78a", + "P01 INFO: backup file pg-primary:/var/lib/postgresql/10/demo/pg_logical/replorigin_checkpoint (8B, 0%) checksum 347fc8f2df71bd4436e38bd1516ccd7ea0d46532", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2608 (440KB, 19%) checksum 729d02a898cc893fbee91feaa4d43831ac30a5af", + "P02 INFO: backup file pg-standby:/var/lib/postgresql/10/demo/base/12978/2673 (320KB, 33%) checksum 7ba44db585de5f0a74b287a59ed4361ece8ab457", + " [filtered 39 lines of output]" ] } }, @@ -5269,7 +5079,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-primary", "load-env" : true, @@ -5282,7 +5092,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.4 demo stop" + "sudo pg_ctlcluster 10 demo stop" ], "host" : "pg-standby", "load-env" : true, @@ -5295,8 +5105,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres /usr/lib/postgresql/9.5/bin/initdb \\", - " -D /var/lib/postgresql/9.5/demo -k -A peer" + "sudo -u postgres /usr/lib/postgresql/11/bin/initdb \\", + " -D /var/lib/postgresql/11/demo -k -A peer" ], "host" : "pg-primary", "load-env" : true, @@ -5309,7 +5119,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_createcluster 9.5 demo" + "sudo pg_createcluster 11 demo" ], "host" : "pg-primary", "load-env" : true, @@ -5323,13 +5133,13 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres sh -c 'cd /var/lib/postgresql && \\", - " /usr/lib/postgresql/9.5/bin/pg_upgrade \\", - " --old-bindir=/usr/lib/postgresql/9.4/bin \\", - " --new-bindir=/usr/lib/postgresql/9.5/bin \\", - " --old-datadir=/var/lib/postgresql/9.4/demo \\", - " --new-datadir=/var/lib/postgresql/9.5/demo \\", - " --old-options=\" -c config_file=/etc/postgresql/9.4/demo/postgresql.conf\" \\", - " --new-options=\" -c config_file=/etc/postgresql/9.5/demo/postgresql.conf\"'" + " /usr/lib/postgresql/11/bin/pg_upgrade \\", + " --old-bindir=/usr/lib/postgresql/10/bin \\", + " --new-bindir=/usr/lib/postgresql/11/bin \\", + " --old-datadir=/var/lib/postgresql/10/demo \\", + " --new-datadir=/var/lib/postgresql/11/demo \\", + " --old-options=\" -c config_file=/etc/postgresql/10/demo/postgresql.conf\" \\", + " --new-options=\" -c config_file=/etc/postgresql/11/demo/postgresql.conf\"'" ], "highlight" : { "filter" : true, @@ -5358,7 +5168,7 @@ }, { "key" : { - "file" : "/etc/postgresql/9.5/demo/postgresql.conf", + "file" : "/etc/postgresql/11/demo/postgresql.conf", "host" : "pg-primary", "option" : { "archive_command" : { @@ -5404,7 +5214,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.5/demo" + "value" : "/var/lib/postgresql/11/demo" } } } @@ -5413,7 +5223,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.5/demo", + "pg1-path=/var/lib/postgresql/11/demo", "", "[global]", "archive-async=y", @@ -5436,7 +5246,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.5/demo" + "value" : "/var/lib/postgresql/11/demo" } } } @@ -5445,7 +5255,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/postgresql/9.5/demo", + "pg1-path=/var/lib/postgresql/11/demo", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -5470,10 +5280,10 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/postgresql/9.5/demo" + "value" : "/var/lib/postgresql/11/demo" }, "pg2-path" : { - "value" : "/var/lib/postgresql/9.5/demo" + "value" : "/var/lib/postgresql/11/demo" } }, "global" : { @@ -5488,9 +5298,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/postgresql/9.5/demo", + "pg1-path=/var/lib/postgresql/11/demo", "pg2-host=pg-standby", - "pg2-path=/var/lib/postgresql/9.5/demo", + "pg2-path=/var/lib/postgresql/11/demo", "", "[global]", "backup-standby=n", @@ -5505,8 +5315,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp /etc/postgresql/9.4/demo/pg_hba.conf \\", - " /etc/postgresql/9.5/demo/pg_hba.conf" + "sudo cp /etc/postgresql/10/demo/pg_hba.conf \\", + " /etc/postgresql/11/demo/pg_hba.conf" ], "host" : "pg-primary", "load-env" : true, @@ -5537,7 +5347,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.10: --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/9.5/demo --pg2-path=/var/lib/postgresql/9.5/demo --repo1-path=/var/lib/pgbackrest --stanza=demo", + "P00 INFO: stanza-upgrade command begin 2.11: --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" ] } @@ -5546,7 +5356,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.5 demo start" + "sudo pg_ctlcluster 11 demo start" ], "host" : "pg-primary", "load-env" : true, @@ -5569,9 +5379,9 @@ "type" : "exe", "value" : { "output" : [ - "Ver Cluster Port Status Owner Data directory Log file", - "9.4 demo 5432 down postgres /var/lib/postgresql/9.4/demo /var/log/postgresql/postgresql-9.4-demo.log", - "9.5 demo 5432 online postgres /var/lib/postgresql/9.5/demo /var/log/postgresql/postgresql-9.5-demo.log" + "Ver Cluster Port Status Owner Data directory Log file", + "10 demo 5432 down postgres /var/lib/postgresql/10/demo /var/log/postgresql/postgresql-10-demo.log", + "11 demo 5432 online postgres /var/lib/postgresql/11/demo /var/log/postgresql/postgresql-11-demo.log" ] } }, @@ -5592,7 +5402,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_dropcluster 9.4 demo" + "sudo pg_dropcluster 10 demo" ], "host" : "pg-primary", "load-env" : true, @@ -5605,7 +5415,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_dropcluster 9.4 demo" + "sudo pg_dropcluster 10 demo" ], "host" : "pg-standby", "load-env" : true, @@ -5618,7 +5428,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_createcluster 9.5 demo" + "sudo pg_createcluster 11 demo" ], "host" : "pg-standby", "load-env" : true, @@ -5668,7 +5478,7 @@ }, { "key" : { - "file" : "/etc/postgresql/9.5/demo/postgresql.conf", + "file" : "/etc/postgresql/11/demo/postgresql.conf", "host" : "pg-standby", "option" : { "hot_standby" : { @@ -5687,7 +5497,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo pg_ctlcluster 9.5 demo start" + "sudo pg_ctlcluster 11 demo start" ], "host" : "pg-standby", "load-env" : true, @@ -5739,9 +5549,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/postgresql/9.5/demo", + "pg1-path=/var/lib/postgresql/11/demo", "pg2-host=pg-standby", - "pg2-path=/var/lib/postgresql/9.5/demo", + "pg2-path=/var/lib/postgresql/11/demo", "", "[global]", "backup-standby=y", @@ -5776,7 +5586,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir /root/pgbackrest-release-2.10" + "sudo mkdir /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -5789,7 +5599,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -5802,7 +5612,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -5848,7 +5658,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo make -s -C /root/pgbackrest-release-2.10/src" + "sudo make -s -C /root/pgbackrest-release-2.11/src" ], "host" : "build", "load-env" : true, @@ -5888,7 +5698,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -6031,7 +5841,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - General help", + "pgBackRest 2.11 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -6175,7 +5985,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - 'backup' command - 'log-path' option help", + "pgBackRest 2.11 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -6413,7 +6223,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --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.11: --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" ] } @@ -6439,8 +6249,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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 stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000100000000/000000010000000000000001-2bb97a7deb50cce79262bd136420de5e4f79da46.gz'", + "P00 INFO: check command begin 2.11: --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 stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000100000000/000000010000000000000001-c8b8c59ee68128ff62cb32a9af3e6fc22deda49d.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -6467,16 +6277,16 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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.11: --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-02-09 17:21:02\": backup begins after the next regular checkpoint completes", - "P00 INFO: backup start archive = 000000010000000000000003, lsn = 0/3000028", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:00:29\": 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: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F8", + "P00 INFO: backup stop archive = 000000010000000000000002, lsn = 0/2000130", " [filtered 4 lines of output]" ] } @@ -6495,7 +6305,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172102F" + "20190310-120029F" ] } }, @@ -6522,11 +6332,11 @@ "value" : { "output" : [ " [filtered 5 lines of output]", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/pg_log/postgresql.log (1KB, 97%) checksum 07b4ebacb59ae9130cf92672c48cb03539959f89", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/backup_label (236B, 100%) checksum 56e1b31b809cb8923d3fb905c1c53dbd7329ef45", - "P00 INFO: diff backup size = 9.2KB", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/pg_log/postgresql.log (780B, 97%) checksum 8877cbf69c396539f8b58cf8b9f30ede64b1988d", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/backup_label (236B, 100%) checksum f4e298fc4c9b1e15558c27d0b2dba56f1f915918", + "P00 INFO: diff backup size = 8.9KB", "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 000000010000000000000004, lsn = 0/4000130", + "P00 INFO: backup stop archive = 000000010000000000000003, lsn = 0/30000F8", " [filtered 4 lines of output]" ] } @@ -6557,20 +6367,20 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.5-1): 000000010000000000000003/000000010000000000000004", + " wal archive min/max (9.5-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20190209-172102F", - " timestamp start/stop: 2019-02-09 17:21:02 / 2019-02-09 17:21:13", - " wal start/stop: 000000010000000000000003 / 000000010000000000000003", + " full backup: 20190310-120029F", + " timestamp start/stop: 2019-03-10 12:00:29 / 2019-03-10 12:00:37", + " wal start/stop: 000000010000000000000002 / 000000010000000000000002", " database size: 20.6MB, backup size: 20.6MB", " repository size: 2.4MB, repository backup size: 2.4MB", "", - " diff backup: 20190209-172102F_20190209-172114D", - " timestamp start/stop: 2019-02-09 17:21:14 / 2019-02-09 17:21:19", - " wal start/stop: 000000010000000000000004 / 000000010000000000000004", - " database size: 20.6MB, backup size: 9.3KB", + " diff backup: 20190310-120029F_20190310-120038D", + " timestamp start/stop: 2019-03-10 12:00:38 / 2019-03-10 12:00:41", + " wal start/stop: 000000010000000000000003 / 000000010000000000000003", + " database size: 20.6MB, backup size: 9.0KB", " repository size: 2.4MB, repository backup size: 752B", - " backup reference list: 20190209-172102F" + " backup reference list: 20190310-120029F" ] } }, @@ -6728,10 +6538,10 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-172102F_20190209-172114D, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:21:37\": backup begins after the next regular checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000006, lsn = 0/6000028", + "P00 INFO: backup command begin 2.11: --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 = 20190310-120029F_20190310-120038D, version = 2.11", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:00:57\": 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]" ] @@ -6789,11 +6599,11 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-172102F_20190209-172137I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:21:45\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 000000020000000000000007, lsn = 0/7000028", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 79%) checksum e7f549f02fb5f17d33adbaf2026943d8fa2d42a6", + "P00 INFO: backup command begin 2.11: --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 = 20190310-120029F_20190310-120057I, version = 2.11", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:01:05\": 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, 82%) checksum 5170e087c5312701c0eda47b53ee00178d37c9a1", " [filtered 9 lines of output]" ] } @@ -6835,9 +6645,9 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:21:51\": 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/20190209-172102F_20190209-172151I': Permission denied", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:01:11\": 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/20190310-120029F_20190310-120111I': Permission denied", "P00 INFO: backup command end: aborted with exception [047]" ] } @@ -6878,12 +6688,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-172102F_20190209-172145I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:21:55\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup command begin 2.11: --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 = 20190310-120029F_20190310-120105I, version = 2.11", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:01:14\": backup begins after the requested immediate checkpoint completes", "P00 ERROR: [057]: ERROR: a backup is already in progress", " HINT: Run pg_stop_backup() and try again.:", - " 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-02-09 17:21:55', true) as lsn" + " 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-03-10 12:01:14', true) as lsn" ] } }, @@ -6940,13 +6750,13 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-172102F_20190209-172145I, version = 2.10", + "P00 INFO: backup command begin 2.11: --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 = 20190310-120029F_20190310-120105I, version = 2.11", "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-02-09 17:21:58\": 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 b7f9352b68e541a6a4d6efcd67038cbb9bea94a3", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:01:16\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000020000000000000008, lsn = 0/8000028", + "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 76%) checksum fceb2e3f0602ea53e9bf0598e76f66741dded6ef", " [filtered 9 lines of output]" ] } @@ -6973,70 +6783,101 @@ " \"id\" : 1", " },", " \"id\" : \"9.5-1\",", - " \"max\" : \"000000020000000000000009\",", - " \"min\" : \"000000010000000000000003\"", + " \"max\" : \"000000020000000000000008\",", + " \"min\" : \"000000010000000000000002\"", " }", " ],", " \"backup\" : [", " {", " \"archive\" : {", + " \"start\" : \"000000010000000000000002\",", + " \"stop\" : \"000000010000000000000002\"", + " },", + " \"backrest\" : {", + " \"format\" : 5,", + " \"version\" : \"2.11\"", + " },", + " \"database\" : {", + " \"id\" : 1", + " },", + " \"info\" : {", + " \"delta\" : 21550849,", + " \"repository\" : {", + " \"delta\" : 2531072,", + " \"size\" : 2531072", + " },", + " \"size\" : 21550849", + " },", + " \"label\" : \"20190310-120029F\",", + " \"prior\" : null,", + " \"reference\" : null,", + " \"timestamp\" : {", + " \"start\" : 1552219229,", + " \"stop\" : 1552219237", + " },", + " \"type\" : \"full\"", + " },", + " {", + " \"archive\" : {", " \"start\" : \"000000010000000000000003\",", " \"stop\" : \"000000010000000000000003\"", " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 21551170,", + " \"delta\" : 9208,", " \"repository\" : {", - " \"delta\" : 2529776,", - " \"size\" : 2529776", + " \"delta\" : 752,", + " \"size\" : 2531072", " },", - " \"size\" : 21551170", + " \"size\" : 21550956", " },", - " \"label\" : \"20190209-172102F\",", - " \"prior\" : null,", - " \"reference\" : null,", + " \"label\" : \"20190310-120029F_20190310-120038D\",", + " \"prior\" : \"20190310-120029F\",", + " \"reference\" : [", + " \"20190310-120029F\"", + " ],", " \"timestamp\" : {", - " \"start\" : 1549732862,", - " \"stop\" : 1549732873", + " \"start\" : 1552219238,", + " \"stop\" : 1552219241", " },", - " \"type\" : \"full\"", + " \"type\" : \"diff\"", " },", " {", " \"archive\" : {", - " \"start\" : \"000000010000000000000004\",", - " \"stop\" : \"000000010000000000000004\"", + " \"start\" : \"000000020000000000000005\",", + " \"stop\" : \"000000020000000000000005\"", " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 9529,", + " \"delta\" : 9990,", " \"repository\" : {", - " \"delta\" : 752,", - " \"size\" : 2529776", + " \"delta\" : 896,", + " \"size\" : 2531216", " },", - " \"size\" : 21551277", + " \"size\" : 21551738", " },", - " \"label\" : \"20190209-172102F_20190209-172114D\",", - " \"prior\" : \"20190209-172102F\",", + " \"label\" : \"20190310-120029F_20190310-120057I\",", + " \"prior\" : \"20190310-120029F_20190310-120038D\",", " \"reference\" : [", - " \"20190209-172102F\"", + " \"20190310-120029F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732874,", - " \"stop\" : 1549732879", + " \"start\" : 1552219257,", + " \"stop\" : 1552219264", " },", - " \"type\" : \"diff\"", + " \"type\" : \"incr\"", " },", " {", " \"archive\" : {", @@ -7045,89 +6886,58 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 10204,", + " \"delta\" : 10097,", " \"repository\" : {", " \"delta\" : 896,", - " \"size\" : 2529920", + " \"size\" : 2531216", " },", - " \"size\" : 21551952", + " \"size\" : 21551845", " },", - " \"label\" : \"20190209-172102F_20190209-172137I\",", - " \"prior\" : \"20190209-172102F_20190209-172114D\",", + " \"label\" : \"20190310-120029F_20190310-120105I\",", + " \"prior\" : \"20190310-120029F_20190310-120057I\",", " \"reference\" : [", - " \"20190209-172102F\"", + " \"20190310-120029F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732897,", - " \"stop\" : 1549732903", + " \"start\" : 1552219265,", + " \"stop\" : 1552219270", " },", " \"type\" : \"incr\"", " },", " {", " \"archive\" : {", - " \"start\" : \"000000020000000000000007\",", - " \"stop\" : \"000000020000000000000007\"", + " \"start\" : \"000000020000000000000008\",", + " \"stop\" : \"000000020000000000000008\"", " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 10418,", + " \"delta\" : 10736,", " \"repository\" : {", - " \"delta\" : 912,", - " \"size\" : 2529936", + " \"delta\" : 1104,", + " \"size\" : 2531424", " },", - " \"size\" : 21552166", + " \"size\" : 21552484", " },", - " \"label\" : \"20190209-172102F_20190209-172145I\",", - " \"prior\" : \"20190209-172102F_20190209-172137I\",", + " \"label\" : \"20190310-120029F_20190310-120116I\",", + " \"prior\" : \"20190310-120029F_20190310-120105I\",", " \"reference\" : [", - " \"20190209-172102F\"", + " \"20190310-120029F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732905,", - " \"stop\" : 1549732910", - " },", - " \"type\" : \"incr\"", - " },", - " {", - " \"archive\" : {", - " \"start\" : \"000000020000000000000009\",", - " \"stop\" : \"000000020000000000000009\"", - " },", - " \"backrest\" : {", - " \"format\" : 5,", - " \"version\" : \"2.10\"", - " },", - " \"database\" : {", - " \"id\" : 1", - " },", - " \"info\" : {", - " \"delta\" : 11164,", - " \"repository\" : {", - " \"delta\" : 1120,", - " \"size\" : 2530144", - " },", - " \"size\" : 21552912", - " },", - " \"label\" : \"20190209-172102F_20190209-172158I\",", - " \"prior\" : \"20190209-172102F_20190209-172145I\",", - " \"reference\" : [", - " \"20190209-172102F\"", - " ],", - " \"timestamp\" : {", - " \"start\" : 1549732918,", - " \"stop\" : 1549732924", + " \"start\" : 1552219276,", + " \"stop\" : 1552219282", " },", " \"type\" : \"incr\"", " }", @@ -7136,7 +6946,7 @@ " \"db\" : [", " {", " \"id\" : 1,", - " \"system-id\" : 6656051806663676173,", + " \"system-id\" : 6666730698176532751,", " \"version\" : \"9.5\"", " }", " ],", @@ -7291,7 +7101,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-02-09 17:22:04+00 | 000000020000000000000009", + " \"demo\" | 2019-03-10 12:01:22+00 | 000000020000000000000008", "(1 row)" ] } @@ -7338,7 +7148,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-172102F|remove archive" + "archive retention on backup 20190310-120029F|remove archive" ] }, "host" : "pg-primary", @@ -7352,7 +7162,7 @@ " [filtered 860 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 DETAIL: archive retention on backup 20190209-172102F, archiveId = 9.5-1, start = 000000010000000000000003", + "P00 DETAIL: archive retention on backup 20190310-120029F, archiveId = 9.5-1, start = 000000010000000000000002", "P00 DETAIL: no archive to remove, archiveId = 9.5-1", "P00 INFO: expire command end: completed successfully" ] @@ -7372,7 +7182,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172208F" + "20190310-120126F" ] } }, @@ -7387,7 +7197,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20190209-172102F|archive retention on backup 20190209-172208F|remove archive" + "expire full backup set\\: 20190310-120029F|archive retention on backup 20190310-120126F|remove archive" ] }, "host" : "pg-primary", @@ -7401,9 +7211,9 @@ " [filtered 860 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire full backup set: 20190209-172102F, 20190209-172102F_20190209-172114D, 20190209-172102F_20190209-172137I, 20190209-172102F_20190209-172145I, 20190209-172102F_20190209-172158I", - "P00 INFO: remove expired backup 20190209-172102F_20190209-172158I", - "P00 INFO: remove expired backup 20190209-172102F_20190209-172145I", + "P00 INFO: expire full backup set: 20190310-120029F, 20190310-120029F_20190310-120038D, 20190310-120029F_20190310-120057I, 20190310-120029F_20190310-120105I, 20190310-120029F_20190310-120116I", + "P00 INFO: remove expired backup 20190310-120029F_20190310-120116I", + "P00 INFO: remove expired backup 20190310-120029F_20190310-120105I", " [filtered 3 lines of output]" ] } @@ -7467,7 +7277,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172221F_20190209-172234D" + "20190310-120137F_20190310-120148D" ] } }, @@ -7495,7 +7305,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20190209-172221F_20190209-172234D" + "expire diff backup set: 20190310-120137F_20190310-120148D" ] }, "host" : "pg-primary", @@ -7509,9 +7319,9 @@ " [filtered 12 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire diff backup set: 20190209-172221F_20190209-172234D, 20190209-172221F_20190209-172240I", - "P00 INFO: remove expired backup 20190209-172221F_20190209-172240I", - "P00 INFO: remove expired backup 20190209-172221F_20190209-172234D" + "P00 INFO: expire diff backup set: 20190310-120137F_20190310-120148D, 20190310-120137F_20190310-120153I", + "P00 INFO: remove expired backup 20190310-120137F_20190310-120153I", + "P00 INFO: remove expired backup 20190310-120137F_20190310-120148D" ] } }, @@ -7561,7 +7371,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172221F_20190209-172246D" + "20190310-120137F_20190310-120158D" ] } }, @@ -7604,8 +7414,8 @@ "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 = 000000020000000000000014, lsn = 0/140000F8", - "P00 INFO: new backup label = 20190209-172221F_20190209-172256D", + "P00 INFO: backup stop archive = 000000020000000000000012, lsn = 0/12000130", + "P00 INFO: new backup label = 20190310-120137F_20190310-120205D", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin" ] @@ -7625,7 +7435,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172221F_20190209-172256D" + "20190310-120137F_20190310-120205D" ] } }, @@ -7640,7 +7450,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-172221F_20190209-172246D|remove archive" + "archive retention on backup 20190310-120137F_20190310-120158D|remove archive" ] }, "host" : "pg-primary", @@ -7651,13 +7461,13 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.10: --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 20190209-172208F, archiveId = 9.5-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", - "P00 DETAIL: archive retention on backup 20190209-172221F, archiveId = 9.5-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", - "P00 DETAIL: archive retention on backup 20190209-172221F_20190209-172246D, archiveId = 9.5-1, start = 000000020000000000000011, stop = 000000020000000000000011", - "P00 DETAIL: archive retention on backup 20190209-172221F_20190209-172256D, archiveId = 9.5-1, start = 000000020000000000000014", - "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 00000002000000000000000D, stop = 000000020000000000000010", - "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 000000020000000000000012, stop = 000000020000000000000013", + "P00 INFO: expire command begin 2.11: --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 20190310-120126F, archiveId = 9.5-1, start = 00000002000000000000000A, stop = 00000002000000000000000A", + "P00 DETAIL: archive retention on backup 20190310-120137F, archiveId = 9.5-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", + "P00 DETAIL: archive retention on backup 20190310-120137F_20190310-120158D, archiveId = 9.5-1, start = 00000002000000000000000F, stop = 00000002000000000000000F", + "P00 DETAIL: archive retention on backup 20190310-120137F_20190310-120205D, archiveId = 9.5-1, start = 000000020000000000000012", + "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 00000002000000000000000C, stop = 00000002000000000000000E", + "P00 DETAIL: remove archive: archiveId = 9.5-1, start = 000000020000000000000010, stop = 000000020000000000000011", "P00 INFO: expire command end: completed successfully" ] } @@ -7697,7 +7507,7 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 879 lines of output]", + " [filtered 877 lines of output]", "P01 DETAIL: restore file /var/lib/pgsql/9.5/data/base/1/12211 - exists and is zero size (0B, 100%)", "P00 INFO: write /var/lib/pgsql/9.5/data/recovery.conf", "P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started)", @@ -8080,7 +7890,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-02-09 17:23:56.872252+00" + "2019-03-10 12:02:57.164371+00" ] } }, @@ -8133,7 +7943,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:23:56.872252+00\" restore" + " --type=time \"--target=2019-03-10 12:02:57.164371+00\" \\", + " --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -8177,7 +7988,8 @@ "value" : { "output" : [ "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-02-09 17:23:56.872252+00'" + "recovery_target_time = '2019-03-10 12:02:57.164371+00'", + "recovery_target_action = 'promote'" ] } }, @@ -8256,19 +8068,19 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:23:46 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:23:56.872252+00", + "LOG: database system was interrupted; last known up at 2019-03-10 12:02:49 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:02:57.164371+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"00000004000000000000001A\" from archive", - "LOG: redo starts at 0/1A000028", - "LOG: consistent recovery state reached at 0/1A000130", - "LOG: restored log file \"00000004000000000000001B\" from archive", - "LOG: recovery stopping before commit of transaction 630, time 2019-02-09 17:23:57.285067+00", - "LOG: redo done at 0/1B01B8A0", - "LOG: last completed transaction was at log time 2019-02-09 17:23:56.283389+00", + "LOG: restored log file \"000000040000000000000017\" from archive", + "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 630, time 2019-03-10 12:02:57.617045+00", + "LOG: redo done at 0/1801C9E8", + "LOG: last completed transaction was at log time 2019-03-10 12:02:56.766223+00", "LOG: selected new timeline ID: 5", "LOG: archive recovery complete", - " [filtered 5 lines of output]" + " [filtered 4 lines of output]" ] } }, @@ -8317,7 +8129,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-172221F_20190209-172345D" + "20190310-120137F_20190310-120248D" ] } }, @@ -8352,7 +8164,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:23:56.872252+00\" restore" + " --type=time \"--target=2019-03-10 12:02:57.164371+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -8449,14 +8261,14 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:24:14 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:23:56.872252+00", + "LOG: database system was interrupted; last known up at 2019-03-10 12:03:12 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:02:57.164371+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"00000005000000000000001C\" from archive", - "LOG: redo starts at 0/1C000028", - "LOG: consistent recovery state reached at 0/1C0000F8", - "LOG: redo done at 0/1C0000F8", - "LOG: restored log file \"00000005000000000000001C\" 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 8 lines of output]" ] } @@ -8471,7 +8283,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20190209-172221F_20190209-172345D" + "20190310-120137F_20190310-120248D" ] }, "host" : "pg-primary", @@ -8487,47 +8299,47 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.5-1): 00000002000000000000000B/00000005000000000000001C", + " wal archive min/max (9.5-1): 00000002000000000000000A/000000050000000000000019", "", - " full backup: 20190209-172208F", - " timestamp start/stop: 2019-02-09 17:22:08 / 2019-02-09 17:22:19", + " full backup: 20190310-120126F", + " timestamp start/stop: 2019-03-10 12:01:26 / 2019-03-10 12:01:36", + " wal start/stop: 00000002000000000000000A / 00000002000000000000000A", + " database size: 20.6MB, backup size: 20.6MB", + " repository size: 2.4MB, repository backup size: 2.4MB", + "", + " full backup: 20190310-120137F", + " timestamp start/stop: 2019-03-10 12:01:37 / 2019-03-10 12:01:46", " wal start/stop: 00000002000000000000000B / 00000002000000000000000B", " database size: 20.6MB, backup size: 20.6MB", " repository size: 2.4MB, repository backup size: 2.4MB", "", - " full backup: 20190209-172221F", - " timestamp start/stop: 2019-02-09 17:22:21 / 2019-02-09 17:22:32", - " wal start/stop: 00000002000000000000000C / 00000002000000000000000C", - " database size: 20.6MB, backup size: 20.6MB", - " repository size: 2.4MB, repository backup size: 2.4MB", - "", - " diff backup: 20190209-172221F_20190209-172256D", - " timestamp start/stop: 2019-02-09 17:22:56 / 2019-02-09 17:23:02", - " wal start/stop: 000000020000000000000014 / 000000020000000000000014", - " database size: 20.6MB, backup size: 116.5KB", + " diff backup: 20190310-120137F_20190310-120205D", + " timestamp start/stop: 2019-03-10 12:02:05 / 2019-03-10 12:02:10", + " wal start/stop: 000000020000000000000012 / 000000020000000000000012", + " database size: 20.6MB, backup size: 116.0KB", " repository size: 2.4MB, repository backup size: 12.7KB", - " backup reference list: 20190209-172221F", + " backup reference list: 20190310-120137F", "", - " incr backup: 20190209-172221F_20190209-172316I", - " timestamp start/stop: 2019-02-09 17:23:16 / 2019-02-09 17:23:27", - " wal start/stop: 000000030000000000000017 / 000000030000000000000017", + " incr backup: 20190310-120137F_20190310-120223I", + " timestamp start/stop: 2019-03-10 12:02:23 / 2019-03-10 12:02:33", + " wal start/stop: 000000030000000000000014 / 000000030000000000000014", " database size: 33.9MB, backup size: 13.4MB", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20190209-172221F, 20190209-172221F_20190209-172256D", + " backup reference list: 20190310-120137F, 20190310-120137F_20190310-120205D", "", - " diff backup: 20190209-172221F_20190209-172345D", - " timestamp start/stop: 2019-02-09 17:23:45 / 2019-02-09 17:23:55", - " wal start/stop: 00000004000000000000001A / 00000004000000000000001A", + " diff backup: 20190310-120137F_20190310-120248D", + " timestamp start/stop: 2019-03-10 12:02:48 / 2019-03-10 12:02:56", + " wal start/stop: 000000040000000000000017 / 000000040000000000000017", " database size: 27.3MB, backup size: 6.9MB", - " repository size: 3.2MB, repository backup size: 831.3KB", - " backup reference list: 20190209-172221F", + " repository size: 3.2MB, repository backup size: 831.8KB", + " backup reference list: 20190310-120137F", "", - " incr backup: 20190209-172221F_20190209-172413I", - " timestamp start/stop: 2019-02-09 17:24:13 / 2019-02-09 17:24:20", - " wal start/stop: 00000005000000000000001C / 00000005000000000000001C", + " incr backup: 20190310-120137F_20190310-120311I", + " timestamp start/stop: 2019-03-10 12:03:11 / 2019-03-10 12:03:18", + " wal start/stop: 000000050000000000000019 / 000000050000000000000019", " database size: 27.3MB, backup size: 2.0MB", - " repository size: 3.2MB, repository backup size: 209.6KB", - " backup reference list: 20190209-172221F, 20190209-172221F_20190209-172345D" + " repository size: 3.2MB, repository backup size: 210KB", + " backup reference list: 20190310-120137F, 20190310-120137F_20190310-120248D" ] } }, @@ -8549,8 +8361,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:23:56.872252+00\" \\", - " --set=20190209-172221F_20190209-172345D restore" + " --type=time \"--target=2019-03-10 12:02:57.164371+00\" \\", + " --set=20190310-120137F_20190310-120248D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -8647,19 +8459,19 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:23:46 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:23:56.872252+00", + "LOG: database system was interrupted; last known up at 2019-03-10 12:02:49 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 12:02:57.164371+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"00000004000000000000001A\" from archive", - "LOG: redo starts at 0/1A000028", - "LOG: consistent recovery state reached at 0/1A000130", - "LOG: restored log file \"00000004000000000000001B\" from archive", - "LOG: recovery stopping before commit of transaction 630, time 2019-02-09 17:23:57.285067+00", - "LOG: redo done at 0/1B01B8A0", - "LOG: last completed transaction was at log time 2019-02-09 17:23:56.283389+00", + "LOG: restored log file \"000000040000000000000017\" from archive", + "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 630, time 2019-03-10 12:02:57.617045+00", + "LOG: redo done at 0/1801C9E8", + "LOG: last completed transaction was at log time 2019-03-10 12:02:56.766223+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", - " [filtered 7 lines of output]" + " [filtered 6 lines of output]" ] } }, @@ -8818,7 +8630,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -8845,16 +8657,16 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo --start-fast --stop-auto", + "P00 INFO: backup command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --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-02-09 17:25:02\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000007000000000000001C, lsn = 0/1C000028", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:03:53\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000070000000000000019, lsn = 0/19000028", " [filtered 1119 lines of output]", - "P02 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12221 (0B, 100%)", - "P04 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12211 (0B, 100%)", + "P04 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 = 27.2MB", "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 00000007000000000000001C, lsn = 0/1C000130", + "P00 INFO: backup stop archive = 000000070000000000000019, lsn = 0/19000130", " [filtered 4 lines of output]" ] } @@ -8893,7 +8705,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -8919,7 +8731,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-delete command end: completed successfully" ] } @@ -8981,7 +8793,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -9566,17 +9378,17 @@ " cipher: none", "", " db (current)", - " wal archive min/max (9.5-1): 000000080000000000000024/000000080000000000000025", + " wal archive min/max (9.5-1): 000000080000000000000021/000000080000000000000022", "", - " full backup: 20190209-172712F", - " timestamp start/stop: 2019-02-09 17:27:12 / 2019-02-09 17:27:29", - " wal start/stop: 000000080000000000000024 / 000000080000000000000024", + " full backup: 20190310-120541F", + " timestamp start/stop: 2019-03-10 12:05:41 / 2019-03-10 12:05:54", + " wal start/stop: 000000080000000000000021 / 000000080000000000000021", " database size: 27.3MB, backup size: 27.3MB", " repository size: 3.2MB, repository backup size: 3.2MB", "", - " full backup: 20190209-172732F", - " timestamp start/stop: 2019-02-09 17:27:32 / 2019-02-09 17:27:50", - " wal start/stop: 000000080000000000000025 / 000000080000000000000025", + " full backup: 20190310-120556F", + " timestamp start/stop: 2019-03-10 12:05:56 / 2019-03-10 12:06:11", + " wal start/stop: 000000080000000000000022 / 000000080000000000000022", " database size: 27.3MB, backup size: 27.3MB", " repository size: 3.2MB, repository backup size: 3.2MB" ] @@ -9722,7 +9534,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -10126,12 +9938,12 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:27:33 UTC", + "LOG: database system was interrupted; last known up at 2019-03-10 12:05:57 UTC", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", - "LOG: restored log file \"000000080000000000000025\" from archive", - "LOG: redo starts at 0/25000028", - "LOG: consistent recovery state reached at 0/25000130", + "LOG: restored log file \"000000080000000000000022\" from archive", + "LOG: redo starts at 0/22000028", + "LOG: consistent recovery state reached at 0/22000130", "LOG: database system is ready to accept read only connections" ] } @@ -10211,9 +10023,9 @@ "type" : "exe", "value" : { "output" : [ - " pg_switch_xlog | now ", - "----------------+-------------------------------", - " 0/2601F2D0 | 2019-02-09 17:28:28.636122+00", + " pg_switch_xlog | now ", + "----------------+------------------------------", + " 0/230203E0 | 2019-03-10 12:06:48.79124+00", "(1 row)" ] } @@ -10242,7 +10054,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:28:31.849276+00", + " Important Data | 2019-03-10 12:06:55.038606+00", "(1 row)" ] } @@ -10268,7 +10080,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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.11: --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 xlog cannot be performed on the standby, all other checks passed successfully", "P00 INFO: check command end: completed successfully" ] @@ -10506,8 +10318,8 @@ "output" : [ " [filtered 6 lines of output]", "LOG: database system is ready to accept read only connections", - "LOG: restored log file \"000000080000000000000026\" from archive", - "LOG: started streaming WAL from primary at 0/27000000 on timeline 8" + "LOG: restored log file \"000000080000000000000023\" from archive", + "LOG: started streaming WAL from primary at 0/24000000 on timeline 8" ] } }, @@ -10539,7 +10351,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:28:50.190353+00", + " Important Data | 2019-03-10 12:07:12.072164+00", "(1 row)" ] } @@ -10568,7 +10380,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:28:50.790256+00", + " Important Data | 2019-03-10 12:07:12.618665+00", "(1 row)" ] } @@ -10800,8 +10612,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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 00000008000000000000002C successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000800000000/00000008000000000000002C-109b38ebcd85b91f2113ac6c871155d70d6e27ca.gz'", + "P00 INFO: check command begin 2.11: --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 000000080000000000000029 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000800000000/000000080000000000000029-2eed72775e8ccd13dfa8bd68b664d0aeee6f1905.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -10828,19 +10640,24 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/000000080000000000000027] --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 4 WAL file(s) to archive: 000000080000000000000027...00000008000000000000002A", - "P01 DETAIL: pushed WAL file 000000080000000000000027 to archive", - "P02 DETAIL: pushed WAL file 000000080000000000000028 to archive", - "P02 DETAIL: pushed WAL file 00000008000000000000002A to archive", - "P01 DETAIL: pushed WAL file 000000080000000000000029 to archive", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/000000080000000000000024] --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 2 WAL file(s) to archive: 000000080000000000000024...000000080000000000000025", + "P01 DETAIL: pushed WAL file 000000080000000000000024 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000025 to archive", "P00 INFO: archive-push command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/00000008000000000000002B] --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 2 WAL file(s) to archive: 00000008000000000000002B...00000008000000000000002C", - "P01 DETAIL: pushed WAL file 00000008000000000000002B to archive", - "P02 DETAIL: pushed WAL file 00000008000000000000002C to archive", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/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: push 3 WAL file(s) to archive: 000000080000000000000026...000000080000000000000028", + "P01 DETAIL: pushed WAL file 000000080000000000000026 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000027 to archive", + "P01 DETAIL: pushed WAL file 000000080000000000000028 to archive", + "P00 INFO: archive-push command end: completed successfully", + "", + "-------------------PROCESS START-------------------", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/000000080000000000000029] --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: 000000080000000000000029", + "P01 DETAIL: pushed WAL file 000000080000000000000029 to archive", "P00 INFO: archive-push command end: completed successfully" ] } @@ -10868,7 +10685,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "got WAL file [0-F]{24} from archive" + "found [0-F]{24} in the archive" ] }, "host" : "pg-standby", @@ -10880,44 +10697,30 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C] --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: 000000080000000000000025...00000008000000000000002C", - "P01 DETAIL: got WAL file 000000080000000000000025 from archive", - "P01 DETAIL: WAL file 000000080000000000000027 not found in archive", - "P01 DETAIL: WAL file 000000080000000000000028 not found in archive", - "P01 DETAIL: WAL file 000000080000000000000029 not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002A not found in archive", - "P02 DETAIL: got WAL file 000000080000000000000026 from archive", - "P01 DETAIL: WAL file 00000008000000000000002B not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - " [filtered 16 lines of output]", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D, 00000008000000000000002E] --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: 000000080000000000000027...00000008000000000000002E", - "P02 DETAIL: got WAL file 000000080000000000000028 from archive", - "P02 DETAIL: WAL file 000000080000000000000029 not found in archive", - "P01 DETAIL: got WAL file 000000080000000000000027 from archive", - "P02 DETAIL: WAL file 00000008000000000000002A not found in archive", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - " [filtered 6 lines of output]", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D, 00000008000000000000002E, 00000008000000000000002F, 000000080000000000000030] --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: 000000080000000000000029...000000080000000000000030", - "P01 DETAIL: got WAL file 000000080000000000000029 from archive", - "P01 DETAIL: WAL file 00000008000000000000002B not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002C not found in archive", - " [filtered 2 lines of output]", - "P01 DETAIL: WAL file 00000008000000000000002F not found in archive", - "P01 DETAIL: WAL file 000000080000000000000030 not found in archive", - "P02 DETAIL: got WAL file 00000008000000000000002A from archive", - "P00 INFO: archive-get command end: completed successfully", - "", - "-------------------PROCESS START-------------------", - "P00 INFO: archive-get command begin 2.10: [00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D, 00000008000000000000002E, 00000008000000000000002F, 000000080000000000000030, 000000080000000000000031, 000000080000000000000032] --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: 00000008000000000000002B...000000080000000000000032", - "P01 DETAIL: got WAL file 00000008000000000000002B from archive", - "P02 DETAIL: got WAL file 00000008000000000000002C from archive", - "P01 DETAIL: WAL file 00000008000000000000002D not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002F not found in archive", - " [filtered 29 lines of output]" + "P00 INFO: archive-get-async command begin 2.11: [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.5/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", + "P00 DETAIL: found 000000080000000000000023 in the archive", + "P00 DETAIL: found 000000080000000000000022 in the archive", + "P00 DETAIL: unable to find 000000080000000000000024 in the archive", + "P00 DETAIL: unable to find 000000080000000000000025 in the archive", + " [filtered 33 lines of output]", + "P00 INFO: archive-get-async command begin 2.11: [000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B] --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: 000000080000000000000024...00000008000000000000002B", + "P00 DETAIL: found 000000080000000000000025 in the archive", + "P00 DETAIL: found 000000080000000000000024 in the archive", + "P00 DETAIL: unable to find 000000080000000000000026 in the archive", + "P00 DETAIL: unable to find 000000080000000000000027 in the archive", + " [filtered 20 lines of output]", + "P00 INFO: archive-get-async command begin 2.11: [000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D] --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: 000000080000000000000026...00000008000000000000002D", + "P00 DETAIL: found 000000080000000000000026 in the archive", + "P00 DETAIL: found 000000080000000000000027 in the archive", + "P00 DETAIL: found 000000080000000000000028 in the archive", + "P00 DETAIL: unable to find 00000008000000000000002A in the archive", + "P00 DETAIL: found 000000080000000000000029 in the archive", + "P00 DETAIL: unable to find 00000008000000000000002B in the archive", + "P00 DETAIL: unable to find 00000008000000000000002C in the archive", + " [filtered 13 lines of output]" ] } }, @@ -10999,16 +10802,16 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:29:16\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000008000000000000002E, lsn = 0/2E000028", - "P00 INFO: wait for replay on the standby to reach 0/2E000028", - "P00 INFO: replay on the standby reached 0/2E000350", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_log/postgresql.log (8.8KB, 0%) checksum c22433fcc14460d6fe9f10ce63e0a80033947f83", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/global/pg_control (8KB, 0%) checksum 2856476ea0e35808efd565e7c4f778410d3e5710", + "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 12:07:35\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 00000008000000000000002B, lsn = 0/2B000028", + "P00 INFO: wait for replay on the standby to reach 0/2B000028", + "P00 INFO: replay on the standby reached 0/2B000350", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_log/postgresql.log (8.4KB, 0%) checksum 574ac960c170638131f2061feaf3182824effcbd", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/global/pg_control (8KB, 0%) checksum 1934d65fd57fcf02284a64b9f3dfdc3ed2617165", "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_hba.conf (4.1KB, 0%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/backup_label (238B, 0%) checksum 42e135c73c5971bfecdd61a27c39bfbd0526e537", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2674 (360KB, 17%) checksum e76395716c622e35f24641775884175ce56c7812", - "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249 (360KB, 34%) checksum 824aca2fc4dfb5ace2327cecce9ebb6109357371", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/backup_label (238B, 0%) checksum fd32b9d1f0202ff9876424cbcfe799bca70a1c7e", + "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/1249 (360KB, 17%) checksum 9c51ce0678240a3e0ce6bbd2cb5ce411078022fb", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12378/2674 (352KB, 33%) checksum d4620f9b388821fe7710ced68f578eeb1a452c57", " [filtered 36 lines of output]" ] } @@ -11272,7 +11075,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.10: --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.11: --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" ] } @@ -11309,7 +11112,7 @@ "type" : "exe", "value" : { "output" : [ - "postgresql-9.6 (pid 4792) is running..." + "postgresql-9.6 (pid 4785) is running..." ] } }, @@ -11514,7 +11317,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo mkdir /root/pgbackrest-release-2.10" + "sudo mkdir /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -11527,7 +11330,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/libc /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -11540,7 +11343,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.10" + "sudo cp -r /pgbackrest/src /root/pgbackrest-release-2.11" ], "host" : "build", "load-env" : true, @@ -11586,7 +11389,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo make -s -C /root/pgbackrest-release-2.10/src" + "sudo make -s -C /root/pgbackrest-release-2.11/src" ], "host" : "build", "load-env" : true, @@ -11626,7 +11429,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-primary", @@ -11768,7 +11571,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - General help", + "pgBackRest 2.11 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -11797,8 +11600,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres /usr/pgsql-9.5/bin/initdb \\", - " -D /var/lib/pgsql/9.5/data -k -A peer" + "sudo -u postgres /usr/pgsql-9.6/bin/initdb \\", + " -D /var/lib/pgsql/9.6/data -k -A peer" ], "host" : "pg-primary", "load-env" : true, @@ -11809,7 +11612,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-primary", "option" : { "listen_addresses" : { @@ -11826,7 +11629,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-primary", "option" : { "log_line_prefix" : { @@ -11844,7 +11647,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-primary", "option" : { "log_filename" : { @@ -11868,7 +11671,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.5/data" + "value" : "/var/lib/pgsql/9.6/data" } }, "global" : { @@ -11885,7 +11688,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data" + "pg1-path=/var/lib/pgsql/9.6/data" ] } }, @@ -11912,7 +11715,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 2.10 - 'backup' command - 'log-path' option help", + "pgBackRest 2.11 - 'backup' command - 'log-path' option help", "", "Path where log files are stored.", "", @@ -11979,7 +11782,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-path=/var/lib/pgbackrest" @@ -11988,7 +11791,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-primary", "option" : { "archive_command" : { @@ -12022,7 +11825,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl restart postgresql-9.5.service" + "sudo systemctl restart postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -12060,7 +11863,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -12086,7 +11889,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -12116,7 +11919,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -12150,7 +11953,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --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.11: --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" ] } @@ -12176,8 +11979,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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 stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000100000000/000000010000000000000001-d3a70ad8227d2eb63458712297e43a065fc80918.gz'", + "P00 INFO: check command begin 2.11: --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 stored in the archive at '/var/lib/pgbackrest/archive/demo/9.6-1/0000000100000000/000000010000000000000001-248f7485709bfd5d2ea41f473a50974380360f41.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -12204,15 +12007,15 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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.11: --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 exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:10:19\": backup begins after the next regular checkpoint completes", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 11:51:08\": 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/12280 (0B, 100%)", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12275 (0B, 100%)", - "P00 INFO: full backup size = 20.6MB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", + " [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: 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]" ] @@ -12232,7 +12035,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171019F" + "20190310-115108F" ] } }, @@ -12258,11 +12061,11 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 4 lines of output]", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/global/pg_control (8KB, 97%) checksum 68a6f37a0a1e466d7e0448665064c692a65deb4c", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/backup_label (236B, 100%) checksum 136c324ee523592f12b65ecbc1732474edab8f42", - "P00 INFO: diff backup size = 8.2KB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", + " [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 abc92ddf422fa1c77eb5000c1e4904a8284d667e", + "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]" ] @@ -12294,20 +12097,20 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.5-1): 000000010000000000000002/000000010000000000000003", + " wal archive min/max (9.6-1): 000000010000000000000002/000000010000000000000003", "", - " full backup: 20190209-171019F", - " timestamp start/stop: 2019-02-09 17:10:19 / 2019-02-09 17:10:28", + " full backup: 20190310-115108F", + " timestamp start/stop: 2019-03-10 11:51:08 / 2019-03-10 11:51:17", " wal start/stop: 000000010000000000000002 / 000000010000000000000002", - " database size: 20.7MB, backup size: 20.7MB", - " repository size: 2.4MB, repository backup size: 2.4MB", + " database size: 20.9MB, backup size: 20.9MB", + " repository size: 2.5MB, repository backup size: 2.5MB", "", - " diff backup: 20190209-171019F_20190209-171029D", - " timestamp start/stop: 2019-02-09 17:10:29 / 2019-02-09 17:10:33", + " diff backup: 20190310-115108F_20190310-115118D", + " timestamp start/stop: 2019-03-10 11:51:18 / 2019-03-10 11:51:22", " wal start/stop: 000000010000000000000003 / 000000010000000000000003", - " database size: 20.7MB, backup size: 8.2KB", - " repository size: 2.4MB, repository backup size: 400B", - " backup reference list: 20190209-171019F" + " database size: 20.9MB, backup size: 8.2KB", + " repository size: 2.5MB, repository backup size: 421B", + " backup reference list: 20190310-115108F" ] } }, @@ -12315,7 +12118,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -12328,7 +12131,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres rm /var/lib/pgsql/9.5/data/global/pg_control" + "sudo -u postgres rm /var/lib/pgsql/9.6/data/global/pg_control" ], "host" : "pg-primary", "load-env" : true, @@ -12341,7 +12144,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "err-expect" : "1", "host" : "pg-primary", @@ -12355,7 +12158,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl status postgresql-9.5.service" + "sudo systemctl status postgresql-9.6.service" ], "err-expect" : "3", "highlight" : { @@ -12373,12 +12176,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 6 lines of output]", + " [filtered 7 lines of output]", "", - "Feb 09 17:10:35 pg-primary systemd[1]: Starting PostgreSQL 9.5 database server...", - "Feb 09 17:10:35 pg-primary pg_ctl[905]: postgres: could not find the database system", - "Feb 09 17:10:35 pg-primary pg_ctl[905]: Expected to find it in the directory \"/var/lib/pgsql/9.5/data\",", - "Feb 09 17:10:35 pg-primary pg_ctl[905]: but could not open file \"/var/lib/pgsql/9.5/data/global/pg_control\": No such file or directory", + "Mar 10 11:51:23 pg-primary systemd[1]: Starting PostgreSQL 9.6 database server...", + "Mar 10 11:51:23 pg-primary postmaster[837]: postmaster: could not find the database system", + "Mar 10 11:51:23 pg-primary postmaster[837]: Expected to find it in the directory \"/var/lib/pgsql/9.6/data\",", + "Mar 10 11:51:23 pg-primary postmaster[837]: but could not open file \"/var/lib/pgsql/9.6/data/global/pg_control\": No such file or directory", " [filtered 3 lines of output]" ] } @@ -12387,7 +12190,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres find /var/lib/pgsql/9.5/data -mindepth 1 -delete" + "sudo -u postgres find /var/lib/pgsql/9.6/data -mindepth 1 -delete" ], "host" : "pg-primary", "load-env" : true, @@ -12413,7 +12216,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -12457,12 +12260,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-171019F_20190209-171029D, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:10:46\": backup begins after the next regular checkpoint completes", + "P00 INFO: backup command begin 2.11: --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 = 20190310-115108F_20190310-115118D, version = 2.11", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 11:51:32\": 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]" + " [filtered 9 lines of output]" ] } }, @@ -12482,7 +12285,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -12518,165 +12321,12 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-171019F_20190209-171046I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:10:53\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup command begin 2.11: --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 = 20190310-115108F_20190310-115132I, version = 2.11", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 11:51:39\": 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, 97%) checksum a0397f5009733eb8cdbb4890ab38d7de8c4b84e4", - " [filtered 8 lines of output]" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo chmod 550 /var/lib/pgbackrest/backup/demo/" - ], - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "err-expect" : "47", - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "ERROR:" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:10:59\": 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/20190209-171019F_20190209-171059I': Permission denied", - "P00 INFO: backup command end: aborted with exception [047]" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo chmod 750 /var/lib/pgbackrest/backup/demo/" - ], - "host" : "pg-primary", - "load-env" : true, - "output" : false, - "run-as-user" : null - }, - "type" : "exe" - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "err-expect" : "57", - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "ERROR:" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-171019F_20190209-171053I, version = 2.10", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:11:02\": backup begins after the requested immediate checkpoint completes", - "P00 ERROR: [057]: ERROR: a backup is already in progress", - " HINT: Run pg_stop_backup() and try again.:", - " 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-02-09 17:11:02', true) as lsn" - ] - } - }, - { - "key" : { - "file" : "/etc/pgbackrest/pgbackrest.conf", - "host" : "pg-primary", - "option" : { - "global" : { - "stop-auto" : { - "value" : "y" - } - } - } - }, - "type" : "cfg-pgbackrest", - "value" : { - "config" : [ - "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", - "", - "[global]", - "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", - "repo1-cipher-type=aes-256-cbc", - "repo1-path=/var/lib/pgbackrest", - "repo1-retention-full=2", - "start-fast=y", - "stop-auto=y", - "", - "[global:archive-push]", - "compress-level=3" - ] - } - }, - { - "key" : { - "bash-wrap" : true, - "cmd" : [ - "sudo -u postgres pgbackrest --stanza=demo --type=incr \\", - " --log-level-console=info backup" - ], - "highlight" : { - "filter" : true, - "filter-context" : 2, - "list" : [ - "cluster is already in backup mode|backup begins after the requested immediate checkpoint completes" - ] - }, - "host" : "pg-primary", - "load-env" : true, - "output" : true, - "run-as-user" : null - }, - "type" : "exe", - "value" : { - "output" : [ - "P00 INFO: backup command begin 2.10: --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 = 20190209-171019F_20190209-171053I, version = 2.10", - "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-02-09 17:11:04\": 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, 83%) checksum fb964a9969236751847bd4c59b88e9c6a1f6cb08", - " [filtered 9 lines of output]" + "P01 INFO: backup file /var/lib/pgsql/9.6/data/global/pg_control (8KB, 100%) checksum f530fce45839ee06877ea12e544c71bc5c6950f2", + " [filtered 7 lines of output]" ] } }, @@ -12701,8 +12351,8 @@ " \"database\" : {", " \"id\" : 1", " },", - " \"id\" : \"9.5-1\",", - " \"max\" : \"000000020000000000000009\",", + " \"id\" : \"9.6-1\",", + " \"max\" : \"000000020000000000000006\",", " \"min\" : \"000000010000000000000002\"", " }", " ],", @@ -12714,25 +12364,25 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 21673368,", + " \"delta\" : 21952944,", " \"repository\" : {", - " \"delta\" : 2543440,", - " \"size\" : 2543440", + " \"delta\" : 2581285,", + " \"size\" : 2581285", " },", - " \"size\" : 21673368", + " \"size\" : 21952944", " },", - " \"label\" : \"20190209-171019F\",", + " \"label\" : \"20190310-115108F\",", " \"prior\" : null,", " \"reference\" : null,", " \"timestamp\" : {", - " \"start\" : 1549732219,", - " \"stop\" : 1549732228", + " \"start\" : 1552218668,", + " \"stop\" : 1552218677", " },", " \"type\" : \"full\"", " },", @@ -12743,27 +12393,27 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 8428,", + " \"delta\" : 8421,", " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2543440", + " \"delta\" : 421,", + " \"size\" : 2581269", " },", - " \"size\" : 21673368", + " \"size\" : 21952944", " },", - " \"label\" : \"20190209-171019F_20190209-171029D\",", - " \"prior\" : \"20190209-171019F\",", + " \"label\" : \"20190310-115108F_20190310-115118D\",", + " \"prior\" : \"20190310-115108F\",", " \"reference\" : [", - " \"20190209-171019F\"", + " \"20190310-115108F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732229,", - " \"stop\" : 1549732233", + " \"start\" : 1552218678,", + " \"stop\" : 1552218682", " },", " \"type\" : \"diff\"", " },", @@ -12774,27 +12424,27 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 9348,", + " \"delta\" : 9341,", " \"repository\" : {", - " \"delta\" : 832,", - " \"size\" : 2543600", + " \"delta\" : 837,", + " \"size\" : 2581413", " },", - " \"size\" : 21673936", + " \"size\" : 21953512", " },", - " \"label\" : \"20190209-171019F_20190209-171046I\",", - " \"prior\" : \"20190209-171019F_20190209-171029D\",", + " \"label\" : \"20190310-115108F_20190310-115132I\",", + " \"prior\" : \"20190310-115108F_20190310-115118D\",", " \"reference\" : [", - " \"20190209-171019F\"", + " \"20190310-115108F\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732246,", - " \"stop\" : 1549732252", + " \"start\" : 1552218692,", + " \"stop\" : 1552218697", " },", " \"type\" : \"incr\"", " },", @@ -12805,59 +12455,28 @@ " },", " \"backrest\" : {", " \"format\" : 5,", - " \"version\" : \"2.10\"", + " \"version\" : \"2.11\"", " },", " \"database\" : {", " \"id\" : 1", " },", " \"info\" : {", - " \"delta\" : 8428,", + " \"delta\" : 8421,", " \"repository\" : {", - " \"delta\" : 400,", - " \"size\" : 2543600", + " \"delta\" : 421,", + " \"size\" : 2581413", " },", - " \"size\" : 21673936", + " \"size\" : 21953512", " },", - " \"label\" : \"20190209-171019F_20190209-171053I\",", - " \"prior\" : \"20190209-171019F_20190209-171046I\",", + " \"label\" : \"20190310-115108F_20190310-115139I\",", + " \"prior\" : \"20190310-115108F_20190310-115132I\",", " \"reference\" : [", - " \"20190209-171019F\",", - " \"20190209-171019F_20190209-171046I\"", + " \"20190310-115108F\",", + " \"20190310-115108F_20190310-115132I\"", " ],", " \"timestamp\" : {", - " \"start\" : 1549732253,", - " \"stop\" : 1549732258", - " },", - " \"type\" : \"incr\"", - " },", - " {", - " \"archive\" : {", - " \"start\" : \"000000020000000000000009\",", - " \"stop\" : \"000000020000000000000009\"", - " },", - " \"backrest\" : {", - " \"format\" : 5,", - " \"version\" : \"2.10\"", - " },", - " \"database\" : {", - " \"id\" : 1", - " },", - " \"info\" : {", - " \"delta\" : 9773,", - " \"repository\" : {", - " \"delta\" : 1024,", - " \"size\" : 2543792", - " },", - " \"size\" : 21674361", - " },", - " \"label\" : \"20190209-171019F_20190209-171104I\",", - " \"prior\" : \"20190209-171019F_20190209-171053I\",", - " \"reference\" : [", - " \"20190209-171019F\"", - " ],", - " \"timestamp\" : {", - " \"start\" : 1549732264,", - " \"stop\" : 1549732270", + " \"start\" : 1552218699,", + " \"stop\" : 1552218703", " },", " \"type\" : \"incr\"", " }", @@ -12866,8 +12485,8 @@ " \"db\" : [", " {", " \"id\" : 1,", - " \"system-id\" : 6656049069499130188,", - " \"version\" : \"9.5\"", + " \"system-id\" : 6666728292068995366,", + " \"version\" : \"9.6\"", " }", " ],", " \"name\" : \"demo\",", @@ -13021,7 +12640,7 @@ "output" : [ " name | last_successful_backup | last_archived_wal ", "--------+------------------------+--------------------------", - " \"demo\" | 2019-02-09 17:11:10+00 | 000000020000000000000009", + " \"demo\" | 2019-03-10 11:51:43+00 | 000000020000000000000006", "(1 row)" ] } @@ -13042,7 +12661,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -13050,7 +12669,6 @@ "repo1-path=/var/lib/pgbackrest", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -13068,7 +12686,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-171019F|remove archive" + "archive retention on backup 20190310-115108F|remove archive" ] }, "host" : "pg-primary", @@ -13079,11 +12697,11 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 860 lines of output]", + " [filtered 874 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 DETAIL: archive retention on backup 20190209-171019F, archiveId = 9.5-1, start = 000000010000000000000002", - "P00 DETAIL: no archive to remove, archiveId = 9.5-1", + "P00 DETAIL: archive retention on backup 20190310-115108F, archiveId = 9.6-1, start = 000000010000000000000002", + "P00 DETAIL: no archive to remove, archiveId = 9.6-1", "P00 INFO: expire command end: completed successfully" ] } @@ -13102,7 +12720,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171114F" + "20190310-115146F" ] } }, @@ -13117,7 +12735,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20190209-171019F|archive retention on backup 20190209-171114F|remove archive" + "expire full backup set\\: 20190310-115108F|archive retention on backup 20190310-115146F|remove archive" ] }, "host" : "pg-primary", @@ -13128,13 +12746,13 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 860 lines of output]", + " [filtered 873 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire full backup set: 20190209-171019F, 20190209-171019F_20190209-171029D, 20190209-171019F_20190209-171046I, 20190209-171019F_20190209-171053I, 20190209-171019F_20190209-171104I", - "P00 INFO: remove expired backup 20190209-171019F_20190209-171104I", - "P00 INFO: remove expired backup 20190209-171019F_20190209-171053I", - " [filtered 3 lines of output]" + "P00 INFO: expire full backup set: 20190310-115108F, 20190310-115108F_20190310-115118D, 20190310-115108F_20190310-115132I, 20190310-115108F_20190310-115139I", + "P00 INFO: remove expired backup 20190310-115108F_20190310-115139I", + "P00 INFO: remove expired backup 20190310-115108F_20190310-115132I", + " [filtered 2 lines of output]" ] } }, @@ -13154,7 +12772,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -13163,7 +12781,6 @@ "repo1-retention-diff=1", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -13197,7 +12814,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171123F_20190209-171133D" + "20190310-115155F_20190310-115205D" ] } }, @@ -13225,7 +12842,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20190209-171123F_20190209-171133D" + "expire diff backup set: 20190310-115155F_20190310-115205D" ] }, "host" : "pg-primary", @@ -13236,12 +12853,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 11 lines of output]", + " [filtered 9 lines of output]", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin", - "P00 INFO: expire diff backup set: 20190209-171123F_20190209-171133D, 20190209-171123F_20190209-171139I", - "P00 INFO: remove expired backup 20190209-171123F_20190209-171139I", - "P00 INFO: remove expired backup 20190209-171123F_20190209-171133D" + "P00 INFO: expire diff backup set: 20190310-115155F_20190310-115205D, 20190310-115155F_20190310-115211I", + "P00 INFO: remove expired backup 20190310-115155F_20190310-115211I", + "P00 INFO: remove expired backup 20190310-115155F_20190310-115205D" ] } }, @@ -13261,7 +12878,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-pass=zWaf6XtpjIVZC5444yXB+cgFDFl7MxGlgkZSaoPvTGirhPygu4jOKOXf9LO4vjfO", @@ -13270,7 +12887,6 @@ "repo1-retention-diff=2", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -13291,7 +12907,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171123F_20190209-171143D" + "20190310-115155F_20190310-115215D" ] } }, @@ -13332,10 +12948,10 @@ "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 = 20190209-171123F_20190209-171151D", + " [filtered 7 lines of output]", + "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", + "P00 INFO: backup stop archive = 000000020000000000000010, lsn = 0/100000F8", + "P00 INFO: new backup label = 20190310-115155F_20190310-115222D", "P00 INFO: backup command end: completed successfully", "P00 INFO: expire command begin" ] @@ -13355,7 +12971,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171123F_20190209-171151D" + "20190310-115155F_20190310-115222D" ] } }, @@ -13370,7 +12986,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20190209-171123F_20190209-171143D|remove archive" + "archive retention on backup 20190310-115155F_20190310-115215D|remove archive" ] }, "host" : "pg-primary", @@ -13381,13 +12997,13 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: expire command begin 2.10: --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 20190209-171114F, archiveId = 9.5-1, start = 00000002000000000000000B, stop = 00000002000000000000000B", - "P00 DETAIL: archive retention on backup 20190209-171123F, archiveId = 9.5-1, start = 00000002000000000000000C, stop = 00000002000000000000000C", - "P00 DETAIL: archive retention on backup 20190209-171123F_20190209-171143D, archiveId = 9.5-1, start = 000000020000000000000010, stop = 000000020000000000000010", - "P00 DETAIL: archive retention on backup 20190209-171123F_20190209-171151D, 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.11: --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 20190310-115146F, archiveId = 9.6-1, start = 000000020000000000000008, stop = 000000020000000000000008", + "P00 DETAIL: archive retention on backup 20190310-115155F, archiveId = 9.6-1, start = 000000020000000000000009, stop = 000000020000000000000009", + "P00 DETAIL: archive retention on backup 20190310-115155F_20190310-115215D, archiveId = 9.6-1, start = 00000002000000000000000D, stop = 00000002000000000000000D", + "P00 DETAIL: archive retention on backup 20190310-115155F_20190310-115222D, archiveId = 9.6-1, start = 000000020000000000000010", + "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 00000002000000000000000A, stop = 00000002000000000000000C", + "P00 DETAIL: remove archive: archiveId = 9.6-1, start = 00000002000000000000000E, stop = 00000002000000000000000F", "P00 INFO: expire command end: completed successfully" ] } @@ -13396,7 +13012,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13427,9 +13043,9 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 878 lines of output]", - "P01 DETAIL: restore file /var/lib/pgsql/9.5/data/base/1/12275 - exists and is zero size (0B, 100%)", - "P00 INFO: write /var/lib/pgsql/9.5/data/recovery.conf", + " [filtered 892 lines of output]", + "P01 DETAIL: restore file /var/lib/pgsql/9.6/data/base/1/12307 - exists and is zero size (0B, 100%)", + "P00 INFO: write /var/lib/pgsql/9.6/data/recovery.conf", "P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started)", "P00 INFO: restore command end: completed successfully" ] @@ -13439,7 +13055,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13570,7 +13186,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres du -sh /var/lib/pgsql/9.5/data/base/24576" + "sudo -u postgres du -sh /var/lib/pgsql/9.6/data/base/24576" ], "host" : "pg-primary", "load-env" : true, @@ -13580,7 +13196,7 @@ "type" : "exe", "value" : { "output" : [ - "6.9M\t/var/lib/pgsql/9.5/data/base/24576" + "7.0M\t/var/lib/pgsql/9.6/data/base/24576" ] } }, @@ -13588,7 +13204,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13615,7 +13231,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13688,7 +13304,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres du -sh /var/lib/pgsql/9.5/data/base/24576" + "sudo -u postgres du -sh /var/lib/pgsql/9.6/data/base/24576" ], "host" : "pg-primary", "load-env" : true, @@ -13698,7 +13314,7 @@ "type" : "exe", "value" : { "output" : [ - "152K\t/var/lib/pgsql/9.5/data/base/24576" + "152K\t/var/lib/pgsql/9.6/data/base/24576" ] } }, @@ -13744,8 +13360,8 @@ " oid | datname ", "-------+-----------", " 1 | template1", - " 12437 | template0", - " 12442 | postgres", + " 12469 | template0", + " 12470 | postgres", " 24577 | test2", "(4 rows)" ] @@ -13810,7 +13426,7 @@ "type" : "exe", "value" : { "output" : [ - "2019-02-09 17:12:39.112933+00" + "2019-03-10 11:53:04.682668+00" ] } }, @@ -13849,7 +13465,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13863,7 +13479,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:12:39.112933+00\" restore" + " --type=time \"--target=2019-03-10 11:53:04.682668+00\" \\", + " --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -13876,7 +13493,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo rm /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "host" : "pg-primary", "load-env" : true, @@ -13889,7 +13506,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/recovery.conf" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/recovery.conf" ], "highlight" : { "filter" : true, @@ -13907,7 +13524,8 @@ "value" : { "output" : [ "restore_command = 'pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2019-02-09 17:12:39.112933+00'" + "recovery_target_time = '2019-03-10 11:53:04.682668+00'", + "recovery_target_action = 'promote'" ] } }, @@ -13915,7 +13533,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -13969,7 +13587,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "highlight" : { "filter" : true, @@ -13986,16 +13604,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:12:31 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:12:39.112933+00", + "LOG: database system was interrupted; last known up at 2019-03-10 11:52:58 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 11:53:04.682668+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 712, time 2019-02-09 17:12:39.489964+00", - "LOG: redo done at 0/1901BC08", - "LOG: last completed transaction was at log time 2019-02-09 17:12:38.748116+00", + "LOG: restored log file \"000000040000000000000015\" from archive", + "LOG: redo starts at 0/15000028", + "LOG: consistent recovery state reached at 0/150000F8", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: recovery stopping before commit of transaction 639, time 2019-03-10 11:53:05.026503+00", + "LOG: redo done at 0/16021028", + "LOG: last completed transaction was at log time 2019-03-10 11:53:04.345308+00", "LOG: selected new timeline ID: 5", "LOG: archive recovery complete", " [filtered 3 lines of output]" @@ -14047,7 +13665,7 @@ "type" : "exe", "value" : { "output" : [ - "20190209-171123F_20190209-171230D" + "20190310-115155F_20190310-115257D" ] } }, @@ -14068,7 +13686,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14082,7 +13700,7 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:12:39.112933+00\" restore" + " --type=time \"--target=2019-03-10 11:53:04.682668+00\" --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -14095,7 +13713,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo rm /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "host" : "pg-primary", "load-env" : true, @@ -14108,7 +13726,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14162,7 +13780,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "highlight" : { "filter" : true, @@ -14179,14 +13797,14 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:12:52 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:12:39.112933+00", + "LOG: database system was interrupted; last known up at 2019-03-10 11:53:17 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 11:53:04.682668+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 \"000000050000000000000017\" from archive", + "LOG: redo starts at 0/17000028", + "LOG: consistent recovery state reached at 0/170000F8", + "LOG: redo done at 0/170000F8", + "LOG: restored log file \"000000050000000000000017\" from archive", " [filtered 7 lines of output]" ] } @@ -14201,7 +13819,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20190209-171123F_20190209-171230D" + "20190310-115155F_20190310-115257D" ] }, "host" : "pg-primary", @@ -14217,47 +13835,47 @@ " cipher: aes-256-cbc", "", " db (current)", - " wal archive min/max (9.5-1): 00000002000000000000000B/00000005000000000000001A", + " wal archive min/max (9.6-1): 000000020000000000000008/000000050000000000000017", "", - " full backup: 20190209-171114F", - " timestamp start/stop: 2019-02-09 17:11:14 / 2019-02-09 17:11:22", - " wal start/stop: 00000002000000000000000B / 00000002000000000000000B", - " database size: 20.7MB, backup size: 20.7MB", - " repository size: 2.4MB, repository backup size: 2.4MB", + " full backup: 20190310-115146F", + " timestamp start/stop: 2019-03-10 11:51:46 / 2019-03-10 11:51:54", + " wal start/stop: 000000020000000000000008 / 000000020000000000000008", + " database size: 20.9MB, backup size: 20.9MB", + " repository size: 2.5MB, repository backup size: 2.5MB", "", - " full backup: 20190209-171123F", - " timestamp start/stop: 2019-02-09 17:11:23 / 2019-02-09 17:11:32", - " wal start/stop: 00000002000000000000000C / 00000002000000000000000C", - " database size: 20.7MB, backup size: 20.7MB", - " repository size: 2.4MB, repository backup size: 2.4MB", + " full backup: 20190310-115155F", + " timestamp start/stop: 2019-03-10 11:51:55 / 2019-03-10 11:52:04", + " wal start/stop: 000000020000000000000009 / 000000020000000000000009", + " database size: 20.9MB, backup size: 20.9MB", + " repository size: 2.5MB, repository backup size: 2.5MB", "", - " diff backup: 20190209-171123F_20190209-171151D", - " timestamp start/stop: 2019-02-09 17:11:51 / 2019-02-09 17:11:55", - " wal start/stop: 000000020000000000000013 / 000000020000000000000013", - " database size: 20.7MB, backup size: 114.0KB", - " repository size: 2.4MB, repository backup size: 12.6KB", - " backup reference list: 20190209-171123F", + " diff backup: 20190310-115155F_20190310-115222D", + " timestamp start/stop: 2019-03-10 11:52:22 / 2019-03-10 11:52:26", + " wal start/stop: 000000020000000000000010 / 000000020000000000000010", + " database size: 20.9MB, backup size: 9.6KB", + " repository size: 2.5MB, repository backup size: 887B", + " backup reference list: 20190310-115155F", "", - " incr backup: 20190209-171123F_20190209-171206I", - " timestamp start/stop: 2019-02-09 17:12:06 / 2019-02-09 17:12:15", - " wal start/stop: 000000030000000000000015 / 000000030000000000000015", - " database size: 34.1MB, backup size: 13.5MB", + " incr backup: 20190310-115155F_20190310-115235I", + " timestamp start/stop: 2019-03-10 11:52:35 / 2019-03-10 11:52:44", + " wal start/stop: 000000030000000000000012 / 000000030000000000000012", + " database size: 34.6MB, backup size: 13.8MB", " repository size: 4MB, repository backup size: 1.6MB", - " backup reference list: 20190209-171123F, 20190209-171123F_20190209-171151D", + " backup reference list: 20190310-115155F", "", - " diff backup: 20190209-171123F_20190209-171230D", - " timestamp start/stop: 2019-02-09 17:12:30 / 2019-02-09 17:12:38", - " wal start/stop: 000000040000000000000018 / 000000040000000000000018", - " database size: 27.4MB, backup size: 6.9MB", - " repository size: 3.2MB, repository backup size: 835.8KB", - " backup reference list: 20190209-171123F", + " diff backup: 20190310-115155F_20190310-115257D", + " timestamp start/stop: 2019-03-10 11:52:57 / 2019-03-10 11:53:03", + " wal start/stop: 000000040000000000000015 / 000000040000000000000015", + " database size: 27.8MB, backup size: 7.0MB", + " repository size: 3.3MB, repository backup size: 846.8KB", + " backup reference list: 20190310-115155F", "", - " incr backup: 20190209-171123F_20190209-171251I", - " timestamp start/stop: 2019-02-09 17:12:51 / 2019-02-09 17:12:58", - " wal start/stop: 00000005000000000000001A / 00000005000000000000001A", - " database size: 27.4MB, backup size: 2.0MB", - " repository size: 3.2MB, repository backup size: 209.9KB", - " backup reference list: 20190209-171123F, 20190209-171123F_20190209-171230D" + " incr backup: 20190310-115155F_20190310-115315I", + " timestamp start/stop: 2019-03-10 11:53:15 / 2019-03-10 11:53:22", + " wal start/stop: 000000050000000000000017 / 000000050000000000000017", + " database size: 27.7MB, backup size: 2MB", + " repository size: 3.3MB, repository backup size: 211KB", + " backup reference list: 20190310-115155F, 20190310-115155F_20190310-115257D" ] } }, @@ -14265,7 +13883,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14279,8 +13897,8 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2019-02-09 17:12:39.112933+00\" \\", - " --set=20190209-171123F_20190209-171230D restore" + " --type=time \"--target=2019-03-10 11:53:04.682668+00\" \\", + " --set=20190310-115155F_20190310-115257D --target-action=promote restore" ], "host" : "pg-primary", "load-env" : true, @@ -14293,7 +13911,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo rm /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "host" : "pg-primary", "load-env" : true, @@ -14306,7 +13924,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14360,7 +13978,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "highlight" : { "filter" : true, @@ -14377,16 +13995,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:12:31 UTC", - "LOG: starting point-in-time recovery to 2019-02-09 17:12:39.112933+00", + "LOG: database system was interrupted; last known up at 2019-03-10 11:52:58 UTC", + "LOG: starting point-in-time recovery to 2019-03-10 11:53:04.682668+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 712, time 2019-02-09 17:12:39.489964+00", - "LOG: redo done at 0/1901BC08", - "LOG: last completed transaction was at log time 2019-02-09 17:12:38.748116+00", + "LOG: restored log file \"000000040000000000000015\" from archive", + "LOG: redo starts at 0/15000028", + "LOG: consistent recovery state reached at 0/150000F8", + "LOG: restored log file \"000000040000000000000016\" from archive", + "LOG: recovery stopping before commit of transaction 639, time 2019-03-10 11:53:05.026503+00", + "LOG: redo done at 0/16021028", + "LOG: last completed transaction was at log time 2019-03-10 11:53:04.345308+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", " [filtered 5 lines of output]" @@ -14437,7 +14055,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-cipher-type=none", @@ -14445,7 +14063,6 @@ "repo1-retention-diff=2", "repo1-retention-full=2", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -14492,7 +14109,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "process-max=4", @@ -14507,7 +14124,6 @@ "repo1-s3-region=us-east-1", "repo1-type=s3", "start-fast=y", - "stop-auto=y", "", "[global:archive-push]", "compress-level=3" @@ -14548,7 +14164,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-create command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-create command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-create command end: completed successfully" ] } @@ -14575,16 +14191,16 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: backup command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo --start-fast --stop-auto", + "P00 INFO: backup command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --process-max=4 --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-retention-diff=2 --repo1-retention-full=2 --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo --start-fast", "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-02-09 17:13:35\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000007000000000000001A, lsn = 0/1A000028", - " [filtered 1119 lines of output]", - "P02 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12280 (0B, 100%)", - "P01 INFO: backup file /var/lib/pgsql/9.5/data/base/1/12275 (0B, 100%)", - "P00 INFO: full backup size = 27.4MB", - "P00 INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - "P00 INFO: backup stop archive = 00000007000000000000001A, lsn = 0/1A000130", + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 11:53:53\": backup begins after the requested immediate checkpoint completes", + "P00 INFO: backup start archive = 000000070000000000000017, lsn = 0/17000028", + " [filtered 1136 lines of output]", + "P01 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12312 (0B, 100%)", + "P03 INFO: backup file /var/lib/pgsql/9.6/data/base/1/12307 (0B, 100%)", + "P00 INFO: full backup size = 27.7MB", + "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive", + "P00 INFO: backup stop archive = 000000070000000000000017, lsn = 0/17000130", " [filtered 4 lines of output]" ] } @@ -14593,7 +14209,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14623,7 +14239,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stop command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stop command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stop command end: completed successfully" ] } @@ -14649,7 +14265,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-delete command begin 2.10: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.5/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", + "P00 INFO: stanza-delete command begin 2.11: --log-level-console=info --log-level-stderr=off --no-log-timestamp --pg1-path=/var/lib/pgsql/9.6/data --repo1-cipher-type=none --repo1-path=/demo-repo --repo1-s3-bucket=demo-bucket --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-s3-verify-ssl --repo1-type=s3 --stanza=demo", "P00 INFO: stanza-delete command end: completed successfully" ] } @@ -14658,7 +14274,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -14711,7 +14327,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "repository", @@ -15022,7 +14638,7 @@ "value" : "pg-primary" }, "pg1-path" : { - "value" : "/var/lib/pgsql/9.5/data" + "value" : "/var/lib/pgsql/9.6/data" } }, "global" : { @@ -15046,7 +14662,7 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "repo1-path=/var/lib/pgbackrest", @@ -15062,7 +14678,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.5/data" + "value" : "/var/lib/pgsql/9.6/data" } }, "global" : { @@ -15086,7 +14702,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "log-level-file=detail", @@ -15155,7 +14771,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -15181,7 +14797,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -15246,7 +14862,7 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "process-max=3", @@ -15295,18 +14911,18 @@ " cipher: none", "", " db (current)", - " wal archive min/max (9.5-1): 000000080000000000000023/000000080000000000000024", + " wal archive min/max (9.6-1): 00000008000000000000001E/00000008000000000000001F", "", - " full backup: 20190209-171522F", - " timestamp start/stop: 2019-02-09 17:15:22 / 2019-02-09 17:15:38", - " wal start/stop: 000000080000000000000023 / 000000080000000000000023", - " database size: 27.4MB, backup size: 27.4MB", + " full backup: 20190310-115531F", + " timestamp start/stop: 2019-03-10 11:55:31 / 2019-03-10 11:55:45", + " wal start/stop: 00000008000000000000001E / 00000008000000000000001E", + " database size: 27.8MB, backup size: 27.8MB", " repository size: 3.2MB, repository backup size: 3.2MB", "", - " full backup: 20190209-171540F", - " timestamp start/stop: 2019-02-09 17:15:40 / 2019-02-09 17:15:55", - " wal start/stop: 000000080000000000000024 / 000000080000000000000024", - " database size: 27.4MB, backup size: 27.4MB", + " full backup: 20190310-115547F", + " timestamp start/stop: 2019-03-10 11:55:47 / 2019-03-10 11:56:01", + " wal start/stop: 00000008000000000000001F / 00000008000000000000001F", + " database size: 27.8MB, backup size: 27.8MB", " repository size: 3.2MB, repository backup size: 3.2MB" ] } @@ -15451,7 +15067,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo scp build:/root/pgbackrest-release-2.10/src/pgbackrest /usr/bin" + "sudo scp build:/root/pgbackrest-release-2.11/src/pgbackrest /usr/bin" ], "cmd-extra" : "2>&1", "host" : "pg-standby", @@ -15673,7 +15289,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.5/data" + "value" : "/var/lib/pgsql/9.6/data" }, "recovery-option" : { "value" : "standby_mode=on" @@ -15699,7 +15315,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "recovery-option=standby_mode=on", "", "[global]", @@ -15712,7 +15328,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres mkdir -p -m 700 /var/lib/pgsql/9.5/data" + "sudo -u postgres mkdir -p -m 700 /var/lib/pgsql/9.6/data" ], "host" : "pg-standby", "load-env" : true, @@ -15738,7 +15354,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/recovery.conf" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/recovery.conf" ], "host" : "pg-standby", "load-env" : true, @@ -15755,7 +15371,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-standby", "option" : { "archive_command" : { @@ -15798,7 +15414,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo rm /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "host" : "pg-standby", "load-env" : true, @@ -15811,7 +15427,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-standby", "load-env" : true, @@ -15837,7 +15453,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "highlight" : { "filter" : true, @@ -15854,13 +15470,12 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2019-02-09 17:15:41 UTC", + "LOG: database system was interrupted; last known up at 2019-03-10 11:55:48 UTC", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", - "FATAL: the database system is starting up", - "LOG: restored log file \"000000080000000000000024\" from archive", - "LOG: redo starts at 0/24000028", - "LOG: consistent recovery state reached at 0/24000130", + "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" ] } @@ -15942,7 +15557,7 @@ "output" : [ " pg_switch_xlog | now ", "----------------+-------------------------------", - " 0/2501F630 | 2019-02-09 17:16:36.955716+00", + " 0/200225E0 | 2019-03-10 11:56:37.060136+00", "(1 row)" ] } @@ -15971,7 +15586,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:16:39.914863+00", + " Important Data | 2019-03-10 11:56:39.475785+00", "(1 row)" ] } @@ -15997,7 +15612,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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.11: --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 xlog cannot be performed on the standby, all other checks passed successfully", "P00 INFO: check command end: completed successfully" ] @@ -16028,7 +15643,7 @@ "cmd" : [ "sudo -u postgres sh -c 'echo \\", " \"host replication replicator 172.17.0.6/32 md5\" \\", - " >> /var/lib/pgsql/9.5/data/pg_hba.conf'" + " >> /var/lib/pgsql/9.6/data/pg_hba.conf'" ], "host" : "pg-primary", "load-env" : true, @@ -16041,7 +15656,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl reload postgresql-9.5.service" + "sudo systemctl reload postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -16066,7 +15681,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -16108,7 +15723,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-standby", "load-env" : true, @@ -16134,7 +15749,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/recovery.conf" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/recovery.conf" ], "host" : "pg-standby", "load-env" : true, @@ -16152,7 +15767,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.5/data/postgresql.conf", + "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", "host" : "pg-standby", "option" : { "hot_standby" : { @@ -16177,7 +15792,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo rm /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "host" : "pg-standby", "load-env" : true, @@ -16190,7 +15805,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.5.service" + "sudo systemctl start postgresql-9.6.service" ], "host" : "pg-standby", "load-env" : true, @@ -16216,7 +15831,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres cat /var/lib/pgsql/9.5/data/pg_log/postgresql.log" + "sudo -u postgres cat /var/lib/pgsql/9.6/data/pg_log/postgresql.log" ], "highlight" : { "filter" : true, @@ -16233,10 +15848,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 7 lines of output]", + " [filtered 6 lines of output]", "LOG: database system is ready to accept read only connections", - "LOG: restored log file \"000000080000000000000025\" from archive", - "LOG: started streaming WAL from primary at 0/26000000 on timeline 8" + "LOG: restored log file \"000000080000000000000020\" from archive", + "LOG: started streaming WAL from primary at 0/21000000 on timeline 8" ] } }, @@ -16266,9 +15881,9 @@ "type" : "exe", "value" : { "output" : [ - " message | now ", - "----------------+-----------------------------", - " Important Data | 2019-02-09 17:16:59.6252+00", + " message | now ", + "----------------+-------------------------------", + " Important Data | 2019-03-10 11:56:54.871359+00", "(1 row)" ] } @@ -16297,7 +15912,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2019-02-09 17:17:00.467292+00", + " Important Data | 2019-03-10 11:56:55.610141+00", "(1 row)" ] } @@ -16383,7 +15998,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "", "[global]", "archive-async=y", @@ -16428,7 +16043,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -16468,7 +16083,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl restart postgresql-9.5.service" + "sudo systemctl restart postgresql-9.6.service" ], "host" : "pg-standby", "load-env" : true, @@ -16529,8 +16144,8 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: check command begin 2.10: --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 00000008000000000000002B successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.5-1/0000000800000000/00000008000000000000002B-8b9a8a79b89d5a97195f2a166523480928f741f3.gz'", + "P00 INFO: check command begin 2.11: --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 000000080000000000000026 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.6-1/0000000800000000/000000080000000000000026-6e445d13ae1a7d2040a073d720ed27e895856ded.gz'", "P00 INFO: check command end: completed successfully" ] } @@ -16557,19 +16172,24 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/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: push 5 WAL file(s) to archive: 000000080000000000000026...00000008000000000000002A", - "P01 DETAIL: pushed WAL file 000000080000000000000026 to archive", - "P02 DETAIL: pushed WAL file 000000080000000000000027 to archive", - "P01 DETAIL: pushed WAL file 000000080000000000000028 to archive", - "P02 DETAIL: pushed WAL file 000000080000000000000029 to archive", - "P01 DETAIL: pushed WAL file 00000008000000000000002A to archive", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/000000080000000000000021] --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 2 WAL file(s) to archive: 000000080000000000000021...000000080000000000000022", + "P01 DETAIL: pushed WAL file 000000080000000000000021 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000022 to archive", "P00 INFO: archive-push command end: completed successfully", "", "-------------------PROCESS START-------------------", - "P00 INFO: archive-push command begin 2.10: [pg_xlog/00000008000000000000002B] --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: 00000008000000000000002B", - "P01 DETAIL: pushed WAL file 00000008000000000000002B to archive", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/000000080000000000000023] --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 3 WAL file(s) to archive: 000000080000000000000023...000000080000000000000025", + "P01 DETAIL: pushed WAL file 000000080000000000000023 to archive", + "P02 DETAIL: pushed WAL file 000000080000000000000024 to archive", + "P01 DETAIL: pushed WAL file 000000080000000000000025 to archive", + "P00 INFO: archive-push command end: completed successfully", + "", + "-------------------PROCESS START-------------------", + "P00 INFO: archive-push command begin 2.11: [pg_xlog/000000080000000000000026] --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: 000000080000000000000026", + "P01 DETAIL: pushed WAL file 000000080000000000000026 to archive", "P00 INFO: archive-push command end: completed successfully" ] } @@ -16597,7 +16217,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "got WAL file [0-F]{24} from archive" + "found [0-F]{24} in the archive" ] }, "host" : "pg-standby", @@ -16609,33 +16229,29 @@ "value" : { "output" : [ "-------------------PROCESS START-------------------", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B] --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: 000000080000000000000024...00000008000000000000002B", - "P02 DETAIL: got WAL file 000000080000000000000025 from archive", - "P02 DETAIL: WAL file 000000080000000000000026 not found in archive", - "P02 DETAIL: WAL file 000000080000000000000027 not found in archive", - "P02 DETAIL: WAL file 000000080000000000000028 not found in archive", - "P01 DETAIL: got WAL file 000000080000000000000024 from archive", - "P02 DETAIL: WAL file 000000080000000000000029 not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002A not found in archive", - " [filtered 30 lines of output]", - "P00 INFO: archive-get command begin 2.10: [000000080000000000000026, 000000080000000000000027, 000000080000000000000028, 000000080000000000000029, 00000008000000000000002A, 00000008000000000000002B, 00000008000000000000002C, 00000008000000000000002D] --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: 000000080000000000000026...00000008000000000000002D", - "P01 DETAIL: got WAL file 000000080000000000000026 from archive", - "P02 DETAIL: got WAL file 000000080000000000000027 from archive", - "P01 DETAIL: got WAL file 000000080000000000000028 from archive", - "P02 DETAIL: got WAL file 000000080000000000000029 from archive", - "P02 DETAIL: WAL file 00000008000000000000002B not found in archive", - "P01 DETAIL: got WAL file 00000008000000000000002A from archive", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002D not found in archive", - " [filtered 14 lines of output]", - "P00 INFO: get 8 WAL file(s) from archive: 00000008000000000000002B...000000080000000000000032", - "P02 DETAIL: WAL file 00000008000000000000002C not found in archive", - "P01 DETAIL: got WAL file 00000008000000000000002B from archive", - "P02 DETAIL: WAL file 00000008000000000000002D not found in archive", - "P01 DETAIL: WAL file 00000008000000000000002E not found in archive", - " [filtered 17 lines of output]" + "P00 INFO: archive-get-async command begin 2.11: [00000008000000000000001F, 000000080000000000000020, 000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026] --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: 00000008000000000000001F...000000080000000000000026", + "P00 DETAIL: found 00000008000000000000001F in the archive", + "P00 DETAIL: found 000000080000000000000020 in the archive", + "P00 DETAIL: unable to find 000000080000000000000021 in the archive", + "P00 DETAIL: unable to find 000000080000000000000022 in the archive", + " [filtered 33 lines of output]", + "P00 INFO: archive-get-async command begin 2.11: [000000080000000000000021, 000000080000000000000022, 000000080000000000000023, 000000080000000000000024, 000000080000000000000025, 000000080000000000000026, 000000080000000000000027, 000000080000000000000028] --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: 000000080000000000000021...000000080000000000000028", + "P00 DETAIL: found 000000080000000000000021 in the archive", + "P00 DETAIL: found 000000080000000000000022 in the archive", + "P00 DETAIL: unable to find 000000080000000000000023 in the archive", + "P00 DETAIL: unable to find 000000080000000000000024 in the archive", + " [filtered 20 lines of output]", + "P00 INFO: archive-get-async command begin 2.11: [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.6/data --process-max=2 --repo1-host=repository --spool-path=/var/spool/pgbackrest --stanza=demo", + "P00 INFO: get 8 WAL file(s) from archive: 000000080000000000000023...00000008000000000000002A", + "P00 DETAIL: found 000000080000000000000024 in the archive", + "P00 DETAIL: found 000000080000000000000023 in the archive", + "P00 DETAIL: found 000000080000000000000025 in the archive", + "P00 DETAIL: found 000000080000000000000026 in the archive", + "P00 DETAIL: unable to find 000000080000000000000027 in the archive", + "P00 DETAIL: unable to find 000000080000000000000028 in the archive", + " [filtered 14 lines of output]" ] } }, @@ -16667,7 +16283,7 @@ "value" : "pg-standby" }, "pg2-path" : { - "value" : "/var/lib/pgsql/9.5/data" + "value" : "/var/lib/pgsql/9.6/data" } }, "global" : { @@ -16682,9 +16298,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/pgsql/9.5/data", + "pg1-path=/var/lib/pgsql/9.6/data", "pg2-host=pg-standby", - "pg2-path=/var/lib/pgsql/9.5/data", + "pg2-path=/var/lib/pgsql/9.6/data", "", "[global]", "backup-standby=y", @@ -16717,17 +16333,16 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - "P00 INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-02-09 17:17:29\": backup begins after the requested immediate checkpoint completes", - "P00 INFO: backup start archive = 00000008000000000000002D, lsn = 0/2D000028", - "P00 INFO: wait for replay on the standby to reach 0/2D000028", - "P00 INFO: replay on the standby reached 0/2D000350", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/global/pg_control (8KB, 0%) checksum 94ce645b7bd02ea3bbdd05c109c754ab6400a26d", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_log/postgresql.log (5.7KB, 0%) checksum 6b2be6d1374d18082106ac9ce1513f1e453781ad", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/pg_hba.conf (4.1KB, 0%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", - "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.5/data/backup_label (238B, 0%) checksum 55cd5fec730bf059eae94cb52e9dd9c18d7d1dc8", - "P02 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12442/2608 (432KB, 20%) checksum a840677db579d365e4c05e6df083de83bb3e0608", - "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.5/data/base/12442/2674 (360KB, 37%) checksum 78417a72eadcf339d1a198b91bf0e0dd2092c2ae", - " [filtered 36 lines of output]" + "P00 INFO: execute non-exclusive pg_start_backup() with label \"pgBackRest backup started at 2019-03-10 11:57:18\": 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/280003F8, checkpoint 0/28000060", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/global/pg_control (8KB, 0%) checksum 57d7932056e886239a322a972412096b289f9589", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_log/postgresql.log (5.8KB, 0%) checksum 3d22a87534692743eae26fc62f5da5b177b04bd6", + "P01 INFO: backup file pg-primary:/var/lib/pgsql/9.6/data/pg_hba.conf (4.1KB, 0%) checksum 1c0bca2f7f44d354aaaefb2c21fd1290b7379690", + "P03 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/1249 (360KB, 17%) checksum 56d51943365c971da2496f77b25966626529ef97", + "P04 INFO: backup file pg-standby:/var/lib/pgsql/9.6/data/base/12470/2674 (336KB, 32%) checksum 188f8e3b445d03a7c2fa0b70457294f9f77367e0", + " [filtered 38 lines of output]" ] } }, @@ -16735,7 +16350,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-primary", "load-env" : true, @@ -16748,7 +16363,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl stop postgresql-9.5.service" + "sudo systemctl stop postgresql-9.6.service" ], "host" : "pg-standby", "load-env" : true, @@ -16761,8 +16376,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres /usr/pgsql-9.6/bin/initdb \\", - " -D /var/lib/pgsql/9.6/data -k -A peer" + "sudo -u postgres /usr/pgsql-10/bin/initdb \\", + " -D /var/lib/pgsql/10/data -k -A peer" ], "host" : "pg-primary", "load-env" : true, @@ -16776,13 +16391,13 @@ "bash-wrap" : true, "cmd" : [ "sudo -u postgres sh -c 'cd /var/lib/pgsql && \\", - " /usr/pgsql-9.6/bin/pg_upgrade \\", - " --old-bindir=/usr/pgsql-9.5/bin \\", - " --new-bindir=/usr/pgsql-9.6/bin \\", - " --old-datadir=/var/lib/pgsql/9.5/data \\", - " --new-datadir=/var/lib/pgsql/9.6/data \\", - " --old-options=\" -c config_file=/var/lib/pgsql/9.5/data/postgresql.conf\" \\", - " --new-options=\" -c config_file=/var/lib/pgsql/9.6/data/postgresql.conf\"'" + " /usr/pgsql-10/bin/pg_upgrade \\", + " --old-bindir=/usr/pgsql-9.6/bin \\", + " --new-bindir=/usr/pgsql-10/bin \\", + " --old-datadir=/var/lib/pgsql/9.6/data \\", + " --new-datadir=/var/lib/pgsql/10/data \\", + " --old-options=\" -c config_file=/var/lib/pgsql/9.6/data/postgresql.conf\" \\", + " --new-options=\" -c config_file=/var/lib/pgsql/10/data/postgresql.conf\"'" ], "highlight" : { "filter" : true, @@ -16799,8 +16414,8 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 69 lines of output]", - "Creating script to delete old cluster ok", + " [filtered 70 lines of output]", + "Checking for hash indexes ok", "", "Upgrade Complete", "----------------", @@ -16811,7 +16426,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", + "file" : "/var/lib/pgsql/10/data/postgresql.conf", "host" : "pg-primary", "option" : { "archive_command" : { @@ -16857,7 +16472,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.6/data" + "value" : "/var/lib/pgsql/10/data" } } } @@ -16866,7 +16481,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.6/data", + "pg1-path=/var/lib/pgsql/10/data", "", "[global]", "archive-async=y", @@ -16889,7 +16504,7 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.6/data" + "value" : "/var/lib/pgsql/10/data" } } } @@ -16898,7 +16513,7 @@ "value" : { "config" : [ "[demo]", - "pg1-path=/var/lib/pgsql/9.6/data", + "pg1-path=/var/lib/pgsql/10/data", "recovery-option=standby_mode=on", "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", "", @@ -16923,10 +16538,10 @@ "option" : { "demo" : { "pg1-path" : { - "value" : "/var/lib/pgsql/9.6/data" + "value" : "/var/lib/pgsql/10/data" }, "pg2-path" : { - "value" : "/var/lib/pgsql/9.6/data" + "value" : "/var/lib/pgsql/10/data" } }, "global" : { @@ -16941,9 +16556,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/pgsql/9.6/data", + "pg1-path=/var/lib/pgsql/10/data", "pg2-host=pg-standby", - "pg2-path=/var/lib/pgsql/9.6/data", + "pg2-path=/var/lib/pgsql/10/data", "", "[global]", "backup-standby=n", @@ -16958,8 +16573,8 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo cp /var/lib/pgsql/9.5/data/pg_hba.conf \\", - " /var/lib/pgsql/9.6/data/pg_hba.conf" + "sudo cp /var/lib/pgsql/9.6/data/pg_hba.conf \\", + " /var/lib/pgsql/10/data/pg_hba.conf" ], "host" : "pg-primary", "load-env" : true, @@ -16990,7 +16605,7 @@ "type" : "exe", "value" : { "output" : [ - "P00 INFO: stanza-upgrade command begin 2.10: --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.11: --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" ] } @@ -16999,7 +16614,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.6.service" + "sudo systemctl start postgresql-10.service" ], "host" : "pg-primary", "load-env" : true, @@ -17012,7 +16627,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres systemctl status postgresql-9.6.service" + "sudo -u postgres systemctl status postgresql-10.service" ], "host" : "pg-primary", "load-env" : true, @@ -17022,21 +16637,22 @@ "type" : "exe", "value" : { "output" : [ - "● postgresql-9.6.service - PostgreSQL 9.6 database server", - " Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; disabled; vendor preset: disabled)", - " Active: active (running) since Sat 2019-02-09 17:18:03 UTC; 355ms ago", - " Docs: https://www.postgresql.org/docs/9.6/static/", - " Process: 4073 ExecStartPre=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)", - " Main PID: 4078 (postmaster)", - " CGroup: /docker/f4742580bd607f1d8cbab0daed12fa9556219d0c74643360694a74c68970d0bd/system.slice/postgresql-9.6.service", - " ├─4078 /usr/pgsql-9.6/bin/postmaster -D /var/lib/pgsql/9.6/data/", - " ├─4079 postgres: logger process ", - " ├─4081 postgres: checkpointer process ", - " ├─4082 postgres: writer process ", - " ├─4083 postgres: wal writer process ", - " ├─4084 postgres: autovacuum launcher process ", - " ├─4085 postgres: archiver process ", - " └─4086 postgres: stats collector process " + "● postgresql-10.service - PostgreSQL 10 database server", + " Loaded: loaded (/usr/lib/systemd/system/postgresql-10.service; disabled; vendor preset: disabled)", + " Active: active (running) since Sun 2019-03-10 11:57:44 UTC; 366ms ago", + " Docs: https://www.postgresql.org/docs/10/static/", + " Process: 3849 ExecStartPre=/usr/pgsql-10/bin/postgresql-10-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)", + " Main PID: 3854 (postmaster)", + " CGroup: /docker/e44e3bb7e288f111985701123c38ee0151c7f3870ac3f41aa76cfb64767dac04/system.slice/postgresql-10.service", + " ├─3854 /usr/pgsql-10/bin/postmaster -D /var/lib/pgsql/10/data/", + " ├─3855 postgres: logger process ", + " ├─3857 postgres: checkpointer process ", + " ├─3858 postgres: writer process ", + " ├─3859 postgres: wal writer process ", + " ├─3860 postgres: autovacuum launcher process ", + " ├─3861 postgres: archiver process ", + " ├─3862 postgres: stats collector process ", + " └─3863 postgres: bgworker: logical replication launcher " ] } }, @@ -17057,7 +16673,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm -rf /var/lib/pgsql/9.5/data" + "sudo rm -rf /var/lib/pgsql/9.6/data" ], "host" : "pg-primary", "load-env" : true, @@ -17070,7 +16686,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo rm -rf /var/lib/pgsql/9.5/data" + "sudo rm -rf /var/lib/pgsql/9.6/data" ], "host" : "pg-standby", "load-env" : true, @@ -17083,7 +16699,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo -u postgres mkdir -p -m 700 /usr/pgsql-9.6/bin" + "sudo -u postgres mkdir -p -m 700 /usr/pgsql-10/bin" ], "host" : "pg-standby", "load-env" : true, @@ -17133,7 +16749,7 @@ }, { "key" : { - "file" : "/var/lib/pgsql/9.6/data/postgresql.conf", + "file" : "/var/lib/pgsql/10/data/postgresql.conf", "host" : "pg-standby", "option" : { "hot_standby" : { @@ -17152,7 +16768,7 @@ "key" : { "bash-wrap" : true, "cmd" : [ - "sudo systemctl start postgresql-9.6.service" + "sudo systemctl start postgresql-10.service" ], "host" : "pg-standby", "load-env" : true, @@ -17204,9 +16820,9 @@ "config" : [ "[demo]", "pg1-host=pg-primary", - "pg1-path=/var/lib/pgsql/9.6/data", + "pg1-path=/var/lib/pgsql/10/data", "pg2-host=pg-standby", - "pg2-path=/var/lib/pgsql/9.6/data", + "pg2-path=/var/lib/pgsql/10/data", "", "[global]", "backup-standby=y", diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 9a52ba732..ce8124a18 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 1cc5cb08a..093b12f8f 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.11dev'; +use constant PROJECT_VERSION => '2.11'; push @EXPORT, qw(PROJECT_VERSION); # Repository Format Number diff --git a/src/perl/embed.auto.c b/src/perl/embed.auto.c index 105c71f75..6d4f64b26 100644 --- a/src/perl/embed.auto.c +++ b/src/perl/embed.auto.c @@ -20719,7 +20719,7 @@ static const EmbeddedModule embeddedModule[] = "\n" "push @EXPORT, qw(projectBin projectBinSet);\n" "\n\n\n\n\n\n" - "use constant PROJECT_VERSION => '2.11dev';\n" + "use constant PROJECT_VERSION => '2.11';\n" "push @EXPORT, qw(PROJECT_VERSION);\n" "\n\n\n\n\n\n" "use constant REPOSITORY_FORMAT => 5;\n" diff --git a/src/version.h b/src/version.h index 46df75302..82a1042b5 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.11dev" +#define PROJECT_VERSION "2.11" #endif diff --git a/test/code-count/file-type.yaml b/test/code-count/file-type.yaml index a7677b44e..9a115daa7 100644 --- a/test/code-count/file-type.yaml +++ b/test/code-count/file-type.yaml @@ -159,18 +159,10 @@ lib/pgBackRest/Archive/Common.pm: class: core type: perl -lib/pgBackRest/Archive/Get/Async.pm: - class: core - type: perl - lib/pgBackRest/Archive/Get/File.pm: class: core type: perl -lib/pgBackRest/Archive/Get/Get.pm: - class: core - type: perl - lib/pgBackRest/Archive/Info.pm: class: core type: perl @@ -291,10 +283,6 @@ lib/pgBackRest/Expire.pm: class: core type: perl -lib/pgBackRest/Info.pm: - class: core - type: perl - lib/pgBackRest/InfoCommon.pm: class: core type: perl @@ -543,6 +531,14 @@ src/command/archive/get/get.h: class: core type: c/h +src/command/archive/get/protocol.c: + class: core + type: c + +src/command/archive/get/protocol.h: + class: core + type: c/h + src/command/archive/push/push.c: class: core type: c @@ -583,10 +579,74 @@ src/command/info/info.h: class: core type: c/h +src/command/local/local.c: + class: core + type: c + +src/command/local/local.h: + class: core + type: c/h + +src/command/remote/remote.c: + class: core + type: c + +src/command/remote/remote.h: + class: core + type: c/h + src/common/assert.h: class: core type: c/h +src/common/compress/gzip/common.c: + class: core + type: c + +src/common/compress/gzip/common.h: + class: core + type: c/h + +src/common/compress/gzip/compress.c: + class: core + type: c + +src/common/compress/gzip/compress.h: + class: core + type: c/h + +src/common/compress/gzip/decompress.c: + class: core + type: c + +src/common/compress/gzip/decompress.h: + class: core + type: c/h + +src/common/crypto/cipherBlock.c: + class: core + type: c + +src/common/crypto/cipherBlock.h: + class: core + type: c/h + +src/common/crypto/common.c: + class: core + type: c + +src/common/crypto/common.h: + class: core + type: c/h + +src/common/crypto/hash.c: + class: core + type: c + +src/common/crypto/hash.h: + class: core + type: c/h + src/common/debug.c: class: core type: c @@ -627,6 +687,14 @@ src/common/error.h: class: core type: c/h +src/common/exec.c: + class: core + type: c + +src/common/exec.h: + class: core + type: c/h + src/common/exit.c: class: core type: c @@ -703,6 +771,14 @@ src/common/io/filter/size.h: class: core type: c/h +src/common/io/handleRead.c: + class: core + type: c + +src/common/io/handleRead.h: + class: core + type: c/h + src/common/io/handleWrite.c: class: core type: c @@ -923,30 +999,6 @@ src/common/wait.h: class: core type: c/h -src/compress/gzip.c: - class: core - type: c - -src/compress/gzip.h: - class: core - type: c/h - -src/compress/gzipCompress.c: - class: core - type: c - -src/compress/gzipCompress.h: - class: core - type: c/h - -src/compress/gzipDecompress.c: - class: core - type: c - -src/compress/gzipDecompress.h: - class: core - type: c/h - src/config/config.auto.c: class: core/auto type: c @@ -979,6 +1031,14 @@ src/config/define.h: class: core type: c/h +src/config/exec.c: + class: core + type: c + +src/config/exec.h: + class: core + type: c/h + src/config/load.c: class: core type: c @@ -999,27 +1059,11 @@ src/config/parse.h: class: core type: c/h -src/crypto/cipherBlock.c: +src/config/protocol.c: class: core type: c -src/crypto/cipherBlock.h: - class: core - type: c/h - -src/crypto/crypto.c: - class: core - type: c - -src/crypto/crypto.h: - class: core - type: c/h - -src/crypto/hash.c: - class: core - type: c - -src/crypto/hash.h: +src/config/protocol.h: class: core type: c/h @@ -1243,6 +1287,54 @@ src/postgres/version.h: class: core type: c/h +src/protocol/client.c: + class: core + type: c + +src/protocol/client.h: + class: core + type: c/h + +src/protocol/command.c: + class: core + type: c + +src/protocol/command.h: + class: core + type: c/h + +src/protocol/helper.c: + class: core + type: c + +src/protocol/helper.h: + class: core + type: c/h + +src/protocol/parallel.c: + class: core + type: c + +src/protocol/parallel.h: + class: core + type: c/h + +src/protocol/parallelJob.c: + class: core + type: c + +src/protocol/parallelJob.h: + class: core + type: c/h + +src/protocol/server.c: + class: core + type: c + +src/protocol/server.h: + class: core + type: c/h + src/storage/driver/posix/common.c: class: core type: c @@ -1275,6 +1367,30 @@ src/storage/driver/posix/storage.h: class: core type: c/h +src/storage/driver/remote/fileRead.c: + class: core + type: c + +src/storage/driver/remote/fileRead.h: + class: core + type: c/h + +src/storage/driver/remote/protocol.c: + class: core + type: c + +src/storage/driver/remote/protocol.h: + class: core + type: c/h + +src/storage/driver/remote/storage.c: + class: core + type: c + +src/storage/driver/remote/storage.h: + class: core + type: c/h + src/storage/driver/s3/fileRead.c: class: core type: c @@ -1451,31 +1567,23 @@ test/lib/pgBackRestTest/Env/S3EnvTest.pm: class: test/harness type: perl -test/lib/pgBackRestTest/Module/Archive/ArchiveCommonPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Archive/ArchiveGetPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Archive/ArchiveInfoUnitPerlTest.pm: - class: test/module - type: perl - -test/lib/pgBackRestTest/Module/Archive/ArchivePushPerlTest.pm: - class: test/module - type: perl - test/lib/pgBackRestTest/Module/Backup/BackupFileUnitPerlTest.pm: class: test/module type: perl -test/lib/pgBackRestTest/Module/Backup/BackupInfoUnitPerlTest.pm: +test/lib/pgBackRestTest/Module/Backup/BackupUnitPerlTest.pm: class: test/module type: perl -test/lib/pgBackRestTest/Module/Backup/BackupUnitPerlTest.pm: +test/lib/pgBackRestTest/Module/Command/CommandArchiveCommonPerlTest.pm: + class: test/module + type: perl + +test/lib/pgBackRestTest/Module/Command/CommandArchiveGetPerlTest.pm: + class: test/module + type: perl + +test/lib/pgBackRestTest/Module/Command/CommandArchivePushPerlTest.pm: class: test/module type: perl @@ -1507,7 +1615,11 @@ test/lib/pgBackRestTest/Module/Common/CommonLogPerlTest.pm: class: test/module type: perl -test/lib/pgBackRestTest/Module/Info/InfoUnitPerlTest.pm: +test/lib/pgBackRestTest/Module/Info/InfoInfoArchivePerlTest.pm: + class: test/module + type: perl + +test/lib/pgBackRestTest/Module/Info/InfoInfoBackupPerlTest.pm: class: test/module type: perl @@ -1639,15 +1751,15 @@ test/src/common/harnessTls.h: class: test/harness type: c/h -test/src/module/archive/commonTest.c: +test/src/module/command/archiveCommonTest.c: class: test/module type: c -test/src/module/archive/getTest.c: +test/src/module/command/archiveGetTest.c: class: test/module type: c -test/src/module/archive/pushTest.c: +test/src/module/command/archivePushTest.c: class: test/module type: c @@ -1659,10 +1771,22 @@ test/src/module/command/controlTest.c: class: test/module type: c +test/src/module/command/helpTest.c: + class: test/module + type: c + test/src/module/command/infoTest.c: class: test/module type: c +test/src/module/command/localTest.c: + class: test/module + type: c + +test/src/module/command/remoteTest.c: + class: test/module + type: c + test/src/module/common/assertOffTest.c: class: test/module type: c @@ -1671,6 +1795,14 @@ test/src/module/common/assertOnTest.c: class: test/module type: c +test/src/module/common/compressGzipTest.c: + class: test/module + type: c + +test/src/module/common/cryptoTest.c: + class: test/module + type: c + test/src/module/common/debugOffTest.c: class: test/module type: c @@ -1687,6 +1819,10 @@ test/src/module/common/errorTest.c: class: test/module type: c +test/src/module/common/execTest.c: + class: test/module + type: c + test/src/module/common/exitTest.c: class: test/module type: c @@ -1775,10 +1911,6 @@ test/src/module/common/waitTest.c: class: test/module type: c -test/src/module/compress/gzipTest.c: - class: test/module - type: c - test/src/module/config/configTest.c: class: test/module type: c @@ -1787,6 +1919,10 @@ test/src/module/config/defineTest.c: class: test/module type: c +test/src/module/config/execTest.c: + class: test/module + type: c + test/src/module/config/loadTest.c: class: test/module type: c @@ -1795,19 +1931,7 @@ test/src/module/config/parseTest.c: class: test/module type: c -test/src/module/crypto/cipherBlockTest.c: - class: test/module - type: c - -test/src/module/crypto/cryptoTest.c: - class: test/module - type: c - -test/src/module/crypto/hashTest.c: - class: test/module - type: c - -test/src/module/help/helpTest.c: +test/src/module/config/protocolTest.c: class: test/module type: c @@ -1843,10 +1967,18 @@ test/src/module/postgres/pageChecksumTest.c: class: test/module type: c +test/src/module/protocol/protocolTest.c: + class: test/module + type: c + test/src/module/storage/posixTest.c: class: test/module type: c +test/src/module/storage/remoteTest.c: + class: test/module + type: c + test/src/module/storage/s3Test.c: class: test/module type: c