mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
3376 lines
172 KiB
Plaintext
3376 lines
172 KiB
Plaintext
run 003 - rmt 1, s3 1
|
|
=====================
|
|
|
|
info all stanzas - no stanzas exist (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
No stanzas exist in /.
|
|
|
|
info all stanzas - no stanzas exist (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --output=json info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[]
|
|
|
|
stanza-create db - create required data for stanza (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --no-online stanza-create
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stanza-create command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --db1-path=[TEST_PATH]/db-master/db/base --db1-user=[USER-1] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-path=[TEST_PATH]/backup/log --no-online --protocol-timeout=60 --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db
|
|
P00 INFO: stanza-create command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[db]
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
full backup - error on identical link destinations (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --type=full --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [070]: link [TEST_PATH]/db-master/db/base/postgresql.conf (../pg_config) references a subdirectory of or the same directory as link [TEST_PATH]/db-master/db/base/pg_config_bad (../../db/pg_config)
|
|
|
|
full backup - error on link to a link (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --type=full --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [070]: link '[TEST_PATH]/db-master/db/base/postgresql.conf.bad' -> '../pg_config/postgresql.conf.link' cannot reference another link
|
|
|
|
full backup - create pg_stat link, pg_clog dir (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --manifest-save-threshold=3 --protocol-timeout=2 --db-timeout=1 --cmd-ssh=/usr/bin/ssh --buffer-size=16384 --checksum-page --process-max=1 --type=full --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: invalid page checksums found in file db-master:[TEST_PATH]/db-master/db/base/base/32768/33001 at pages 0, 3-5, 7
|
|
P00 WARN: invalid page checksum found in file db-master:[TEST_PATH]/db-master/db/base/base/16384/17000 at page 1
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-FULL-1]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-FULL-1]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="full"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_data/pg_stat={"path":"../pg_stat","type":"link"}
|
|
pg_data/postgresql.conf={"file":"postgresql.conf","path":"../pg_config","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_stat={"destination":"../pg_stat"}
|
|
pg_data/postgresql.conf={"destination":"../pg_config/postgresql.conf"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
full backup - resume (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --force --checksum-page --type=full --stanza=db backup --test --test-delay=0.2 --test-point=backup-resume=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: backup [BACKUP-FULL-1] missing in repository removed from backup.info
|
|
P00 WARN: --no-online passed and postmaster.pid exists but --force was passed so backup will continue though it looks like the postmaster is running and the backup will probably not be consistent
|
|
P00 WARN: aborted backup [BACKUP-FULL-2] of same type exists, will be cleaned to remove invalid files and resumed
|
|
P00 TEST: PgBaCkReStTeSt-BACKUP-RESUME-PgBaCkReStTeSt
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-FULL-2]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="full"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_data/pg_stat={"path":"../pg_stat","type":"link"}
|
|
pg_data/postgresql.conf={"file":"postgresql.conf","path":"../pg_config","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_stat={"destination":"../pg_stat"}
|
|
pg_data/postgresql.conf={"destination":"../pg_config/postgresql.conf"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
full backup - invalid repo (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --repo-path=/bogus_path --log-level-console=warn --type=full --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [055]: unable to open /bogus_path/backup/db/backup.info or /bogus_path/backup/db/backup.info.copy
|
|
P00 ERROR: [055]: /bogus_path/backup/db/backup.info does not exist and is required to perform a backup.
|
|
HINT: has a stanza-create been performed?
|
|
|
|
restore delta, backup '[BACKUP-FULL-2]' - add and delete files (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --cmd-ssh=/usr/bin/ssh --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
----------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --cmd-ssh=/usr/bin/ssh --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get %f "%p"'
|
|
|
|
restore delta, backup '[BACKUP-FULL-2]' - fix broken symlink (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --log-level-console=warn --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
----------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
restore delta, force, backup '[BACKUP-FULL-2]', expect exit 40 - fail on missing PG_VERSION (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --force --set=[BACKUP-FULL-2] --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: --delta or --force specified but unable to find 'PG_VERSION' or 'backup.manifest' in '[TEST_PATH]/db-master/db/base' to confirm that this is a valid $PGDATA directory. --delta and --force have been disabled and if any files exist in the destination directories the restore will be aborted.
|
|
P00 WARN: contents of directory link pg_stat will be restored in a directory at the same location
|
|
P00 WARN: file link postgresql.conf will be restored as a file at the same location
|
|
P00 ERROR: [040]: cannot restore to path '[TEST_PATH]/db-master/db/base' that contains files - try using --delta if this is what you intended
|
|
|
|
restore delta, force, backup '[BACKUP-FULL-2]' - restore succeeds with backup.manifest file (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --force --set=[BACKUP-FULL-2] --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: group bogus in manifest cannot be used for restore, set to [USER-1]
|
|
P00 WARN: user bogus in manifest cannot be used for restore, set to [USER-1]
|
|
P00 WARN: contents of directory link pg_stat will be restored in a directory at the same location
|
|
P00 WARN: file link postgresql.conf will be restored as a file at the same location
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf
|
|
----------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
incr backup - invalid database version (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [051]: database version = 9.4, system-id 6353949018581704918 does not match backup version = 8.0, system-id = 6353949018581704918
|
|
HINT: is this the correct stanza?
|
|
|
|
incr backup - invalid system id (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [051]: database version = 9.4, system-id 6353949018581704918 does not match backup version = 9.4, system-id = 6999999999999999999
|
|
HINT: is this the correct stanza?
|
|
|
|
incr backup - invalid control version (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [051]: database control-version = 942, catalog-version 201409291 does not match backup control-version = 842, catalog-version = 201409291
|
|
HINT: this may be a symptom of database or repository corruption!
|
|
|
|
incr backup - invalid catalog version (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 ERROR: [051]: database control-version = 942, catalog-version 201409291 does not match backup control-version = 942, catalog-version = 197208141
|
|
HINT: this may be a symptom of database or repository corruption!
|
|
|
|
incr backup - invalid path in pg_tblspc (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 ERROR: [069]: pg_tblspc/path is not a symlink - pg_tblspc should contain only symlinks
|
|
|
|
incr backup - invalid relative tablespace in $PGDATA (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 ERROR: [071]: tablespace symlink ../invalid_tblspc destination must not be in $PGDATA
|
|
|
|
incr backup - invalid tablespace in $PGDATA (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 ERROR: [071]: tablespace symlink [TEST_PATH]/db-master/db/base/invalid_tblspc destination must not be in $PGDATA
|
|
|
|
incr backup - add tablespace 1 (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --test --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-INCR-1]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-INCR-1]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="incr"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_tblspc/1={"path":"[TEST_PATH]/db-master/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-master/db/tablespace/ts1"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/1={}
|
|
pg_tblspc/1/[TS_PATH-1]={}
|
|
pg_tblspc/1/[TS_PATH-1]/16384={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
incr backup - resume and add tablespace 2 (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --process-max=1 --stanza=db backup --test --test-delay=0.2 --test-point=backup-resume=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: backup [BACKUP-INCR-1] missing in repository removed from backup.info
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 WARN: aborted backup [BACKUP-INCR-2] of same type exists, will be cleaned to remove invalid files and resumed
|
|
P00 TEST: PgBaCkReStTeSt-BACKUP-RESUME-PgBaCkReStTeSt
|
|
P00 WARN: resumed backup file pg_data/badchecksum.txt should have checksum bogus but actually has checksum f927212cd08d11a42a666b2f04235398e9ceeb51. The file will be recopied and backup will continue but this may be an issue unless the backup temp path is known to be corrupted.
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-INCR-2]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-INCR-2]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="incr"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_tblspc/1={"path":"[TEST_PATH]/db-master/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"}
|
|
pg_tblspc/11={"path":"[TEST_PATH]/db-master/db/tablespace/ts11","tablespace-id":"11","tablespace-name":"ts11","type":"link"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-master/db/tablespace/ts1"}
|
|
pg_data/pg_tblspc/11={"destination":"[TEST_PATH]/db-master/db/tablespace/ts11"}
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/1={}
|
|
pg_tblspc/1/[TS_PATH-1]={}
|
|
pg_tblspc/1/[TS_PATH-1]/16384={}
|
|
pg_tblspc/11={}
|
|
pg_tblspc/11/[TS_PATH-1]={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
diff backup - cannot resume - new diff (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --process-max=1 --type=diff --stanza=db backup --test --test-delay=0.2 --test-point=backup-noresume=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: backup [BACKUP-INCR-2] missing manifest removed from backup.info
|
|
P00 WARN: aborted backup [BACKUP-INCR-2] cannot be resumed: new backup-type 'diff' does not match aborted backup-type 'incr'
|
|
P00 TEST: PgBaCkReStTeSt-BACKUP-NORESUME-PgBaCkReStTeSt
|
|
P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-1]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-1]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_tblspc/1={"path":"[TEST_PATH]/db-master/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-master/db/tablespace/ts1"}
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/1={}
|
|
pg_tblspc/1/[TS_PATH-1]={}
|
|
pg_tblspc/1/[TS_PATH-1]/16384={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
diff backup - cannot resume - disabled / no repo link (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --no-resume --log-level-console=warn --process-max=1 --type=diff --stanza=db backup --test --test-delay=0.2 --test-point=backup-noresume=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: backup [BACKUP-DIFF-1] missing manifest removed from backup.info
|
|
P00 WARN: aborted backup [BACKUP-DIFF-1] cannot be resumed: resume is disabled
|
|
P00 TEST: PgBaCkReStTeSt-BACKUP-NORESUME-PgBaCkReStTeSt
|
|
P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-2]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-2]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base","type":"path"}
|
|
pg_tblspc/1={"path":"[TEST_PATH]/db-master/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-master/db/tablespace/ts1"}
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/1={}
|
|
pg_tblspc/1/[TS_PATH-1]={}
|
|
pg_tblspc/1/[TS_PATH-1]/16384={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
restore, backup '[BACKUP-DIFF-2]', expect exit 40 - fail on used path (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --set=[BACKUP-DIFF-2] --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 ERROR: [040]: cannot restore to path '[TEST_PATH]/db-master/db/base' that contains files - try using --delta if this is what you intended
|
|
|
|
restore, backup '[BACKUP-DIFF-2]', remap - remap all paths (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --set=[BACKUP-DIFF-2] --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base-2/recovery.conf
|
|
------------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
restore delta, backup '[BACKUP-DIFF-2]', remap - ensure file in tblspc root remains after --delta (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --set=[BACKUP-DIFF-2] --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base-2/recovery.conf
|
|
------------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
incr backup - add files and remove tablespace 2 (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --process-max=1 --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-DIFF-2]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt: file size 8 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/base/base2.txt: file size 5 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-INCR-3]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-INCR-3]"
|
|
backup-prior="[BACKUP-DIFF-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="incr"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
stanza-create db - create required data for stanza (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --log-level-console=detail --no-online --force stanza-create
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stanza-create command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --db1-path=[TEST_PATH]/db-master/db/base-2 --db1-user=[USER-1] --force --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-path=[TEST_PATH]/backup/log --no-online --protocol-timeout=60 --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db
|
|
P00 INFO: stanza-create command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[db]
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
incr backup - update files (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-INCR-3]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-INCR-4]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-INCR-4]"
|
|
backup-prior="[BACKUP-INCR-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="incr"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"9a53d532e27785e681766c98516a5e93f096a501","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","checksum-page":false,"reference":"[BACKUP-INCR-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"reference":"[BACKUP-INCR-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-INCR-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
diff backup - updates since last full (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --process-max=1 --type=diff --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/base/base2.txt: file size 5 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt: file size 8 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-3]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-3]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"9a53d532e27785e681766c98516a5e93f096a501","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-INCR-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
incr backup - remove files - but won't affect manifest (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: incr backup cannot alter compress option to 'true', reset to value in [BACKUP-DIFF-3]
|
|
P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-DIFF-3]
|
|
P00 TEST: PgBaCkReStTeSt-MANIFEST-BUILD-PgBaCkReStTeSt
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-INCR-5]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-INCR-5]"
|
|
backup-prior="[BACKUP-DIFF-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="incr"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"9a53d532e27785e681766c98516a5e93f096a501","checksum-page":false,"reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","checksum-page":false,"reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"reference":"[BACKUP-DIFF-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-INCR-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
diff backup - remove files during backup (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --process-max=1 --type=diff --stanza=db backup --test --test-delay=1 --test-point=manifest-build=y
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: diff backup cannot alter compress option to 'true', reset to value in [BACKUP-FULL-2]
|
|
P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2]
|
|
P00 TEST: PgBaCkReStTeSt-MANIFEST-BUILD-PgBaCkReStTeSt
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt: file size 12 is not divisible by page size 8192
|
|
P00 WARN: page misalignment in file db-master:[TEST_PATH]/db-master/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-4]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-4]"
|
|
backup-prior="[BACKUP-FULL-2]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=true
|
|
option-compress=false
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-INCR-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
full backup - update file (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --type=full --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-FULL-3]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-FULL-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="full"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=false
|
|
option-compress=true
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"7579ada0808d7f98087a0a586d0df9de009cdc33","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-2]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-INCR-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-2]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-INCR-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-3]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-2]","backup-reference":["[BACKUP-FULL-2]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
info db stanza - normal output (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
stanza: db
|
|
status: ok
|
|
|
|
db (current)
|
|
wal archive min/max (9.4-1): none present
|
|
|
|
full backup: [BACKUP-FULL-2]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 160KB, backup size: 160KB
|
|
repository size: 160KB, repository backup size: 160KB
|
|
|
|
diff backup: [BACKUP-DIFF-2]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 160KB, backup size: 29B
|
|
repository size: 160KB, repository backup size: 29B
|
|
backup reference list: [BACKUP-FULL-2]
|
|
|
|
incr backup: [BACKUP-INCR-3]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 160KB, backup size: 13B
|
|
repository size: 160KB, repository backup size: 13B
|
|
backup reference list: [BACKUP-FULL-2], [BACKUP-DIFF-2]
|
|
|
|
incr backup: [BACKUP-INCR-4]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 8B
|
|
repository size: 144KB, repository backup size: 8B
|
|
backup reference list: [BACKUP-FULL-2], [BACKUP-DIFF-2], [BACKUP-INCR-3]
|
|
|
|
diff backup: [BACKUP-DIFF-3]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 43B
|
|
repository size: 144KB, repository backup size: 43B
|
|
backup reference list: [BACKUP-FULL-2]
|
|
|
|
incr backup: [BACKUP-INCR-5]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 0B
|
|
repository size: 144KB, repository backup size: 0B
|
|
backup reference list: [BACKUP-FULL-2], [BACKUP-DIFF-3]
|
|
|
|
diff backup: [BACKUP-DIFF-4]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 34B
|
|
repository size: 144KB, repository backup size: 34B
|
|
backup reference list: [BACKUP-FULL-2]
|
|
|
|
full backup: [BACKUP-FULL-3]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 144KB
|
|
repository size: 1.4KB, repository backup size: 1.4KB
|
|
|
|
info db stanza - normal output (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=warn --stanza=db --output=json info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[
|
|
{
|
|
"archive" : [
|
|
{
|
|
"database" : {
|
|
"id" : "1"
|
|
},
|
|
"id" : "9.4-1",
|
|
"max" : null,
|
|
"min" : null
|
|
}
|
|
],
|
|
"backup" : [
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-FULL-2]",
|
|
"prior" : null,
|
|
"reference" : null,
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "full"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-DIFF-2]",
|
|
"prior" : "[BACKUP-FULL-2]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "diff"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-INCR-3]",
|
|
"prior" : "[BACKUP-DIFF-2]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]",
|
|
"[BACKUP-DIFF-2]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "incr"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-INCR-4]",
|
|
"prior" : "[BACKUP-INCR-3]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]",
|
|
"[BACKUP-DIFF-2]",
|
|
"[BACKUP-INCR-3]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "incr"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-DIFF-3]",
|
|
"prior" : "[BACKUP-FULL-2]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "diff"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-INCR-5]",
|
|
"prior" : "[BACKUP-DIFF-3]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]",
|
|
"[BACKUP-DIFF-3]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "incr"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-DIFF-4]",
|
|
"prior" : "[BACKUP-FULL-2]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-2]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "diff"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-FULL-3]",
|
|
"prior" : null,
|
|
"reference" : null,
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "full"
|
|
}
|
|
],
|
|
"db" : [
|
|
{
|
|
"id" : "1",
|
|
"system-id" : 6353949018581704918,
|
|
"version" : "9.4"
|
|
}
|
|
],
|
|
"name" : "db",
|
|
"status" : {
|
|
"code" : 0,
|
|
"message" : "ok"
|
|
}
|
|
}
|
|
]
|
|
|
|
expire full=1 (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=detail --retention-full=1 --stanza=db expire
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: expire command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --retention-full=1 --stanza=db
|
|
P00 INFO: expire full backup set: [BACKUP-FULL-2], [BACKUP-DIFF-2], [BACKUP-INCR-3], [BACKUP-INCR-4], [BACKUP-DIFF-3], [BACKUP-INCR-5], [BACKUP-DIFF-4]
|
|
P00 INFO: remove expired backup [BACKUP-DIFF-4]
|
|
P00 INFO: remove expired backup [BACKUP-DIFF-3]
|
|
P00 INFO: remove expired backup [BACKUP-INCR-4]
|
|
P00 INFO: remove expired backup [BACKUP-INCR-3]
|
|
P00 INFO: remove expired backup [BACKUP-DIFF-2]
|
|
P00 INFO: remove expired backup [BACKUP-FULL-2]
|
|
P00 INFO: expire command end: completed successfully
|
|
|
|
diff backup - add file (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=warn --checksum-page --type=diff --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2
|
|
|
|
[db:restore]
|
|
tablespace-map=1=[TEST_PATH]/db-master/db/tablespace/ts1-2
|
|
tablespace-map=2=[TEST_PATH]/db-master/db/tablespace/ts2-2
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-5]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-5]"
|
|
backup-prior="[BACKUP-FULL-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=false
|
|
option-compress=true
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2","type":"path"}
|
|
pg_tblspc/2={"path":"[TEST_PATH]/db-master/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"7579ada0808d7f98087a0a586d0df9de009cdc33","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"cafac3c59553f2cfde41ce2e62e7662295f108c0","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-master/db/tablespace/ts2-2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
restore delta, remap - selective restore 16384 (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --log-level-console=warn --db-include=16384 --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base-2/recovery.conf
|
|
------------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
restore delta, remap - selective restore 32768 (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --log-level-console=warn --db-include=32768 --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base-2/recovery.conf
|
|
------------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
restore delta, remap, expect exit 80 - error on invalid id (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --log-level-console=warn --db-include=7777 --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 ERROR: [080]: database to include '7777' does not exist
|
|
|
|
restore delta, remap, expect exit 81 - error on system id (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --delta --log-level-console=warn --db-include=1 --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 ERROR: [081]: system databases (template0, postgres, etc.) are included by default
|
|
|
|
restore, remap, expect exit 73 - no tablespace remap - error when tablespace dir does not exist (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --tablespace-map-all=../../tablespace --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 ERROR: [073]: cannot restore to missing path [TEST_PATH]/db-master/db/base-2/tablespace
|
|
|
|
restore - no tablespace remap (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --tablespace-map-all=../../tablespace --log-level-console=warn --stanza=db restore
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/db/base-2/base/recovery.conf
|
|
-----------------------------------------------------------------------
|
|
restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=db archive-get %f "%p"'
|
|
|
|
info all stanzas - normal output (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=warn info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
stanza: db
|
|
status: ok
|
|
|
|
db (current)
|
|
wal archive min/max (9.4-1): none present
|
|
|
|
full backup: [BACKUP-FULL-3]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 144KB
|
|
repository size: 1.4KB, repository backup size: 1.4KB
|
|
|
|
diff backup: [BACKUP-DIFF-5]
|
|
timestamp start/stop: [TIMESTAMP-STR]
|
|
wal start/stop: n/a
|
|
database size: 144KB, backup size: 9B
|
|
repository size: 1.5KB, repository backup size: 29B
|
|
backup reference list: [BACKUP-FULL-3]
|
|
|
|
info all stanzas - normal output (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --output=json info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[
|
|
{
|
|
"archive" : [
|
|
{
|
|
"database" : {
|
|
"id" : "1"
|
|
},
|
|
"id" : "9.4-1",
|
|
"max" : null,
|
|
"min" : null
|
|
}
|
|
],
|
|
"backup" : [
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-FULL-3]",
|
|
"prior" : null,
|
|
"reference" : null,
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "full"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 1
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-DIFF-5]",
|
|
"prior" : "[BACKUP-FULL-3]",
|
|
"reference" : [
|
|
"[BACKUP-FULL-3]"
|
|
],
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "diff"
|
|
}
|
|
],
|
|
"db" : [
|
|
{
|
|
"id" : "1",
|
|
"system-id" : 6353949018581704918,
|
|
"version" : "9.4"
|
|
}
|
|
],
|
|
"name" : "db",
|
|
"status" : {
|
|
"code" : 0,
|
|
"message" : "ok"
|
|
}
|
|
}
|
|
]
|
|
|
|
info bogus stanza - bogus stanza (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --log-level-console=warn --stanza=bogus info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
stanza: bogus
|
|
status: error (missing stanza path)
|
|
|
|
info bogus stanza - bogus stanza (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --stanza=bogus --output=json info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[
|
|
{
|
|
"backup" : [],
|
|
"db" : [],
|
|
"name" : "bogus",
|
|
"status" : {
|
|
"code" : 1,
|
|
"message" : "missing stanza path"
|
|
}
|
|
}
|
|
]
|
|
|
|
diff backup - config file not validated on remote (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=info --type=diff --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: backup command begin [BACKREST-VERSION]: --compress --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --db1-path=[TEST_PATH]/db-master/db/base-2/base --db1-user=[USER-1] --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --no-online --process-max=2 --protocol-timeout=60 --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db --start-fast --type=diff
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1]
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base-2/base/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
|
|
P00 INFO: diff backup size = 9B
|
|
P00 INFO: new backup label = [BACKUP-DIFF-6]
|
|
P00 INFO: backup command end: completed successfully
|
|
P00 INFO: expire command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db
|
|
P00 INFO: option 'retention-archive' is not set - archive logs will not be expired
|
|
P00 INFO: expire command end: completed successfully
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2/base
|
|
|
|
[db:restore]
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
bogus=bogus
|
|
|
|
+ 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-2/base
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-6]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-6]"
|
|
backup-prior="[BACKUP-FULL-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=false
|
|
option-compress=true
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2/base","type":"path"}
|
|
pg_tblspc/2={"path":"../../tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"7579ada0808d7f98087a0a586d0df9de009cdc33","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"cafac3c59553f2cfde41ce2e62e7662295f108c0","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"../../tablespace/ts2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|
|
|
|
diff backup - option backup-standby reset - backup performed from master (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --log-level-console=info --backup-standby --type=diff --stanza=db backup
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: backup command begin [BACKREST-VERSION]: --backup-standby --compress --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --db1-path=[TEST_PATH]/db-master/db/base-2/base --db1-user=[USER-1] --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --no-online --process-max=2 --protocol-timeout=60 --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db --start-fast --type=diff
|
|
P00 WARN: option retention-full is not set, the repository may run out of space
|
|
HINT: to retain full backups indefinitely (without warning), set option 'retention-full' to the maximum.
|
|
P00 WARN: option backup-standby is enabled but standby is not properly configured - backups will be performed from the master
|
|
P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1]
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base-2/base/base/base2.txt (9B, 100%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0
|
|
P00 INFO: diff backup size = 9B
|
|
P00 INFO: new backup label = [BACKUP-DIFF-7]
|
|
P00 INFO: backup command end: completed successfully
|
|
P00 INFO: expire command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --db1-cmd=[BACKREST-BIN] --db1-config=[TEST_PATH]/db-master/pgbackrest.conf --db1-host=db-master --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --repo-path=/ --repo-s3-bucket=pgbackrest-dev --repo-s3-endpoint=s3.amazonaws.com --repo-s3-region=us-east-1 --no-repo-s3-verify-ssl --repo-type=s3 --stanza=db
|
|
P00 INFO: option 'retention-archive' is not set - archive logs will not be expired
|
|
P00 INFO: expire command end: completed successfully
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
db-path=[TEST_PATH]/db-master/db/base-2/base
|
|
|
|
[db:restore]
|
|
|
|
[global]
|
|
backup-cmd=[BACKREST-BIN]
|
|
backup-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
backup-host=backup
|
|
backup-user=[USER-2]
|
|
compress=n
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ 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-2/base
|
|
db-user=[USER-1]
|
|
|
|
[global]
|
|
compress=y
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=warn
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
process-max=2
|
|
protocol-timeout=60
|
|
repo-path=/
|
|
repo-s3-bucket=pgbackrest-dev
|
|
repo-s3-endpoint=s3.amazonaws.com
|
|
repo-s3-key=accessKey1
|
|
repo-s3-key-secret=verySecretKey1
|
|
repo-s3-region=us-east-1
|
|
repo-s3-verify-ssl=n
|
|
repo-type=s3
|
|
|
|
[global:backup]
|
|
archive-copy=y
|
|
start-fast=y
|
|
|
|
+ supplemental file: /backup/db/[BACKUP-DIFF-7]/backup.manifest
|
|
---------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup]
|
|
backup-label="[BACKUP-DIFF-7]"
|
|
backup-prior="[BACKUP-FULL-3]"
|
|
backup-timestamp-copy-start=[TIMESTAMP]
|
|
backup-timestamp-start=[TIMESTAMP]
|
|
backup-timestamp-stop=[TIMESTAMP]
|
|
backup-type="diff"
|
|
|
|
[backup:db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[backup:option]
|
|
option-archive-check=true
|
|
option-archive-copy=true
|
|
option-backup-standby=false
|
|
option-checksum-page=false
|
|
option-compress=true
|
|
option-hardlink=false
|
|
option-online=false
|
|
|
|
[backup:target]
|
|
pg_data={"path":"[TEST_PATH]/db-master/db/base-2/base","type":"path"}
|
|
pg_tblspc/2={"path":"../../tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"}
|
|
|
|
[target:file]
|
|
pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/17000={"checksum":"7579ada0808d7f98087a0a586d0df9de009cdc33","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000={"checksum":"4a383e4fb8b5cd2a4e8fab91ef63dce48e532a2f","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33000.32767={"checksum":"21e2c7c1a326682c07053b7d6a5a40dbd49c2ec5","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/base/base2.txt={"checksum":"cafac3c59553f2cfde41ce2e62e7662295f108c0","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_data/global/pg_control={"checksum":"89373d9f2973502940de06bc5212489df3f8a912","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","master":true,"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/pg_internal.init={"checksum":"bc46a4e0420d357db7bfbcb7b5fcbc613dc48c1b","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]}
|
|
|
|
[target:file:default]
|
|
group="[GROUP-1]"
|
|
master=false
|
|
mode="0600"
|
|
user="[USER-1]"
|
|
|
|
[target:link]
|
|
pg_data/pg_tblspc/2={"destination":"../../tablespace/ts2"}
|
|
|
|
[target:link:default]
|
|
group="[GROUP-1]"
|
|
user="[USER-1]"
|
|
|
|
[target:path]
|
|
pg_data={}
|
|
pg_data/base={}
|
|
pg_data/base/1={}
|
|
pg_data/base/16384={}
|
|
pg_data/base/32768={}
|
|
pg_data/global={}
|
|
pg_data/pg_clog={}
|
|
pg_data/pg_stat={}
|
|
pg_data/pg_tblspc={}
|
|
pg_tblspc={}
|
|
pg_tblspc/2={}
|
|
pg_tblspc/2/[TS_PATH-1]={}
|
|
pg_tblspc/2/[TS_PATH-1]/32768={}
|
|
|
|
[target:path:default]
|
|
group="[GROUP-1]"
|
|
mode="0700"
|
|
user="[USER-1]"
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-3]","backup-reference":["[BACKUP-FULL-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
|
|
[db]
|
|
db-catalog-version=201409291
|
|
db-control-version=942
|
|
db-id=1
|
|
db-system-id=6353949018581704918
|
|
db-version="9.4"
|
|
|
|
[db:history]
|
|
1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":6353949018581704918,"db-version":"9.4"}
|