2016-08-24 18:39:27 +02:00
|
|
|
run 007 - bkp 1, sby 0, dst backup, asy 0, cmp 0
|
|
|
|
================================================
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - main create stanza info files (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail stanza-create
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-10-17 11:03:42 +02:00
|
|
|
check db - fail on missing archive.info file (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - force create stanza info files (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --force stanza-create
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-10-17 11:03:42 +02:00
|
|
|
full backup - fail on archive_mode=off (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --type=full --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive_mode=off (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive_mode=off (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
full backup - fail on invalid archive_command (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --type=full --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on invalid archive_command (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on invalid archive_command (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
check db - fail on archive timeout when archive-check=n (db-master host)
|
2016-10-17 11:03:42 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --no-archive-check --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive mismatch after upgrade (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive mismatch after upgrade (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive timeout (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive timeout (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=0.1 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
full backup - run a successful backup (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --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]/backup/pgbackrest.conf
|
|
|
|
backup-host=backup
|
|
|
|
backup-user=[USER-1]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-cmd=[BACKREST-BIN]
|
|
|
|
db-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db-host=db-master
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
2016-12-10 21:05:28 +02:00
|
|
|
db-port=[PORT-1]
|
2016-10-17 11:03:42 +02:00
|
|
|
db-user=[USER-2]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/backup/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/backup/repo/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
check db - fail on backup info mismatch (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on backup info mismatch (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success after backup (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success after backup (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --archive-timeout=5 --stanza=db check
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - fail on backup info file missing from non-empty dir (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail stanza-create
|
2016-10-17 11:03:42 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - verify success with force (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --force stanza-create
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
stanza-create db - test force fails on database mismatch with directory (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --no-online --force stanza-create
|
2016-10-17 11:03:42 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-12-20 23:52:20 +02:00
|
|
|
stanza-create db - restore stanza files (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --no-online --force stanza-create
|
2016-10-17 11:03:42 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
full backup - fail on backup lock exists (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --type=full --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
full backup - update during backup (backup host)
|
2016-12-10 16:13:55 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/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]
|
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
backup-host=backup
|
2016-10-01 19:39:44 +02:00
|
|
|
backup-user=[USER-1]
|
2016-08-24 18:39:27 +02:00
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2016-08-24 18:39:27 +02:00
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-cmd=[BACKREST-BIN]
|
|
|
|
db-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db-host=db-master
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
2016-12-10 21:05:28 +02:00
|
|
|
db-port=[PORT-1]
|
2016-10-01 19:39:44 +02:00
|
|
|
db-user=[USER-2]
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/backup/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2016-08-24 18:39:27 +02:00
|
|
|
log-path=[TEST_PATH]/backup/repo/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2016-10-17 11:03:42 +02:00
|
|
|
stop all stanzas (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
incr backup - attempt backup when stopped (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
start all stanzas (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
incr backup - fail on archive_mode=always (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
incr backup - fail on backup already running (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
incr backup - update during backup (backup host)
|
2016-12-10 16:13:55 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stop-auto --no-archive-check --buffer-size=24576 --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]
|
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
backup-host=backup
|
2016-10-01 19:39:44 +02:00
|
|
|
backup-user=[USER-1]
|
2016-08-24 18:39:27 +02:00
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2016-08-24 18:39:27 +02:00
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-cmd=[BACKREST-BIN]
|
|
|
|
db-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db-host=db-master
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
2016-12-10 21:05:28 +02:00
|
|
|
db-port=[PORT-1]
|
2016-10-01 19:39:44 +02:00
|
|
|
db-user=[USER-2]
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/backup/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2016-08-24 18:39:27 +02:00
|
|
|
log-path=[TEST_PATH]/backup/repo/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2016-10-17 11:03:42 +02:00
|
|
|
restore, type 'default', expect exit 113 - postmaster running (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --link-all --stanza=db restore
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
restore, type 'default', expect exit 115 - path not empty (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --link-all --stanza=db restore
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
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"'
|
|
|
|
|
2016-10-17 11:03:42 +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
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ 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, force, backup '[BACKUP-INCR-1]', type 'xid', target '[XID-TARGET-1]', target-action=promote (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --force --set=[BACKUP-INCR-1] --tablespace-map-all=../../tablespace --type=xid --target="[XID-TARGET-1]" --link-all --target-action=promote --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_xid = '[XID-TARGET-1]'
|
|
|
|
recovery_target_action = 'promote'
|
|
|
|
|
|
|
|
restore, type 'preserve' (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --type=preserve --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_xid = '[XID-TARGET-1]'
|
|
|
|
recovery_target_action = 'promote'
|
|
|
|
|
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]'
|
2016-10-17 11:03:42 +02:00
|
|
|
|
|
|
|
restore delta, backup '[BACKUP-INCR-1]', type 'xid', target '[XID-TARGET-1]', exclusive (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-INCR-1] --type=xid --target="[XID-TARGET-1]" --target-exclusive --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_xid = '[XID-TARGET-1]'
|
|
|
|
recovery_target_inclusive = 'false'
|
|
|
|
|
|
|
|
restore delta, force, type 'name', target 'backrest' (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --force --type=name --target="backrest" --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_name = 'backrest'
|
|
|
|
|
|
|
|
restore delta, backup '[BACKUP-INCR-1]', type 'default', timeline '4' (db-master host)
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-INCR-1] --target-timeline="4" --link-all --stanza=db restore
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
|
|
|
standby_mode = 'on'
|
|
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
|
|
|
recovery_target_timeline = '4'
|
|
|
|
|
|
|
|
incr backup - fail on --no-online (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --stanza=db backup
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
incr backup - succeed on --no-online with --force (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --force --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
|
|
|
|
recovery-option=standby-mode=on
|
|
|
|
|
|
|
|
[global]
|
|
|
|
backup-cmd=[BACKREST-BIN]
|
|
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
backup-host=backup
|
|
|
|
backup-user=[USER-1]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/db-master/spool/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/db-master/spool/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
|
|
|
[db]
|
|
|
|
db-cmd=[BACKREST-BIN]
|
|
|
|
db-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
db-host=db-master
|
|
|
|
db-path=[TEST_PATH]/db-master/db/base
|
2016-12-10 21:05:28 +02:00
|
|
|
db-port=[PORT-1]
|
2016-10-17 11:03:42 +02:00
|
|
|
db-user=[USER-2]
|
|
|
|
|
|
|
|
[global]
|
|
|
|
compress=n
|
|
|
|
lock-path=[TEST_PATH]/backup/repo/lock
|
|
|
|
log-level-console=debug
|
|
|
|
log-level-file=trace
|
|
|
|
log-level-stderr=off
|
|
|
|
log-path=[TEST_PATH]/backup/repo/log
|
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|