2017-11-06 12:51:12 -05:00
|
|
|
run 003 - bkp 0, sby 1, dst db-standby, cmp 0, s3 0, enc 0
|
|
|
|
==========================================================
|
2016-08-24 12:39:27 -04:00
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
stanza-create db - main create stanza info files (db-standby host)
|
2019-05-22 18:23:44 -04:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db stanza-create
|
2016-12-20 16:52:20 -05:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
full backup - update during backup (db-standby host)
|
2019-12-17 15:23:07 -05:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --buffer-size=[BUFFER-SIZE] --type=full --stanza=db backup
|
2016-08-24 12:39:27 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
2016-08-24 12:39:27 -04:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2016-08-24 12:39:27 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-09 17:51:41 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2016-10-05 09:09:30 -04:00
|
|
|
log-level-stderr=off
|
2017-06-09 17:51:41 -04:00
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-09 17:51:41 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-host=db-standby
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-09 17:51:41 -04:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 12:39:27 -04:00
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg8-host=db-master
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-master/db/base
|
2017-06-21 16:07:13 -04:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2017-06-21 16:07:13 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 16:07:13 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2017-06-21 16:07:13 -04:00
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-21 16:07:13 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-path=[TEST_PATH]/db-standby/repo
|
2017-06-21 16:07:13 -04:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2019-09-26 17:39:45 -04: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 16:07:13 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/db/base/recovery.conf
|
|
|
|
-----------------------------------------------------------------
|
2019-10-01 13:20:43 -04:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2017-06-21 16:07:13 -04:00
|
|
|
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 17:39:45 -04:00
|
|
|
standby_mode = 'on'
|
2017-06-21 16:07:13 -04:00
|
|
|
|
2017-08-31 19:15:44 -04:00
|
|
|
full backup - backup from standby, failure to reach master (db-standby host)
|
2018-02-03 18:27:38 -05:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --pg8-host=bogus --backup-standby --type=full --stanza=db backup
|
2017-08-31 19:15:44 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
full backup - backup from standby (db-standby host)
|
2018-02-19 15:07:24 -05:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --repo1-retention-full=1 --backup-standby --type=full --stanza=db backup
|
2017-06-21 16:07:13 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
2017-06-21 16:07:13 -04:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2017-06-21 16:07:13 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 16:07:13 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2017-06-21 16:07:13 -04:00
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-21 16:07:13 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-host=db-standby
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 16:07:13 -04:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg8-host=db-master
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-master/db/base
|
2017-06-21 16:07:13 -04:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
2016-08-24 12:39:27 -04:00
|
|
|
archive-async=y
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2017-06-21 16:07:13 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 16:07:13 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2017-06-21 16:07:13 -04:00
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-21 16:07:13 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-path=[TEST_PATH]/db-standby/repo
|
2017-06-21 16:07:13 -04:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
2016-08-24 12:39:27 -04:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
incr backup - update during backup (db-standby host)
|
2019-12-17 15:23:07 -05:00
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stop-auto --buffer-size=[BUFFER-SIZE] --delta --stanza=db backup
|
2016-08-24 12:39:27 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
2016-08-24 12:39:27 -04:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2016-08-24 12:39:27 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-09 17:51:41 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2016-10-05 09:09:30 -04:00
|
|
|
log-level-stderr=off
|
2017-06-09 17:51:41 -04:00
|
|
|
log-path=[TEST_PATH]/db-master/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-09 17:51:41 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-host=db-standby
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-09 17:51:41 -04:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 12:39:27 -04:00
|
|
|
|
2017-06-21 16:07:13 -04:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-03 18:27:38 -05:00
|
|
|
pg1-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
pg1-port=6544
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
pg2-host=bogus
|
|
|
|
pg2-host-cmd=[BACKREST-BIN]
|
|
|
|
pg2-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg2-host-user=[USER-1]
|
|
|
|
pg2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg8-host=db-master
|
|
|
|
pg8-host-cmd=[BACKREST-BIN]
|
|
|
|
pg8-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
pg8-host-user=[USER-1]
|
|
|
|
pg8-path=[TEST_PATH]/db-master/db/base
|
2017-06-21 16:07:13 -04:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
2016-08-24 12:39:27 -04:00
|
|
|
archive-async=y
|
2019-12-17 15:23:07 -05:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
2017-06-21 16:07:13 -04:00
|
|
|
compress=n
|
2017-10-22 18:05:46 -04:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 16:07:13 -04:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
2019-05-22 18:23:44 -04:00
|
|
|
log-level-console=detail
|
2019-12-17 15:23:07 -05:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2017-06-21 16:07:13 -04:00
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
2019-12-17 15:23:07 -05:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 11:24:38 -04:00
|
|
|
log-timestamp=n
|
2017-06-21 16:07:13 -04:00
|
|
|
protocol-timeout=60
|
2018-02-03 18:27:38 -05:00
|
|
|
repo1-path=[TEST_PATH]/db-standby/repo
|
2017-06-21 16:07:13 -04:00
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
2016-08-24 12:39:27 -04:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
restore, type 'default' (db-master host)
|
2019-12-17 15:23:07 -05:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --buffer-size=[BUFFER-SIZE] --link-all --stanza=db restore
|
2017-06-21 16:07:13 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2019-10-01 13:20:43 -04:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2019-12-17 15:23:07 -05:00
|
|
|
restore_command = '[BACKREST-BIN] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2017-06-21 16:07:13 -04:00
|
|
|
|
2019-09-27 13:04:36 -04: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 12:39:27 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2019-10-01 13:20:43 -04:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2016-08-24 12:39:27 -04:00
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2017-06-21 16:07:13 -04:00
|
|
|
recovery_target = 'immediate'
|
2019-09-27 13:04:36 -04:00
|
|
|
recovery_target_action = 'promote'
|
2016-08-24 12:39:27 -04:00
|
|
|
|
2020-01-30 14:38:05 -07:00
|
|
|
restore delta, 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 --type=time --target="[TIMESTAMP-TARGET-1]" --link-all --target-action=promote --stanza=db restore
|
2016-08-24 12:39:27 -04:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2019-10-01 13:20:43 -04:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2016-08-24 12:39:27 -04:00
|
|
|
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 13:04:36 -04:00
|
|
|
recovery_target_action = 'promote'
|