2017-11-06 19:51:12 +02:00
|
|
|
run 003 - bkp 0, sby 1, dst db-standby, cmp 0, s3 0, enc 0
|
|
|
|
==========================================================
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
stanza-create db - main create stanza info files (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db --log-level-console=detail stanza-create
|
2016-12-20 23:52:20 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
full backup - update during backup (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/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]
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
|
|
|
|
[global]
|
2017-06-21 22:07:13 +02:00
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
backup-host=db-standby
|
|
|
|
backup-user=[USER-1]
|
2016-08-24 18:39:27 +02:00
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2016-08-24 18:39:27 +02:00
|
|
|
log-level-console=debug
|
|
|
|
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
|
|
|
|
protocol-timeout=60
|
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-2]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
2017-09-01 01:15:44 +02:00
|
|
|
db2-host=bogus
|
2017-06-21 22:07:13 +02:00
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=[USER-1]
|
2017-09-01 01:15:44 +02:00
|
|
|
db8-cmd=[BACKREST-BIN]
|
|
|
|
db8-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db8-host=db-master
|
|
|
|
db8-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db8-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
|
|
|
protocol-timeout=60
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
restore, type 'default', remap - restore backup on replica (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --recovery-option=standby_mode=on --recovery-option="primary_conninfo=host=db-master port=6543 user=replicator" --link-map="pg_xlog=[TEST_PATH]/db-standby/db/pg_xlog" --link-all --stanza=db restore
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/db/base/recovery.conf
|
|
|
|
-----------------------------------------------------------------
|
|
|
|
primary_conninfo = 'host=db-master port=6543 user=replicator'
|
|
|
|
standby_mode = 'on'
|
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
|
|
|
|
2017-09-01 01:15:44 +02:00
|
|
|
full backup - backup from standby, failure to reach master (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --db8-host=bogus --backup-standby --type=full --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
full backup - backup from standby (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --retention-full=1 --backup-standby --type=full --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
|
|
|
|
[global]
|
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
backup-host=db-standby
|
|
|
|
backup-user=[USER-1]
|
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-master/log
|
|
|
|
protocol-timeout=60
|
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-2]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
2017-09-01 01:15:44 +02:00
|
|
|
db2-host=bogus
|
2017-06-21 22:07:13 +02:00
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=[USER-1]
|
2017-09-01 01:15:44 +02:00
|
|
|
db8-cmd=[BACKREST-BIN]
|
|
|
|
db8-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db8-host=db-master
|
|
|
|
db8-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db8-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
2016-08-24 18:39:27 +02:00
|
|
|
archive-async=y
|
2017-06-21 22:07:13 +02:00
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
|
|
|
protocol-timeout=60
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
spool-path=[TEST_PATH]/db-standby/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
|
|
|
check db - verify check command on standby (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --log-level-console=detail --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
incr backup - update during backup (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stop-auto --no-archive-check --buffer-size=32768 --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]
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-master/db
|
|
|
|
|
|
|
|
[global]
|
2017-06-21 22:07:13 +02:00
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
backup-host=db-standby
|
|
|
|
backup-user=[USER-1]
|
2016-08-24 18:39:27 +02:00
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-master/lock
|
2016-08-24 18:39:27 +02:00
|
|
|
log-level-console=debug
|
|
|
|
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
|
|
|
|
protocol-timeout=60
|
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-2]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
2017-09-01 01:15:44 +02:00
|
|
|
db2-host=bogus
|
2017-06-21 22:07:13 +02:00
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=[USER-1]
|
2017-09-01 01:15:44 +02:00
|
|
|
db8-cmd=[BACKREST-BIN]
|
|
|
|
db8-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db8-host=db-master
|
|
|
|
db8-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db8-user=[USER-1]
|
2017-06-21 22:07:13 +02:00
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
2016-08-24 18:39:27 +02:00
|
|
|
archive-async=y
|
2017-06-21 22:07:13 +02:00
|
|
|
compress=n
|
2017-10-23 00:05:46 +02:00
|
|
|
compress-level=3
|
|
|
|
compress-level-network=1
|
2017-06-21 22:07:13 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/db-standby/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-standby/log
|
|
|
|
protocol-timeout=60
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
spool-path=[TEST_PATH]/db-standby/spool
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
restore, force, backup '[BACKUP-FULL-1]', type 'immediate' (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 --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'
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
restore delta, backup '[BACKUP-FULL-1]', type 'time', target '[TIMESTAMP-TARGET-1]' (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 --stanza=db restore
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ 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]'
|