2016-08-24 18:39:27 +02:00
|
|
|
run 006 - bkp 0, sby 1, dst db-standby, asy 0, cmp 0
|
|
|
|
====================================================
|
|
|
|
|
|
|
|
full backup - update during backup (db-standby host)
|
|
|
|
> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --type=full --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ 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=vagrant
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db2-host=db-master
|
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=vagrant
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-standby/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-standby/repo/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
[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"'
|
|
|
|
|
2016-08-25 17:25:46 +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=vagrant
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db2-host=db-master
|
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=vagrant
|
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-standby/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-standby/repo/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
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 --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ 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=vagrant
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf
|
|
|
|
-----------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-path=[TEST_PATH]/db-standby/db/base
|
|
|
|
db-port=[PORT-1]
|
|
|
|
db-socket-path=[TEST_PATH]/db-standby/db
|
|
|
|
db2-cmd=[BACKREST-BIN]
|
|
|
|
db2-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db2-host=db-master
|
|
|
|
db2-path=[TEST_PATH]/db-master/db/base
|
|
|
|
db2-user=vagrant
|
|
|
|
|
|
|
|
[db:restore]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-standby/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-path=[TEST_PATH]/db-standby/repo/log
|
|
|
|
repo-path=[TEST_PATH]/db-standby/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
restore, type 'default' (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --db-include=test1 --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"'
|
|
|
|
|
|
|
|
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
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ 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 = 'immediate'
|
|
|
|
|
|
|
|
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]'
|