mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
b4884e5a0b
Reported by Michael Vitale.
110 lines
4.1 KiB
Plaintext
110 lines
4.1 KiB
Plaintext
run 008 - bkp 1, sby 0, dst backup, asy 0, cmp 1
|
|
================================================
|
|
|
|
full backup - update during backup (backup host)
|
|
> [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
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ 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]
|
|
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
|
|
db-port=[PORT-1]
|
|
db-user=[USER-2]
|
|
|
|
[global]
|
|
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
|
|
|
|
incr backup - update during backup (backup host)
|
|
> [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
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ 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]
|
|
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
|
|
db-port=[PORT-1]
|
|
db-user=[USER-2]
|
|
|
|
[global]
|
|
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
|
|
|
|
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]'
|