diff --git a/README.md b/README.md index c26e21453..166e1571a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ pgBackRest aims to be a simple, reliable backup and restore system that can seam Instead of relying on traditional backup tools like tar and rsync, pgBackRest implements all backup features internally and uses a custom protocol for communicating with remote systems. Removing reliance on tar and rsync allows for better solutions to database-specific backup challenges. The custom remote protocol allows for more flexibility and limits the types of connections that are required to perform a backup which increases security. -pgBackRest [v1.05](https://github.com/pgbackrest/pgbackrest/releases/tag/release/1.05) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page. +pgBackRest [v1.06](https://github.com/pgbackrest/pgbackrest/releases/tag/release/1.06) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page. ## Features diff --git a/doc/resource/exe.cache b/doc/resource/exe.cache index df6d1b83a..f6259bf3b 100644 --- a/doc/resource/exe.cache +++ b/doc/resource/exe.cache @@ -12,7 +12,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.4" + "ip" : "172.17.0.3" } }, { @@ -90,7 +90,7 @@ { "key" : { "cmd" : [ - "sudo cp -r ~/pgbackrest-release-1.05/lib/pgBackRest \\", + "sudo cp -r ~/pgbackrest-release-1.06/lib/pgBackRest \\", " /usr/share/perl5" ], "host" : "db-master", @@ -121,7 +121,7 @@ { "key" : { "cmd" : [ - "sudo cp ~/pgbackrest-release-1.05/bin/pgbackrest /usr/bin/pgbackrest" + "sudo cp ~/pgbackrest-release-1.06/bin/pgbackrest /usr/bin/pgbackrest" ], "host" : "db-master", "output" : false @@ -169,7 +169,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 1.05 - General help", + "pgBackRest 1.06 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -406,7 +406,7 @@ " INFO: check start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", " INFO: switch xlog 000000010000000000000001", " ERROR: [148]: /var/lib/pgbackrest/backup/demo does not exist", - " INFO: WAL segment 000000010000000000000001 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000100000000/000000010000000000000001-66674034f2e06ce9dbafaaecfabb84d58cda9de8.gz'", + " INFO: WAL segment 000000010000000000000001 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000100000000/000000010000000000000001-edd9fb89a331b937061fb9102150e0c347e875fd.gz'", " INFO: check stop" ] } @@ -432,14 +432,14 @@ "output" : [ " INFO: backup start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", " WARN: no prior backup exists, incr backup has been changed to full", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:05\": backup begins after the next regular checkpoint completes", - " INFO: archive start: 0/2000028", - " [filtered 763 lines of output]", - " INFO: backup file /var/lib/pgsql/9.4/data/base/1/11886 (0B, 100%)", - " INFO: backup file /var/lib/pgsql/9.4/data/global/pg_control (8KB) checksum 918023283eae43f780e12d4abce157f1ba6e5f2f", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:31:33\": backup begins after the next regular checkpoint completes", + " INFO: backup lsn start: 0/2000028", + " [filtered 761 lines of output]", + " INFO: backup file /var/lib/pgsql/9.4/data/PG_VERSION (4B, 99%) checksum 8dbabb96e032b8d9f1993c0e4b9141e71ade01a1", + " INFO: backup file /var/lib/pgsql/9.4/data/global/pg_control (8KB, 100%) checksum 1ac37b2e3631725423eac264de408fef7c73c86c", " INFO: full backup size = 19.3MB", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: archive stop: 0/20000F0", + " INFO: backup lsn stop: 0/20000F0", " [filtered 4 lines of output]" ] } @@ -455,7 +455,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135410F" + "20160825-153138F" ] } }, @@ -479,11 +479,11 @@ "value" : { "output" : [ " [filtered 4 lines of output]", - " INFO: backup file /var/lib/pgsql/9.4/data/backup_label (236B, 100%) checksum b1f9185fb453e4d5bb36d71451c9cbbaed0e2ac6", - " INFO: backup file /var/lib/pgsql/9.4/data/global/pg_control (8KB) checksum 0938b14f4b05986a769b2b0d27c2e845813f7fa3", + " INFO: backup file /var/lib/pgsql/9.4/data/backup_label (236B, 2%) checksum c134432b09ad056f917852700786711bcfef0cda", + " INFO: backup file /var/lib/pgsql/9.4/data/global/pg_control (8KB, 100%) checksum 6cb97d5be75d7869a0df1393e279745313338028", " INFO: diff backup size = 8.2KB", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: archive stop: 0/30000F0", + " INFO: backup lsn stop: 0/30000F0", " [filtered 4 lines of output]" ] } @@ -509,16 +509,16 @@ "stanza: demo", " status: ok", "", - " full backup: 20160809-135410F", - " start / stop timestamp: 2016-08-09 13:54:05 / 2016-08-09 13:54:10", + " full backup: 20160825-153138F", + " start / stop timestamp: 2016-08-25 15:31:33 / 2016-08-25 15:31:38", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " diff backup: 20160809-135410F_20160809-135413D", - " start / stop timestamp: 2016-08-09 13:54:10 / 2016-08-09 13:54:13", + " diff backup: 20160825-153138F_20160825-153141D", + " start / stop timestamp: 2016-08-25 15:31:38 / 2016-08-25 15:31:41", " database size: 19.3MB, backup size: 8.2KB", - " repository size: 2.2MB, repository backup size: 342B", - " backup reference list: 20160809-135410F" + " repository size: 2.2MB, repository backup size: 345B", + " backup reference list: 20160825-153138F" ] } }, @@ -657,11 +657,11 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --type=incr", - " INFO: last backup label = 20160809-135410F_20160809-135413D, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:24\": backup begins after the next regular checkpoint completes", - " INFO: archive start: 0/5000028", - " INFO: backup file /var/lib/pgsql/9.4/data/base/12140/pg_internal.init (115.2KB, 71%) checksum 86a38e5b0434f6938d697aa069799bbf0467eb65", - " [filtered 16 lines of output]" + " INFO: last backup label = 20160825-153138F_20160825-153141D, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:31:53\": backup begins after the next regular checkpoint completes", + " INFO: backup lsn start: 0/5000028", + " INFO: backup file /var/lib/pgsql/9.4/data/base/12140/pg_internal.init (115.2KB, 71%) checksum 57cba0266dd4d2e42481d9d673b43443849e5d4d", + " [filtered 14 lines of output]" ] } }, @@ -709,10 +709,10 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --type=incr", - " INFO: last backup label = 20160809-135410F_20160809-135427I, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:28\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/6000028", - " INFO: backup file /var/lib/pgsql/9.4/data/backup_label (236B, 100%) checksum d44da68b85a519cc53de29ddeffb08468eb3b78e", + " INFO: last backup label = 20160825-153138F_20160825-153156I, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:31:57\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/6000028", + " INFO: backup file /var/lib/pgsql/9.4/data/backup_label (236B, 2%) checksum 3580246731a4efc2df16edc405b61d25970299d4", " [filtered 8 lines of output]" ] } @@ -748,8 +748,8 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:31\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/7000028", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:32:00\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/7000028", " ERROR: [122]: unable to create /var/lib/pgbackrest/temp/demo.tmp: Permission denied", " INFO: backup stop" ] @@ -786,11 +786,11 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --type=incr", - " INFO: last backup label = 20160809-135410F_20160809-135431I, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:33\": backup begins after the requested immediate checkpoint completes", + " INFO: last backup label = 20160825-153138F_20160825-153200I, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:32:02\": backup begins after the requested immediate checkpoint completes", " ERROR: [132]: 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'), lsn::text from pg_start_backup('pgBackRest backup started at 2016-08-09 13:54:33', true) as lsn" + " select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), lsn::text from pg_start_backup('pgBackRest backup started at 2016-08-25 15:32:02', true) as lsn" ] } }, @@ -839,12 +839,12 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --stop-auto --type=incr", - " INFO: last backup label = 20160809-135410F_20160809-135431I, version = 1.05", + " INFO: last backup label = 20160825-153138F_20160825-153200I, version = 1.06", " WARN: the cluster is already in backup mode but no backup process is running. pg_stop_backup() will be called so a new backup can be started.", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:54:34\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/9000028", - " INFO: backup file /var/lib/pgsql/9.4/data/pg_log/postgresql.log (1.2KB, 84%) checksum d822378190f1c4548c6f2353fee1704cb37abcfb", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:32:04\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/9000028", + " INFO: backup file /var/lib/pgsql/9.4/data/pg_log/postgresql.log (1.2KB, 12%) checksum b770097baa6e3ab50763879569d861bd2c515889", " [filtered 9 lines of output]" ] } @@ -885,7 +885,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20160809-135410F|remove archive" + "archive retention on backup 20160825-153138F|remove archive" ] }, "host" : "db-master", @@ -894,10 +894,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 772 lines of output]", + " [filtered 770 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=detail --repo-path=/var/lib/pgbackrest --retention-full=2 --stanza=demo", - "DETAIL: archive retention on backup 20160809-135410F, start = 000000010000000000000002", + "DETAIL: archive retention on backup 20160825-153138F, start = 000000010000000000000002", "DETAIL: remove archive: start = 000000010000000000000001, stop = 000000010000000000000001", " INFO: expire stop" ] @@ -914,7 +914,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135444F" + "20160825-153214F" ] } }, @@ -928,7 +928,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20160809-135410F|archive retention on backup 20160809-135444F|remove archive" + "expire full backup set\\: 20160825-153138F|archive retention on backup 20160825-153214F|remove archive" ] }, "host" : "db-master", @@ -937,12 +937,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 772 lines of output]", + " [filtered 770 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=info --repo-path=/var/lib/pgbackrest --retention-full=2 --stanza=demo", - " INFO: expire full backup set: 20160809-135410F, 20160809-135410F_20160809-135413D, 20160809-135410F_20160809-135427I, 20160809-135410F_20160809-135431I, 20160809-135410F_20160809-135438I", - " INFO: remove expired backup 20160809-135410F_20160809-135438I", - " INFO: remove expired backup 20160809-135410F_20160809-135431I", + " INFO: expire full backup set: 20160825-153138F, 20160825-153138F_20160825-153141D, 20160825-153138F_20160825-153156I, 20160825-153138F_20160825-153200I, 20160825-153138F_20160825-153208I", + " INFO: remove expired backup 20160825-153138F_20160825-153208I", + " INFO: remove expired backup 20160825-153138F_20160825-153200I", " [filtered 3 lines of output]" ] } @@ -995,7 +995,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135449F_20160809-135453D" + "20160825-153219F_20160825-153223D" ] } }, @@ -1019,7 +1019,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20160809-135449F_20160809-135453D" + "expire diff backup set: 20160825-153219F_20160825-153223D" ] }, "host" : "db-master", @@ -1031,9 +1031,9 @@ " [filtered 10 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=info --repo-path=/var/lib/pgbackrest --retention-diff=1 --retention-full=2 --stanza=demo", - " INFO: expire diff backup set: 20160809-135449F_20160809-135453D, 20160809-135449F_20160809-135456I", - " INFO: remove expired backup 20160809-135449F_20160809-135456I", - " INFO: remove expired backup 20160809-135449F_20160809-135453D" + " INFO: expire diff backup set: 20160825-153219F_20160825-153223D, 20160825-153219F_20160825-153226I", + " INFO: remove expired backup 20160825-153219F_20160825-153226I", + " INFO: remove expired backup 20160825-153219F_20160825-153223D" ] } }, @@ -1066,11 +1066,11 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 784 lines of output]", + " [filtered 783 lines of output]", "DETAIL: restore file /var/lib/pgsql/9.4/data/base/1/11886 - exists and is zero size (0B, 100%)", " INFO: wrote /var/lib/pgsql/9.4/data/recovery.conf", " INFO: restore global/pg_control (copied last to ensure aborted restores cannot be started)", - " INFO: restore file /var/lib/pgsql/9.4/data/global/pg_control (8KB) checksum 50ea2c475c115521f22c6fe665c4e68561e7b2c4", + " INFO: restore file /var/lib/pgsql/9.4/data/global/pg_control (8KB) checksum a9310507d525920420446e09471cc047544caf59", " INFO: restore stop" ] } @@ -1372,7 +1372,7 @@ "type" : "exe", "value" : { "output" : [ - "2016-08-09 13:55:21.327017+00" + "2016-08-25 15:32:51.433871+00" ] } }, @@ -1418,7 +1418,7 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:55:21.327017+00\" restore" + " --type=time \"--target=2016-08-25 15:32:51.433871+00\" restore" ], "host" : "db-master", "output" : false @@ -1454,7 +1454,7 @@ "value" : { "output" : [ "restore_command = '/usr/bin/pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2016-08-09 13:55:21.327017+00'" + "recovery_target_time = '2016-08-25 15:32:51.433871+00'" ] } }, @@ -1521,17 +1521,17 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:55:17 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:32:48 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:55:21.327017+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:32:51.433871+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000013\" from archive", - "LOG: redo starts at 0/13000028", - "LOG: consistent recovery state reached at 0/130000F0", "LOG: restored log file \"000000040000000000000014\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2016-08-09 13:55:21.425744+00", - "LOG: redo done at 0/140157F0", - "LOG: last completed transaction was at log time 2016-08-09 13:55:21.213763+00", + "LOG: redo starts at 0/14000028", + "LOG: consistent recovery state reached at 0/140000F0", + "LOG: restored log file \"000000040000000000000015\" from archive", + "LOG: recovery stopping before commit of transaction 686, time 2016-08-25 15:32:51.534112+00", + "LOG: redo done at 0/150157F0", + "LOG: last completed transaction was at log time 2016-08-25 15:32:51.325334+00", "LOG: selected new timeline ID: 5", "LOG: restored log file \"00000004.history\" from archive", " [filtered 3 lines of output]" @@ -1577,7 +1577,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135449F_20160809-135521D" + "20160825-153219F_20160825-153251D" ] } }, @@ -1605,7 +1605,7 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:55:21.327017+00\" restore" + " --type=time \"--target=2016-08-25 15:32:51.433871+00\" restore" ], "host" : "db-master", "output" : false @@ -1685,15 +1685,15 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:55:28 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:32:58 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:55:21.327017+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:32:51.433871+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"000000050000000000000015\" from archive", - "LOG: redo starts at 0/15000028", - "LOG: consistent recovery state reached at 0/150000F0", - "LOG: redo done at 0/150000F0", - "LOG: restored log file \"000000050000000000000015\" from archive", + "LOG: restored log file \"000000050000000000000016\" from archive", + "LOG: redo starts at 0/16000028", + "LOG: consistent recovery state reached at 0/160000F0", + "LOG: redo done at 0/160000F0", + "LOG: restored log file \"000000050000000000000016\" from archive", " [filtered 7 lines of output]" ] } @@ -1707,7 +1707,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20160809-135449F_20160809-135521D" + "20160825-153219F_20160825-153251D" ] }, "host" : "db-master", @@ -1719,27 +1719,27 @@ "stanza: demo", " status: ok", "", - " full backup: 20160809-135444F", - " start / stop timestamp: 2016-08-09 13:54:39 / 2016-08-09 13:54:44", + " full backup: 20160825-153214F", + " start / stop timestamp: 2016-08-25 15:32:09 / 2016-08-25 15:32:14", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " full backup: 20160809-135449F", - " start / stop timestamp: 2016-08-09 13:54:44 / 2016-08-09 13:54:49", + " full backup: 20160825-153219F", + " start / stop timestamp: 2016-08-25 15:32:14 / 2016-08-25 15:32:19", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " diff backup: 20160809-135449F_20160809-135521D", - " start / stop timestamp: 2016-08-09 13:55:17 / 2016-08-09 13:55:21", + " diff backup: 20160825-153219F_20160825-153251D", + " start / stop timestamp: 2016-08-25 15:32:47 / 2016-08-25 15:32:51", " database size: 25.7MB, backup size: 6.5MB", - " repository size: 3MB, repository backup size: 790.2KB", - " backup reference list: 20160809-135449F", + " repository size: 3MB, repository backup size: 789.9KB", + " backup reference list: 20160825-153219F", "", - " incr backup: 20160809-135449F_20160809-135530I", - " start / stop timestamp: 2016-08-09 13:55:27 / 2016-08-09 13:55:30", + " incr backup: 20160825-153219F_20160825-153301I", + " start / stop timestamp: 2016-08-25 15:32:57 / 2016-08-25 15:33:01", " database size: 25.6MB, backup size: 1.9MB", - " repository size: 3MB, repository backup size: 214.9KB", - " backup reference list: 20160809-135449F, 20160809-135449F_20160809-135521D" + " repository size: 3MB, repository backup size: 214.7KB", + " backup reference list: 20160825-153219F, 20160825-153219F_20160825-153251D" ] } }, @@ -1757,8 +1757,8 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:55:21.327017+00\" \\", - " --set=20160809-135449F_20160809-135521D restore" + " --type=time \"--target=2016-08-25 15:32:51.433871+00\" \\", + " --set=20160825-153219F_20160825-153251D restore" ], "host" : "db-master", "output" : false @@ -1838,17 +1838,17 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:55:17 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:32:48 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:55:21.327017+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:32:51.433871+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000013\" from archive", - "LOG: redo starts at 0/13000028", - "LOG: consistent recovery state reached at 0/130000F0", "LOG: restored log file \"000000040000000000000014\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2016-08-09 13:55:21.425744+00", - "LOG: redo done at 0/140157F0", - "LOG: last completed transaction was at log time 2016-08-09 13:55:21.213763+00", + "LOG: redo starts at 0/14000028", + "LOG: consistent recovery state reached at 0/140000F0", + "LOG: restored log file \"000000040000000000000015\" from archive", + "LOG: recovery stopping before commit of transaction 686, time 2016-08-25 15:32:51.534112+00", + "LOG: redo done at 0/150157F0", + "LOG: last completed transaction was at log time 2016-08-25 15:32:51.325334+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", " [filtered 5 lines of output]" @@ -1865,7 +1865,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.5" + "ip" : "172.17.0.4" } }, { @@ -1894,13 +1894,13 @@ "host" : "backup", "option" : { "demo" : { - "db-host" : { + "db1-host" : { "value" : "db-master" }, - "db-path" : { + "db1-path" : { "value" : "/var/lib/pgsql/9.4/data" }, - "db-user" : { + "db1-user" : { "value" : "postgres" } }, @@ -1915,9 +1915,9 @@ "value" : { "config" : [ "[demo]", - "db-host=db-master", - "db-path=/var/lib/pgsql/9.4/data", - "db-user=postgres", + "db1-host=db-master", + "db1-path=/var/lib/pgsql/9.4/data", + "db1-user=postgres", "", "[global]", "repo-path=/var/lib/pgbackrest", @@ -2132,7 +2132,7 @@ "output" : [ " INFO: check start: --backup-host=backup --backup-user=backrest --db-path=/var/lib/pgsql/9.4/data --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", " INFO: switch xlog 00000008000000000000001A", - " INFO: WAL segment 00000008000000000000001A successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000800000000/00000008000000000000001A-ac438235952494c51a36c1b3eefb5e03949c6da0.gz'", + " INFO: WAL segment 00000008000000000000001A successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000800000000/00000008000000000000001A-0c70f04411428bc706355e44e454b483a93b60bf.gz'", " INFO: check stop" ] } @@ -2248,7 +2248,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.6" + "ip" : "172.17.0.5" } }, { @@ -2378,7 +2378,7 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:56:02 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:33:34 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", @@ -2458,7 +2458,7 @@ "output" : [ " pg_switch_xlog | now ", "----------------+-------------------------------", - " 0/1B017918 | 2016-08-09 13:56:24.092707+00", + " 0/1B017958 | 2016-08-25 15:33:58.375225+00", "(1 row)" ] } @@ -2484,7 +2484,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2016-08-09 13:56:26.619501+00", + " Important Data | 2016-08-25 15:34:02.015371+00", "(1 row)" ] } @@ -2509,7 +2509,7 @@ "key" : { "cmd" : [ "sudo -u postgres sh -c 'echo \\", - " \"host replication replicator 172.17.0.6/32 md5\" \\", + " \"host replication replicator 172.17.0.5/32 md5\" \\", " >> /var/lib/pgsql/9.4/data/pg_hba.conf'" ], "host" : "db-master", @@ -2534,7 +2534,7 @@ "option" : { "demo" : { "recovery-option" : { - "value" : "primary_conninfo=host=172.17.0.4 port=5432 user=replicator" + "value" : "primary_conninfo=host=172.17.0.3 port=5432 user=replicator" } } } @@ -2545,7 +2545,7 @@ "[demo]", "db-path=/var/lib/pgsql/9.4/data", "recovery-option=standby_mode=on", - "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", + "recovery-option=primary_conninfo=host=172.17.0.3 port=5432 user=replicator", "", "[global]", "backup-host=backup", @@ -2557,7 +2557,7 @@ "key" : { "cmd" : [ "sudo -u postgres sh -c 'echo \\", - " \"172.17.0.4:*:replication:replicator:jw8s0F4\" \\", + " \"172.17.0.3:*:replication:replicator:jw8s0F4\" \\", " >> /home/postgres/.pgpass'" ], "host" : "db-standby", @@ -2606,7 +2606,7 @@ "type" : "exe", "value" : { "output" : [ - "primary_conninfo = 'host=172.17.0.4 port=5432 user=replicator'", + "primary_conninfo = 'host=172.17.0.3 port=5432 user=replicator'", "standby_mode = 'on'", "restore_command = '/usr/bin/pgbackrest --stanza=demo archive-get %f \"%p\"'" ] @@ -2709,7 +2709,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2016-08-09 13:56:34.246435+00", + " Important Data | 2016-08-25 15:34:10.119648+00", "(1 row)" ] } @@ -2735,10 +2735,89 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2016-08-09 13:56:34.429238+00", + " Important Data | 2016-08-25 15:34:10.306318+00", "(1 row)" ] } + }, + { + "key" : { + "file" : "/etc/pgbackrest.conf", + "host" : "backup", + "option" : { + "demo" : { + "db2-host" : { + "value" : "db-standby" + }, + "db2-path" : { + "value" : "/var/lib/pgsql/9.4/data" + }, + "db2-user" : { + "value" : "postgres" + } + }, + "global" : { + "backup-standby" : { + "value" : "y" + } + } + } + }, + "type" : "cfg-pgbackrest", + "value" : { + "config" : [ + "[demo]", + "db1-host=db-master", + "db1-path=/var/lib/pgsql/9.4/data", + "db1-user=postgres", + "db2-host=db-standby", + "db2-path=/var/lib/pgsql/9.4/data", + "db2-user=postgres", + "", + "[global]", + "backup-standby=y", + "repo-path=/var/lib/pgbackrest", + "start-fast=y" + ] + } + }, + { + "key" : { + "cmd" : [ + "sudo -u backrest pgbackrest --stanza=demo --log-level-console=detail backup" + ], + "highlight" : { + "filter" : true, + "filter-context" : 2, + "list" : [ + "backup file db-master|replay on the standby" + ] + }, + "host" : "backup", + "output" : true + }, + "type" : "exe", + "value" : { + "output" : [ + " [filtered 2 lines of output]", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:34:10\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/1D000028", + " INFO: wait for replay on the standby to reach 0/1D000028", + " INFO: replay on the standby reached 0/1D0000C8", + " INFO: backup file db-standby:/var/lib/pgsql/9.4/data/base/12140/12008 (392KB, 20%) checksum b2ddf9cb5aa8c13dba897292a82a8962931d7977", + " INFO: backup file db-standby:/var/lib/pgsql/9.4/data/base/12140/11890 (344KB, 37%) checksum b04b55fd8787a1f3ece7190800a38a7396795adb", + " [filtered 25 lines of output]", + " INFO: backup file db-standby:/var/lib/pgsql/9.4/data/base/12140/32778 (0B, 99%)", + " INFO: backup file db-standby:/var/lib/pgsql/9.4/data/base/12140/32771 (0B, 99%)", + " INFO: backup file db-master:/var/lib/pgsql/9.4/data/pg_hba.conf (4.1KB, 99%) checksum dbda288edbce6486fab7ca9f9db0864316754bee", + " INFO: backup file db-master:/var/lib/pgsql/9.4/data/pg_log/postgresql.log (2.2KB, 99%) checksum 2cb0076452661e160d2dde908a4bd52767f7d3a3", + " INFO: backup file db-master:/var/lib/pgsql/9.4/data/backup_label (238B, 99%) checksum bfe6a42f9322e4822b84d81a37f3435f759ede05", + " INFO: backup file db-master:/var/lib/pgsql/9.4/data/global/pg_control (8KB, 100%) checksum 21d1f30f6ae43c7e15b8869dac4c006ce9954e9f", + " INFO: incr backup size = 1.8MB", + " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", + " [filtered 5 lines of output]" + ] + } } ] } @@ -2756,7 +2835,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.4" + "ip" : "172.17.0.3" } }, { @@ -2833,7 +2912,7 @@ { "key" : { "cmd" : [ - "sudo cp -r ~/pgbackrest-release-1.05/lib/pgBackRest \\", + "sudo cp -r ~/pgbackrest-release-1.06/lib/pgBackRest \\", " /usr/share/perl5" ], "host" : "db-master", @@ -2864,7 +2943,7 @@ { "key" : { "cmd" : [ - "sudo cp ~/pgbackrest-release-1.05/bin/pgbackrest /usr/bin/pgbackrest" + "sudo cp ~/pgbackrest-release-1.06/bin/pgbackrest /usr/bin/pgbackrest" ], "host" : "db-master", "output" : false @@ -2912,7 +2991,7 @@ "type" : "exe", "value" : { "output" : [ - "pgBackRest 1.05 - General help", + "pgBackRest 1.06 - General help", "", "Usage:", " pgbackrest [options] [command]", @@ -3134,7 +3213,7 @@ " INFO: check start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", " INFO: switch xlog 000000010000000000000001", " ERROR: [148]: /var/lib/pgbackrest/backup/demo does not exist", - " INFO: WAL segment 000000010000000000000001 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000100000000/000000010000000000000001-dcb086ea01ea9fa7145c3ee270fb108d20b60407.gz'", + " INFO: WAL segment 000000010000000000000001 successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000100000000/000000010000000000000001-6552e893da25f9812a8451209e34cc8c6a00d28b.gz'", " INFO: check stop" ] } @@ -3160,14 +3239,14 @@ "output" : [ " INFO: backup start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", " WARN: no prior backup exists, incr backup has been changed to full", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:56:56\": backup begins after the next regular checkpoint completes", - " INFO: archive start: 0/2000028", - " [filtered 758 lines of output]", - " INFO: backup file /var/lib/postgresql/9.4/demo/base/1/11885 (0B, 100%)", - " INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB) checksum 0c46806f245fbae698a467f6591cfead758e1694", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:34:36\": backup begins after the next regular checkpoint completes", + " INFO: backup lsn start: 0/2000028", + " [filtered 757 lines of output]", + " INFO: backup file /var/lib/postgresql/9.4/demo/PG_VERSION (4B, 99%) checksum 8dbabb96e032b8d9f1993c0e4b9141e71ade01a1", + " INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB, 100%) checksum bbcc0602ba68786b37a0450bf67ed55fe73a10d3", " INFO: full backup size = 19.3MB", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: archive stop: 0/20000F0", + " INFO: backup lsn stop: 0/20000F0", " [filtered 4 lines of output]" ] } @@ -3183,7 +3262,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135702F" + "20160825-153441F" ] } }, @@ -3207,11 +3286,11 @@ "value" : { "output" : [ " [filtered 4 lines of output]", - " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 100%) checksum 94a6be46134439038320d1b6894cd37200ea8bfc", - " INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB) checksum d413d33480d0cd03d99f1970d54a1e6ee7e15871", + " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 2%) checksum b233b27b068500c27bd3beb90b3fd42bca8492f1", + " INFO: backup file /var/lib/postgresql/9.4/demo/global/pg_control (8KB, 100%) checksum a9a9a0f6318109c6413759782b8c938a6debb5d6", " INFO: diff backup size = 8.2KB", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: archive stop: 0/30000F0", + " INFO: backup lsn stop: 0/30000F0", " [filtered 4 lines of output]" ] } @@ -3237,16 +3316,16 @@ "stanza: demo", " status: ok", "", - " full backup: 20160809-135702F", - " start / stop timestamp: 2016-08-09 13:56:56 / 2016-08-09 13:57:02", + " full backup: 20160825-153441F", + " start / stop timestamp: 2016-08-25 15:34:36 / 2016-08-25 15:34:41", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " diff backup: 20160809-135702F_20160809-135706D", - " start / stop timestamp: 2016-08-09 13:57:03 / 2016-08-09 13:57:06", + " diff backup: 20160825-153441F_20160825-153444D", + " start / stop timestamp: 2016-08-25 15:34:41 / 2016-08-25 15:34:44", " database size: 19.3MB, backup size: 8.2KB", - " repository size: 2.2MB, repository backup size: 343B", - " backup reference list: 20160809-135702F" + " repository size: 2.2MB, repository backup size: 344B", + " backup reference list: 20160825-153441F" ] } }, @@ -3366,11 +3445,11 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --type=incr", - " INFO: last backup label = 20160809-135702F_20160809-135706D, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:57:15\": backup begins after the next regular checkpoint completes", - " INFO: archive start: 0/5000028", - " INFO: backup file /var/lib/postgresql/9.4/demo/base/12139/pg_internal.init (115.2KB, 72%) checksum 6109524a216f12b4b8429d31ff8e36722922858f", - " [filtered 14 lines of output]" + " INFO: last backup label = 20160825-153441F_20160825-153444D, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:34:53\": backup begins after the next regular checkpoint completes", + " INFO: backup lsn start: 0/5000028", + " INFO: backup file /var/lib/postgresql/9.4/demo/base/12139/pg_internal.init (115.2KB, 72%) checksum 094557567c9dbea05b01f34ced250ddb9acd2644", + " [filtered 13 lines of output]" ] } }, @@ -3418,10 +3497,10 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --type=incr", - " INFO: last backup label = 20160809-135702F_20160809-135718I, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:57:19\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/6000028", - " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 100%) checksum 6a3dda90603b70748277eef071b95b721fe58f2a", + " INFO: last backup label = 20160825-153441F_20160825-153456I, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:34:57\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/6000028", + " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 2%) checksum dfad8beb9bb478673e2a1077222238a5f7977b40", " [filtered 8 lines of output]" ] } @@ -3457,8 +3536,8 @@ "value" : { "output" : [ " [filtered 2 lines of output]", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:57:21\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/7000028", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:35:00\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/7000028", " ERROR: [122]: unable to create /var/lib/pgbackrest/temp/demo.tmp: Permission denied", " INFO: backup stop" ] @@ -3495,11 +3574,11 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --type=incr", - " INFO: last backup label = 20160809-135702F_20160809-135721I, version = 1.05", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:57:23\": backup begins after the requested immediate checkpoint completes", + " INFO: last backup label = 20160825-153441F_20160825-153500I, version = 1.06", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:35:02\": backup begins after the requested immediate checkpoint completes", " ERROR: [132]: 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'), lsn::text from pg_start_backup('pgBackRest backup started at 2016-08-09 13:57:23', true) as lsn" + " select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), lsn::text from pg_start_backup('pgBackRest backup started at 2016-08-25 15:35:02', true) as lsn" ] } }, @@ -3548,12 +3627,12 @@ "value" : { "output" : [ " INFO: backup start: --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo --start-fast --stop-auto --type=incr", - " INFO: last backup label = 20160809-135702F_20160809-135721I, version = 1.05", + " INFO: last backup label = 20160825-153441F_20160825-153500I, version = 1.06", " WARN: the cluster is already in backup mode but no backup process is running. pg_stop_backup() will be called so a new backup can be started.", " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", - " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-09 13:57:24\": backup begins after the requested immediate checkpoint completes", - " INFO: archive start: 0/8000028", - " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 100%) checksum 92f7a3337294207a8bf52d1e16c895a251c10e8f", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:35:03\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/8000028", + " INFO: backup file /var/lib/postgresql/9.4/demo/backup_label (236B, 2%) checksum 67904b048f7b5fdc2dd3eb3eaf3f9f5b80d943a9", " [filtered 8 lines of output]" ] } @@ -3594,7 +3673,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "archive retention on backup 20160809-135702F|remove archive" + "archive retention on backup 20160825-153441F|remove archive" ] }, "host" : "db-master", @@ -3603,10 +3682,10 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 767 lines of output]", + " [filtered 766 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=detail --repo-path=/var/lib/pgbackrest --retention-full=2 --stanza=demo", - "DETAIL: archive retention on backup 20160809-135702F, start = 000000010000000000000002", + "DETAIL: archive retention on backup 20160825-153441F, start = 000000010000000000000002", "DETAIL: remove archive: start = 000000010000000000000001, stop = 000000010000000000000001", " INFO: expire stop" ] @@ -3623,7 +3702,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135734F" + "20160825-153512F" ] } }, @@ -3637,7 +3716,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire full backup set\\: 20160809-135702F|archive retention on backup 20160809-135734F|remove archive" + "expire full backup set\\: 20160825-153441F|archive retention on backup 20160825-153512F|remove archive" ] }, "host" : "db-master", @@ -3646,12 +3725,12 @@ "type" : "exe", "value" : { "output" : [ - " [filtered 767 lines of output]", + " [filtered 766 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=info --repo-path=/var/lib/pgbackrest --retention-full=2 --stanza=demo", - " INFO: expire full backup set: 20160809-135702F, 20160809-135702F_20160809-135706D, 20160809-135702F_20160809-135718I, 20160809-135702F_20160809-135721I, 20160809-135702F_20160809-135728I", - " INFO: remove expired backup 20160809-135702F_20160809-135728I", - " INFO: remove expired backup 20160809-135702F_20160809-135721I", + " INFO: expire full backup set: 20160825-153441F, 20160825-153441F_20160825-153444D, 20160825-153441F_20160825-153456I, 20160825-153441F_20160825-153500I, 20160825-153441F_20160825-153507I", + " INFO: remove expired backup 20160825-153441F_20160825-153507I", + " INFO: remove expired backup 20160825-153441F_20160825-153500I", " [filtered 3 lines of output]" ] } @@ -3704,7 +3783,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135738F_20160809-135742D" + "20160825-153517F_20160825-153520D" ] } }, @@ -3728,7 +3807,7 @@ "filter" : true, "filter-context" : 2, "list" : [ - "expire diff backup set: 20160809-135738F_20160809-135742D" + "expire diff backup set: 20160825-153517F_20160825-153520D" ] }, "host" : "db-master", @@ -3740,9 +3819,9 @@ " [filtered 10 lines of output]", " INFO: backup stop", " INFO: expire start: --log-level-console=info --repo-path=/var/lib/pgbackrest --retention-diff=1 --retention-full=2 --stanza=demo", - " INFO: expire diff backup set: 20160809-135738F_20160809-135742D, 20160809-135738F_20160809-135745I", - " INFO: remove expired backup 20160809-135738F_20160809-135745I", - " INFO: remove expired backup 20160809-135738F_20160809-135742D" + " INFO: expire diff backup set: 20160825-153517F_20160825-153520D, 20160825-153517F_20160825-153523I", + " INFO: remove expired backup 20160825-153517F_20160825-153523I", + " INFO: remove expired backup 20160825-153517F_20160825-153520D" ] } }, @@ -3785,7 +3864,7 @@ "DETAIL: restore file /var/lib/postgresql/9.4/demo/base/1/11885 - exists and is zero size (0B, 100%)", " INFO: wrote /var/lib/postgresql/9.4/demo/recovery.conf", " INFO: restore global/pg_control (copied last to ensure aborted restores cannot be started)", - " INFO: restore file /var/lib/postgresql/9.4/demo/global/pg_control (8KB) checksum bcbadf6e2b939dac65225c1405dc519e483c3cbf", + " INFO: restore file /var/lib/postgresql/9.4/demo/global/pg_control (8KB) checksum 609bd776144b9ee6888758f2465f8e86f2a8386d", " INFO: restore stop" ] } @@ -4087,7 +4166,7 @@ "type" : "exe", "value" : { "output" : [ - "2016-08-09 13:58:15.89565+00" + "2016-08-25 15:35:51.331511+00" ] } }, @@ -4133,7 +4212,7 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:58:15.89565+00\" restore" + " --type=time \"--target=2016-08-25 15:35:51.331511+00\" restore" ], "host" : "db-master", "output" : false @@ -4169,7 +4248,7 @@ "value" : { "output" : [ "restore_command = '/usr/bin/pgbackrest --stanza=demo archive-get %f \"%p\"'", - "recovery_target_time = '2016-08-09 13:58:15.89565+00'" + "recovery_target_time = '2016-08-25 15:35:51.331511+00'" ] } }, @@ -4236,20 +4315,20 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:58:12 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:35:47 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:58:15.89565+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:35:51.331511+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000014\" from archive", + "LOG: restored log file \"000000040000000000000013\" from archive", " [filtered 2 lines of output]", "LOG: incomplete startup packet", - "LOG: restored log file \"000000040000000000000015\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2016-08-09 13:58:16.080924+00", - "LOG: redo done at 0/150157F0", - "LOG: last completed transaction was at log time 2016-08-09 13:58:15.677286+00", + "LOG: restored log file \"000000040000000000000014\" from archive", + "LOG: recovery stopping before commit of transaction 686, time 2016-08-25 15:35:51.486371+00", + "LOG: redo done at 0/140157F0", + "LOG: last completed transaction was at log time 2016-08-25 15:35:51.173348+00", "LOG: selected new timeline ID: 5", "LOG: restored log file \"00000004.history\" from archive", - " [filtered 5 lines of output]" + " [filtered 6 lines of output]" ] } }, @@ -4292,7 +4371,7 @@ "type" : "exe", "value" : { "output" : [ - "20160809-135738F_20160809-135815D" + "20160825-153517F_20160825-153550D" ] } }, @@ -4320,7 +4399,7 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:58:15.89565+00\" restore" + " --type=time \"--target=2016-08-25 15:35:51.331511+00\" restore" ], "host" : "db-master", "output" : false @@ -4400,15 +4479,15 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:58:23 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:36:00 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:58:15.89565+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:35:51.331511+00", "LOG: restored log file \"00000005.history\" from archive", - "LOG: restored log file \"000000050000000000000016\" from archive", - "LOG: redo starts at 0/16000028", - "LOG: consistent recovery state reached at 0/160000F0", + "LOG: restored log file \"000000050000000000000015\" from archive", + "LOG: redo starts at 0/15000028", + "LOG: consistent recovery state reached at 0/150000F0", "LOG: incomplete startup packet", - "LOG: redo done at 0/160000F0", + "LOG: redo done at 0/150000F0", " [filtered 11 lines of output]" ] } @@ -4422,7 +4501,7 @@ "filter" : false, "filter-context" : 2, "list" : [ - "20160809-135738F_20160809-135815D" + "20160825-153517F_20160825-153550D" ] }, "host" : "db-master", @@ -4434,27 +4513,27 @@ "stanza: demo", " status: ok", "", - " full backup: 20160809-135734F", - " start / stop timestamp: 2016-08-09 13:57:29 / 2016-08-09 13:57:34", + " full backup: 20160825-153512F", + " start / stop timestamp: 2016-08-25 15:35:07 / 2016-08-25 15:35:12", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " full backup: 20160809-135738F", - " start / stop timestamp: 2016-08-09 13:57:34 / 2016-08-09 13:57:38", + " full backup: 20160825-153517F", + " start / stop timestamp: 2016-08-25 15:35:12 / 2016-08-25 15:35:17", " database size: 19.3MB, backup size: 19.3MB", " repository size: 2.2MB, repository backup size: 2.2MB", "", - " diff backup: 20160809-135738F_20160809-135815D", - " start / stop timestamp: 2016-08-09 13:58:11 / 2016-08-09 13:58:15", + " diff backup: 20160825-153517F_20160825-153550D", + " start / stop timestamp: 2016-08-25 15:35:46 / 2016-08-25 15:35:50", " database size: 25.7MB, backup size: 6.5MB", - " repository size: 3MB, repository backup size: 788.7KB", - " backup reference list: 20160809-135738F", + " repository size: 3MB, repository backup size: 788.6KB", + " backup reference list: 20160825-153517F", "", - " incr backup: 20160809-135738F_20160809-135825I", - " start / stop timestamp: 2016-08-09 13:58:22 / 2016-08-09 13:58:25", + " incr backup: 20160825-153517F_20160825-153602I", + " start / stop timestamp: 2016-08-25 15:35:59 / 2016-08-25 15:36:02", " database size: 25.6MB, backup size: 1.9MB", " repository size: 2.9MB, repository backup size: 214.3KB", - " backup reference list: 20160809-135738F, 20160809-135738F_20160809-135815D" + " backup reference list: 20160825-153517F, 20160825-153517F_20160825-153550D" ] } }, @@ -4472,8 +4551,8 @@ "key" : { "cmd" : [ "sudo -u postgres pgbackrest --stanza=demo --delta \\", - " --type=time \"--target=2016-08-09 13:58:15.89565+00\" \\", - " --set=20160809-135738F_20160809-135815D restore" + " --type=time \"--target=2016-08-25 15:35:51.331511+00\" \\", + " --set=20160825-153517F_20160825-153550D restore" ], "host" : "db-master", "output" : false @@ -4553,20 +4632,20 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:58:12 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:35:47 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", - "LOG: starting point-in-time recovery to 2016-08-09 13:58:15.89565+00", + "LOG: starting point-in-time recovery to 2016-08-25 15:35:51.331511+00", "LOG: restored log file \"00000004.history\" from archive", - "LOG: restored log file \"000000040000000000000014\" from archive", + "LOG: restored log file \"000000040000000000000013\" from archive", " [filtered 2 lines of output]", "LOG: incomplete startup packet", - "LOG: restored log file \"000000040000000000000015\" from archive", - "LOG: recovery stopping before commit of transaction 689, time 2016-08-09 13:58:16.080924+00", - "LOG: redo done at 0/150157F0", - "LOG: last completed transaction was at log time 2016-08-09 13:58:15.677286+00", + "LOG: restored log file \"000000040000000000000014\" from archive", + "LOG: recovery stopping before commit of transaction 686, time 2016-08-25 15:35:51.486371+00", + "LOG: redo done at 0/140157F0", + "LOG: last completed transaction was at log time 2016-08-25 15:35:51.173348+00", "LOG: restored log file \"00000005.history\" from archive", "LOG: restored log file \"00000006.history\" from archive", - " [filtered 8 lines of output]" + " [filtered 6 lines of output]" ] } }, @@ -4580,7 +4659,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.5" + "ip" : "172.17.0.4" } }, { @@ -4609,13 +4688,13 @@ "host" : "backup", "option" : { "demo" : { - "db-host" : { + "db1-host" : { "value" : "db-master" }, - "db-path" : { + "db1-path" : { "value" : "/var/lib/postgresql/9.4/demo" }, - "db-user" : { + "db1-user" : { "value" : "postgres" } }, @@ -4630,9 +4709,9 @@ "value" : { "config" : [ "[demo]", - "db-host=db-master", - "db-path=/var/lib/postgresql/9.4/demo", - "db-user=postgres", + "db1-host=db-master", + "db1-path=/var/lib/postgresql/9.4/demo", + "db1-user=postgres", "", "[global]", "repo-path=/var/lib/pgbackrest", @@ -4846,8 +4925,8 @@ "value" : { "output" : [ " INFO: check start: --backup-host=backup --backup-user=backrest --db-path=/var/lib/postgresql/9.4/demo --log-level-console=info --repo-path=/var/lib/pgbackrest --stanza=demo", - " INFO: switch xlog 00000008000000000000001B", - " INFO: WAL segment 00000008000000000000001B successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000800000000/00000008000000000000001B-87119ab1b27854bcdc2ccebfa4ce6d524d8be499.gz'", + " INFO: switch xlog 00000008000000000000001A", + " INFO: WAL segment 00000008000000000000001A successfully stored in the archive at '/var/lib/pgbackrest/archive/demo/9.4-1/0000000800000000/00000008000000000000001A-ae43fcef45486a72a59196e33f40e08dbcca259e.gz'", " INFO: check stop" ] } @@ -4963,7 +5042,7 @@ }, "type" : "host", "value" : { - "ip" : "172.17.0.6" + "ip" : "172.17.0.5" } }, { @@ -5116,16 +5195,16 @@ "type" : "exe", "value" : { "output" : [ - "LOG: database system was interrupted; last known up at 2016-08-09 13:58:59 UTC", + "LOG: database system was interrupted; last known up at 2016-08-25 15:36:36 UTC", "LOG: creating missing WAL directory \"pg_xlog/archive_status\"", "LOG: entering standby mode", "LOG: restored log file \"00000008.history\" from archive", "LOG: incomplete startup packet", - "LOG: restored log file \"00000008000000000000001A\" from archive", - "LOG: redo starts at 0/1A000028", - "LOG: consistent recovery state reached at 0/1A0000F0", + "LOG: restored log file \"000000080000000000000019\" from archive", + "LOG: redo starts at 0/19000028", + "LOG: consistent recovery state reached at 0/190000F0", "LOG: database system is ready to accept read only connections", - "LOG: restored log file \"00000008000000000000001B\" from archive" + "LOG: restored log file \"00000008000000000000001A\" from archive" ] } }, @@ -5195,9 +5274,9 @@ "type" : "exe", "value" : { "output" : [ - " pg_switch_xlog | now ", - "----------------+------------------------------", - " 0/1C017918 | 2016-08-09 13:59:20.03915+00", + " pg_switch_xlog | now ", + "----------------+-------------------------------", + " 0/1B017958 | 2016-08-25 15:36:56.199295+00", "(1 row)" ] } @@ -5221,9 +5300,9 @@ "type" : "exe", "value" : { "output" : [ - " message | now ", - "----------------+------------------------------", - " Important Data | 2016-08-09 13:59:23.13136+00", + " message | now ", + "----------------+-------------------------------", + " Important Data | 2016-08-25 15:36:59.413738+00", "(1 row)" ] } @@ -5248,7 +5327,7 @@ "key" : { "cmd" : [ "sudo -u postgres sh -c 'echo \\", - " \"host replication replicator 172.17.0.6/32 md5\" \\", + " \"host replication replicator 172.17.0.5/32 md5\" \\", " >> /etc/postgresql/9.4/demo/pg_hba.conf'" ], "host" : "db-master", @@ -5273,7 +5352,7 @@ "option" : { "demo" : { "recovery-option" : { - "value" : "primary_conninfo=host=172.17.0.4 port=5432 user=replicator" + "value" : "primary_conninfo=host=172.17.0.3 port=5432 user=replicator" } } } @@ -5284,7 +5363,7 @@ "[demo]", "db-path=/var/lib/postgresql/9.4/demo", "recovery-option=standby_mode=on", - "recovery-option=primary_conninfo=host=172.17.0.4 port=5432 user=replicator", + "recovery-option=primary_conninfo=host=172.17.0.3 port=5432 user=replicator", "", "[global]", "backup-host=backup", @@ -5296,7 +5375,7 @@ "key" : { "cmd" : [ "sudo -u postgres sh -c 'echo \\", - " \"172.17.0.4:*:replication:replicator:jw8s0F4\" \\", + " \"172.17.0.3:*:replication:replicator:jw8s0F4\" \\", " >> /home/postgres/.pgpass'" ], "host" : "db-standby", @@ -5345,7 +5424,7 @@ "type" : "exe", "value" : { "output" : [ - "primary_conninfo = 'host=172.17.0.4 port=5432 user=replicator'", + "primary_conninfo = 'host=172.17.0.3 port=5432 user=replicator'", "standby_mode = 'on'", "restore_command = '/usr/bin/pgbackrest --stanza=demo archive-get %f \"%p\"'" ] @@ -5400,9 +5479,9 @@ "value" : { "output" : [ " [filtered 9 lines of output]", + "LOG: restored log file \"00000008000000000000001A\" from archive", "LOG: restored log file \"00000008000000000000001B\" from archive", - "LOG: restored log file \"00000008000000000000001C\" from archive", - "LOG: started streaming WAL from primary at 0/1D000000 on timeline 8" + "LOG: started streaming WAL from primary at 0/1C000000 on timeline 8" ] } }, @@ -5431,7 +5510,7 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2016-08-09 13:59:30.077421+00", + " Important Data | 2016-08-25 15:37:06.982936+00", "(1 row)" ] } @@ -5457,10 +5536,87 @@ "output" : [ " message | now ", "----------------+-------------------------------", - " Important Data | 2016-08-09 13:59:30.307857+00", + " Important Data | 2016-08-25 15:37:07.126579+00", "(1 row)" ] } + }, + { + "key" : { + "file" : "/etc/pgbackrest.conf", + "host" : "backup", + "option" : { + "demo" : { + "db2-host" : { + "value" : "db-standby" + }, + "db2-path" : { + "value" : "/var/lib/postgresql/9.4/demo" + }, + "db2-user" : { + "value" : "postgres" + } + }, + "global" : { + "backup-standby" : { + "value" : "y" + } + } + } + }, + "type" : "cfg-pgbackrest", + "value" : { + "config" : [ + "[demo]", + "db1-host=db-master", + "db1-path=/var/lib/postgresql/9.4/demo", + "db1-user=postgres", + "db2-host=db-standby", + "db2-path=/var/lib/postgresql/9.4/demo", + "db2-user=postgres", + "", + "[global]", + "backup-standby=y", + "repo-path=/var/lib/pgbackrest", + "start-fast=y" + ] + } + }, + { + "key" : { + "cmd" : [ + "sudo -u backrest pgbackrest --stanza=demo --log-level-console=detail backup" + ], + "highlight" : { + "filter" : true, + "filter-context" : 2, + "list" : [ + "backup file db-master|replay on the standby" + ] + }, + "host" : "backup", + "output" : true + }, + "type" : "exe", + "value" : { + "output" : [ + " [filtered 2 lines of output]", + " INFO: execute exclusive pg_start_backup() with label \"pgBackRest backup started at 2016-08-25 15:37:07\": backup begins after the requested immediate checkpoint completes", + " INFO: backup lsn start: 0/1D000028", + " INFO: wait for replay on the standby to reach 0/1D000028", + " INFO: replay on the standby reached 0/1D0000C8", + " INFO: backup file db-standby:/var/lib/postgresql/9.4/demo/base/12139/12007 (392KB, 20%) checksum 46df46c55526f5837246e91fff9aa5bb2762f222", + " INFO: backup file db-standby:/var/lib/postgresql/9.4/demo/base/12139/11889 (344KB, 38%) checksum 4a3638d8f71553638ca68aab0fc551ead57d4ed9", + " [filtered 25 lines of output]", + " INFO: backup file db-standby:/var/lib/postgresql/9.4/demo/base/12139/32778 (0B, 99%)", + " INFO: backup file db-standby:/var/lib/postgresql/9.4/demo/base/12139/32771 (0B, 99%)", + " INFO: backup file db-master:/var/lib/postgresql/9.4/demo/backup_label (238B, 99%) checksum 2969c07af63b78c9a53a05f4bd9d98191b87ef70", + " INFO: backup file db-master:/var/lib/postgresql/9.4/demo/global/pg_control (8KB, 100%) checksum 0bd94885785dee9a51889d96388c702a42d6185c", + " INFO: incr backup size = 1.8MB", + " INFO: execute exclusive pg_stop_backup() and wait for all WAL segments to archive", + " [filtered 5 lines of output]" + ] + } } ] } diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 1af667795..3ffebdc84 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -114,7 +114,7 @@ - + @@ -182,7 +182,7 @@ -

Improve backup log messages to indicated which host the files are being copied from.

+

Improve backup log messages to indicate which host the files are being copied from.

diff --git a/lib/pgBackRest/Version.pm b/lib/pgBackRest/Version.pm index 14f187900..2cc9b11de 100644 --- a/lib/pgBackRest/Version.pm +++ b/lib/pgBackRest/Version.pm @@ -35,7 +35,7 @@ use constant BACKREST_BIN => abs_path( # 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 BACKREST_VERSION => '1.06dev'; +use constant BACKREST_VERSION => '1.06'; push @EXPORT, qw(BACKREST_VERSION); # Format Format Number