2017-11-06 19:51:12 +02:00
|
|
|
run 002 - bkp 0, sby 1, dst db-master, cmp 0, s3 0, enc 0
|
|
|
|
=========================================================
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - main create stanza info files (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stanza-create
|
2016-12-20 23:52:20 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
full backup - update during backup (db-master host)
|
2016-12-10 16:13:55 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --buffer-size=16384 --type=full --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg8-host=db-standby
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-standby/db/base
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
2017-06-21 22:07:13 +02:00
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2016-08-24 18:39:27 +02:00
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2017-06-09 23:51:41 +02:00
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-path=[TEST_PATH]/db-master/repo
|
2017-06-21 14:38:53 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2017-06-21 22:07:13 +02:00
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-host=db-master
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
|
|
|
|
2019-09-26 23:39:45 +02:00
|
|
|
restore, type 'standby', remap - restore backup on replica (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --recovery-option="primary_conninfo=host=db-master port=6543 user=replicator" --type=standby --link-map="pg_xlog=[TEST_PATH]/db-standby/db/pg_xlog" --link-all --stanza=db restore
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/db/base/recovery.conf
|
|
|
|
-----------------------------------------------------------------
|
|
|
|
primary_conninfo = 'host=db-master port=6543 user=replicator'
|
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2019-09-26 23:39:45 +02:00
|
|
|
standby_mode = 'on'
|
2017-06-21 22:07:13 +02:00
|
|
|
|
2017-09-01 01:15:44 +02:00
|
|
|
full backup - backup from standby, failure to access at least one standby (db-master host)
|
2018-02-04 01:27:38 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --pg8-host=bogus --backup-standby --type=full --stanza=db backup
|
2017-09-01 01:15:44 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
full backup - backup from standby (db-master host)
|
2018-02-19 22:07:24 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --repo1-retention-full=1 --backup-standby --type=full --stanza=db backup
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg8-host=db-standby
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-standby/db/base
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[global]
|
|
|
|
archive-async=y
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2017-06-21 22:07:13 +02:00
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-path=[TEST_PATH]/db-master/repo
|
2017-06-21 22:07:13 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2017-06-21 22:07:13 +02:00
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-host=db-master
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
|
|
|
|
2017-12-13 18:16:27 +02:00
|
|
|
check db - confirm standby manifest->build executed (db-standby host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-12-13 18:16:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - verify check command on standby (db-standby host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
incr backup - update during backup (db-master host)
|
2018-09-19 17:12:45 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stop-auto --buffer-size=32768 --delta --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg8-host=db-standby
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-standby/db/base
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
2017-06-21 22:07:13 +02:00
|
|
|
archive-async=y
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2016-08-24 18:39:27 +02:00
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2017-06-09 23:51:41 +02:00
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-path=[TEST_PATH]/db-master/repo
|
2017-06-21 14:38:53 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2017-06-21 22:07:13 +02:00
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2018-08-23 02:05:49 +02:00
|
|
|
log-subprocess=y
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-host=db-master
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
restore, type 'default' (db-master host)
|
2017-11-14 21:48:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --buffer-size=16384 --link-all --stanza=db restore
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2017-11-14 21:48:44 +02:00
|
|
|
restore_command = '[BACKREST-BIN] --buffer-size=16384 --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2017-06-21 22:07:13 +02:00
|
|
|
|
2019-09-27 19:04:36 +02:00
|
|
|
restore, force, backup '[BACKUP-FULL-1]', type 'immediate', target-action=promote (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --force --set=[BACKUP-FULL-1] --type=immediate --link-all --target-action=promote --stanza=db restore
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2017-06-21 22:07:13 +02:00
|
|
|
recovery_target = 'immediate'
|
2019-09-27 19:04:36 +02:00
|
|
|
recovery_target_action = 'promote'
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2019-09-27 19:04:36 +02:00
|
|
|
restore delta, backup '[BACKUP-FULL-1]', type 'time', target '[TIMESTAMP-TARGET-1]', target-action=promote (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-FULL-1] --type=time --target="[TIMESTAMP-TARGET-1]" --link-all --target-action=promote --stanza=db restore
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
|
|
|
recovery_target_time = '[TIMESTAMP-TARGET-1]'
|
2019-09-27 19:04:36 +02:00
|
|
|
recovery_target_action = 'promote'
|