2017-06-12 16:52:32 +02:00
|
|
|
run 010 - bkp 1, sby 0, dst backup, asy 1, cmp 1, s3 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 (backup host)
|
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail stanza-create
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
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]
|
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
|
2016-08-24 18:39:27 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
|
|
|
|
[global:archive-push]
|
|
|
|
archive-async=y
|
|
|
|
|
|
|
|
+ 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]
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/backup/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]/backup/log
|
|
|
|
protocol-timeout=60
|
2016-08-24 18:39:27 +02:00
|
|
|
repo-path=[TEST_PATH]/backup/repo
|
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
|
|
|
incr backup - update during backup (backup host)
|
2017-06-09 23:51:41 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/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]
|
|
|
|
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]
|
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
|
2016-08-24 18:39:27 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
|
|
|
|
[global:archive-push]
|
|
|
|
archive-async=y
|
|
|
|
|
|
|
|
+ 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]
|
2017-06-09 23:51:41 +02:00
|
|
|
db-timeout=45
|
|
|
|
lock-path=[TEST_PATH]/backup/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]/backup/log
|
|
|
|
protocol-timeout=60
|
2016-08-24 18:39:27 +02:00
|
|
|
repo-path=[TEST_PATH]/backup/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 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]'
|