2020-03-06 21:41:03 +02:00
|
|
|
run 006 - bkp 1, sby 0, dst backup, cmp gz, s3 1, 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 (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stanza-create
|
2016-12-20 23:52:20 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on missing archive.info file (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +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
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on archive_mode=off (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on archive_mode=off (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
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
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on invalid archive_command (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on invalid archive_command (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive timeout when archive-check=n (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --no-archive-check --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - fail on archive mismatch after upgrade (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive mismatch after upgrade (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive timeout (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on archive timeout (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=0.1 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on backup info mismatch (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - fail on backup info mismatch (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-12-13 18:16:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
check db - verify success after backup (db-master host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
check db - verify success after backup (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2019-08-21 22:26:28 +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 stanza-create
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
stanza-create db - fail on database mismatch with directory (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --pg1-path=[TEST_PATH]/db-master/db/testbase/ stanza-create
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
stanza-create db - successfully create stanza files to be upgraded (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --pg1-path=[TEST_PATH]/db-master/db/testbase/ --no-online --force stanza-create
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
stanza-upgrade db - upgrade stanza files online (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stanza-upgrade
|
2017-06-21 22:07:13 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
full backup - update during backup (backup host)
|
2019-12-17 22:23:07 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --buffer-size=[BUFFER-SIZE] --type=full --stanza=db backup
|
2016-08-25 17:25:46 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
2016-08-25 17:25:46 +02:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 22:23:07 +02:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
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
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2019-12-17 22:23:07 +02:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
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
|
2019-12-17 22:23:07 +02:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
process-max=2
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-host=backup
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 14:38:53 +02:00
|
|
|
spool-path=[TEST_PATH]/db-master/spool
|
2016-08-25 17:25:46 +02:00
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
2016-08-25 17:25:46 +02:00
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-host=db-master
|
|
|
|
pg1-host-cmd=[BACKREST-BIN]
|
|
|
|
pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
2019-10-12 15:45:18 +02:00
|
|
|
pg1-host-user=[USER-1]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
2016-08-25 17:25:46 +02:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 22:23:07 +02:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
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
|
2017-06-21 22:07:13 +02:00
|
|
|
lock-path=[TEST_PATH]/backup/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2019-12-17 22:23:07 +02:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2017-06-21 22:07:13 +02:00
|
|
|
log-path=[TEST_PATH]/backup/log
|
2019-12-17 22:23:07 +02:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
process-max=2
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-path=/
|
|
|
|
repo1-s3-bucket=pgbackrest-dev
|
|
|
|
repo1-s3-endpoint=s3.amazonaws.com
|
|
|
|
repo1-s3-key=accessKey1
|
|
|
|
repo1-s3-key-secret=verySecretKey1
|
|
|
|
repo1-s3-region=us-east-1
|
|
|
|
repo1-s3-verify-ssl=n
|
|
|
|
repo1-type=s3
|
2016-08-25 17:25:46 +02:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2017-06-21 22:07:13 +02:00
|
|
|
incr backup - update during backup (backup host)
|
2019-12-17 22:23:07 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stop-auto --buffer-size=[BUFFER-SIZE] --delta --stanza=db backup
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
|
|
----------------------------------------------------------
|
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
|
|
|
pg1-socket-path=[TEST_PATH]/db-master/db
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
2019-12-17 22:23:07 +02:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
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
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2019-12-17 22:23:07 +02:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
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
|
2019-12-17 22:23:07 +02:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
process-max=2
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-host=backup
|
|
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
|
|
repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
|
|
repo1-host-user=[USER-1]
|
2017-06-21 14:38:53 +02:00
|
|
|
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]/backup/pgbackrest.conf
|
|
|
|
-------------------------------------------------------
|
2016-08-24 18:39:27 +02:00
|
|
|
[db]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-host=db-master
|
|
|
|
pg1-host-cmd=[BACKREST-BIN]
|
|
|
|
pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
2019-10-12 15:45:18 +02:00
|
|
|
pg1-host-user=[USER-1]
|
2018-02-04 01:27:38 +02:00
|
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
pg1-port=6543
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global]
|
2017-06-21 22:07:13 +02:00
|
|
|
archive-async=y
|
2019-12-17 22:23:07 +02:00
|
|
|
buffer-size=[BUFFER-SIZE]
|
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
|
2017-06-21 22:07:13 +02:00
|
|
|
lock-path=[TEST_PATH]/backup/lock
|
2019-05-23 00:23:44 +02:00
|
|
|
log-level-console=detail
|
2019-12-17 22:23:07 +02:00
|
|
|
log-level-file=[LOG-LEVEL-FILE]
|
2016-10-05 15:09:30 +02:00
|
|
|
log-level-stderr=off
|
2017-06-21 22:07:13 +02:00
|
|
|
log-path=[TEST_PATH]/backup/log
|
2019-12-17 22:23:07 +02:00
|
|
|
log-subprocess=[LOG-SUBPROCESS]
|
2018-05-11 17:24:38 +02:00
|
|
|
log-timestamp=n
|
2017-06-21 22:07:13 +02:00
|
|
|
process-max=2
|
2017-06-09 23:51:41 +02:00
|
|
|
protocol-timeout=60
|
2018-02-04 01:27:38 +02:00
|
|
|
repo1-path=/
|
|
|
|
repo1-s3-bucket=pgbackrest-dev
|
|
|
|
repo1-s3-endpoint=s3.amazonaws.com
|
|
|
|
repo1-s3-key=accessKey1
|
|
|
|
repo1-s3-key-secret=verySecretKey1
|
|
|
|
repo1-s3-region=us-east-1
|
|
|
|
repo1-s3-verify-ssl=n
|
|
|
|
repo1-type=s3
|
2016-08-24 18:39:27 +02:00
|
|
|
|
|
|
|
[global:backup]
|
|
|
|
archive-copy=y
|
|
|
|
start-fast=y
|
|
|
|
|
2018-03-20 01:54:03 +02:00
|
|
|
check db - check command with tablespace (backup host)
|
2019-05-23 00:23:44 +02:00
|
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --stanza=db check
|
2018-03-20 01:54:03 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
restore, type 'default' (db-master host)
|
2019-12-17 22:23:07 +02:00
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --buffer-size=[BUFFER-SIZE] --link-all --stanza=db restore
|
2016-08-24 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2019-10-01 19:20:43 +02:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2019-12-17 22:23:07 +02:00
|
|
|
restore_command = '[BACKREST-BIN] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2020-01-30 23:38:05 +02: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 18:39:27 +02:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
|
|
----------------------------------------------------------------
|
2019-10-01 19:20:43 +02:00
|
|
|
# Recovery settings generated by pgBackRest restore on [TIMESTAMP]
|
2016-08-24 18:39:27 +02: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 19:04:36 +02:00
|
|
|
recovery_target_action = 'promote'
|