diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 87740d3c4..27286ecb7 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -404,6 +404,21 @@ + + + + + + + + + + + + Remove integration expect log testing. + + + diff --git a/test/code-count/file-type.yaml b/test/code-count/file-type.yaml index fe1d15a63..4f61de418 100644 --- a/test/code-count/file-type.yaml +++ b/test/code-count/file-type.yaml @@ -1859,10 +1859,6 @@ test/lib/pgBackRestTest/Common/ListTest.pm: class: test/harness type: perl -test/lib/pgBackRestTest/Common/LogTest.pm: - class: test/harness - type: perl - test/lib/pgBackRestTest/Common/RunTest.pm: class: test/harness type: perl diff --git a/test/expect/mock-all-001.log b/test/expect/mock-all-001.log deleted file mode 100644 index 8f0510e70..000000000 --- a/test/expect/mock-all-001.log +++ /dev/null @@ -1,3219 +0,0 @@ -run 001 - rmt 0, tls 0, storage posix, enc 0, delta 1 -===================================================== - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] version ------------------------------------------------------------------------------------------------------------------------------------- -[BACKREST-NAME-VERSION] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] help version ------------------------------------------------------------------------------------------------------------------------------------- -[BACKREST-NAME-VERSION] - 'version' command help - -Get version. - -Displays installed pgBackRest version. - -stanza-create db - create required data for stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/archive/db/archive.info ------------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -full backup - create pg_stat link, pg_clog dir (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --manifest-save-threshold=3 --buffer-size=[BUFFER-SIZE] --checksum-page --process-max=1 --repo1-type=cifs --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --checksum-page --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --manifest-save-threshold=3 --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --process-max=1 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --repo1-type=cifs --stanza=db --start-fast --type=full -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/32768/33001 (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P00 WARN: invalid page checksums found in file [TEST_PATH]/db-primary/db/base/base/32768/33001 at pages 0, 3-5, 7 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/32768/44000_init (32KB, 49.98%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 (32KB, 66.65%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/32768/33000 (32KB, 83.31%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/16384/17000 (16KB, 91.64%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P00 WARN: invalid page checksum found in file [TEST_PATH]/db-primary/db/base/base/16384/17000 at page 1 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 95.81%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/1/12000 (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/postgresql.conf (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_hba.conf (9B, 99.99%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/PG_VERSION (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-1] -P00 INFO: full backup size = 192KB, file total = 15 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-type=cifs --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-1]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_data/pg_hba.conf={"file":"pg_hba.conf","path":"../pg_config","type":"link"} -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","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],"user":false} -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","group":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_hba.conf={"checksum":"dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_hba.conf={"destination":"../pg_config/pg_hba.conf"} -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_dynshmem={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -pg_data/pg_tblspc={} - -[target:path:default] -group="[GROUP-1]" -mode="0700" -user="[USER-1]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stop all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --force stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --force --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp -P00 INFO: stop command end: completed successfully - -full backup - global stop (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=full -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 ERROR: [062]: stop file exists for all stanzas -P00 INFO: backup command end: aborted with exception [062] - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: stop command end: completed successfully - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 WARN: stop file already exists for stanza db -P00 INFO: stop command end: completed successfully - -full backup - stanza stop (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=full -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 ERROR: [062]: stop file exists for stanza db -P00 INFO: backup command end: aborted with exception [062] - -start db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: start command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: start command end: completed successfully - -start all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: start command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp -P00 INFO: start command end: completed successfully - -start all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: start command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp -P00 WARN: stop file does not exist -P00 INFO: start command end: completed successfully - -full backup - resume (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --force --checksum-page --delta --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --checksum-page --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --delta --exclude=postgresql.auto.conf --exclude=pg_log/ --exclude=pg_log2 --exclude=apipe --exec-id=[EXEC-ID] --force --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=full -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: backup '[BACKUP-FULL-1]' missing manifest 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 PostgreSQL is running and the backup will probably not be consistent -P00 INFO: exclude '[TEST_PATH]/db-primary/db/base/apipe' from backup using 'apipe' exclusion -P00 INFO: exclude contents of '[TEST_PATH]/db-primary/db/base/pg_log' from backup using 'pg_log/' exclusion -P00 INFO: exclude '[TEST_PATH]/db-primary/db/base/pg_log2' from backup using 'pg_log2' exclusion -P00 INFO: exclude '[TEST_PATH]/db-primary/db/base/postgresql.auto.conf' from backup using 'postgresql.auto.conf' exclusion -P00 WARN: resumable backup [BACKUP-FULL-2] of same type exists -- remove invalid files and resume -P00 DETAIL: remove file '[TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-2]/file.tmp' from resumed backup (missing in manifest) -P00 DETAIL: remove file '[TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-2]/pg_data/PG_VERSION' from resumed backup (no checksum in resumed manifest) -P00 DETAIL: remove file '[TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-2]/pg_data/special-!_.*'()&!@;:+,?' from resumed backup (zero size) -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/32768/33001 (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/32768/44000_init (32KB, 49.98%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 (32KB, 66.64%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/32768/33000 (32KB, 83.30%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/16384/17000 (16KB, 91.63%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 95.80%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/1/12000 (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/postgresql.conf (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/pg_hba.conf (9B, 99.98%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changecontent.txt (7B, 99.98%) checksum 238a131a3e8eb98d1fc5b27d882ca40b7618fd2a -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changetime.txt (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: checksum resumed file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/PG_VERSION (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/zero_from_start (0B, 100.00%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-2] -P00 INFO: full backup size = 192KB, file total = 18 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -exclude=postgresql.auto.conf -exclude=pg_log/ -exclude=pg_log2 -exclude=apipe -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-2]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_data/pg_hba.conf={"file":"pg_hba.conf","path":"../pg_config","type":"link"} -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","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","group":"[GROUP-1]","mode":"0660","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/32768/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/changecontent.txt={"checksum":"238a131a3e8eb98d1fc5b27d882ca40b7618fd2a","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-2],"user":"[USER-1]"} -pg_data/pg_hba.conf={"checksum":"dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-2],"user":"[USER-1]"} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-2],"user":"[USER-1]"} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-2],"user":"[USER-1]"} -pg_data/special-!_.*'()&!@;:+,?={"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} -pg_data/zero_from_start={"group":"[GROUP-1]","mode":"0600","size":[SIZE],"timestamp":[TIMESTAMP-1],"user":"[USER-1]"} - -[target:file:default] -group=false -mode="0640" -user=false - -[target:link] -pg_data/pg_hba.conf={"destination":"../pg_config/pg_hba.conf","group":"[GROUP-1]","user":"[USER-1]"} -pg_data/pg_stat={"destination":"../pg_stat","group":"[GROUP-1]","user":"[USER-1]"} -pg_data/postgresql.conf={"destination":"../pg_config/postgresql.conf","group":"[GROUP-1]","user":"[USER-1]"} - -[target:link:default] -group=false -user=false - -[target:path] -pg_data={} -pg_data/base={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/base/1={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/base/16384={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/base/32768={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/global={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_clog={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_dynshmem={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_log={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_notify={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_replslot={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_serial={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_snapshots={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_stat={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_stat_tmp={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_subtrans={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} -pg_data/pg_tblspc={"group":"[GROUP-1]","mode":"0700","user":"[USER-1]"} - -[target:path:default] -group=false -mode="0777" -user=false - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore delta, backup '[BACKUP-FULL-2]' - add and delete files (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --exec-id=[EXEC-ID] --job-retry=0 --link-all --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-FULL-2] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: repo1: restore backup set [BACKUP-FULL-2] -P00 WARN: unknown user in backup manifest mapped to '[USER-2]' -P00 WARN: unknown group in backup manifest mapped to '[GROUP-2]' -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_config' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_stat' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: update ownership for '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: remove special file '[TEST_PATH]/db-primary/db/base/apipe' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/backup_label.old' -P00 DETAIL: update mode for '[TEST_PATH]/db-primary/db/base/base' to 0700 -P00 DETAIL: update ownership for '[TEST_PATH]/db-primary/db/base/base/1/PG_VERSION' -P00 DETAIL: update mode for '[TEST_PATH]/db-primary/db/base/base/1/PG_VERSION' to 0660 -P00 DETAIL: update ownership for '[TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/base/32768/44000' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/base/32768/t333_44000' -P00 DETAIL: remove invalid path '[TEST_PATH]/db-primary/db/base/base/pgsql_tmp' -P00 DETAIL: remove invalid path '[TEST_PATH]/db-primary/db/base/deleteme' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/global/pg_internal.init' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_dynshmem/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_log/logfile' -P00 DETAIL: remove invalid path '[TEST_PATH]/db-primary/db/base/pg_log2' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_notify/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_replslot/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_serial/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_snapshots/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_stat_tmp/anything.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/pg_subtrans/anything.tmp' -P00 DETAIL: remove invalid link '[TEST_PATH]/db-primary/db/base/postgresql.auto.conf' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/postgresql.auto.conf.tmp' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/postmaster.opts' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/recovery.conf' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/recovery.done' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/pg_stat' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base/pg_clog' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33001 - exists and matches backup (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/44000_init - exists and matches backup (32KB, 49.99%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 - exists and matches backup (32KB, 66.65%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000 - exists and matches backup (32KB, 83.31%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/17000 (16KB, 91.64%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/global/pg_control.pgbackrest.tmp (8KB, 95.81%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/12000 - exists and matches backup (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/postgresql.conf - exists and matches backup (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_hba.conf - exists and matches backup (9B, 99.99%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changecontent.txt - exists and matches backup (7B, 99.99%) checksum 238a131a3e8eb98d1fc5b27d882ca40b7618fd2a -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat - exists and matches backup (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changetime.txt - exists and matches backup (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/zero_from_start - exists and is zero size (0B, 100.00%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 100.00%) -P00 INFO: write [TEST_PATH]/db-primary/db/base/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/pg_config' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_tblspc' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/global' -P00 INFO: restore size = 192KB, file total = 18 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, backup '[BACKUP-FULL-2]' - fix permissions (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --log-level-console=detail --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --exec-id=[EXEC-ID] --job-retry=0 --link-all --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-FULL-2] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: repo1: restore backup set [BACKUP-FULL-2] -P00 WARN: unknown user in backup manifest mapped to '[USER-1]' -P00 WARN: unknown group in backup manifest mapped to '[GROUP-1]' -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_config' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_stat' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: update ownership for '[TEST_PATH]/db-primary/db/base/base/1/PG_VERSION' -P00 DETAIL: update ownership for '[TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/recovery.conf' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/pg_stat' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33001 - exists and matches backup (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/44000_init - exists and matches backup (32KB, 49.99%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 - exists and matches backup (32KB, 66.65%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000 - exists and matches backup (32KB, 83.31%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/17000 - exists and matches backup (16KB, 91.64%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/global/pg_control.pgbackrest.tmp (8KB, 95.81%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/12000 - exists and matches backup (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/postgresql.conf - exists and matches backup (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_hba.conf - exists and matches backup (9B, 99.99%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changecontent.txt - exists and matches backup (7B, 99.99%) checksum 238a131a3e8eb98d1fc5b27d882ca40b7618fd2a -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat - exists and matches backup (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changetime.txt - exists and matches backup (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/zero_from_start - exists and is zero size (0B, 100.00%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 100.00%) -P00 INFO: write [TEST_PATH]/db-primary/db/base/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/pg_config' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_tblspc' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/global' -P00 INFO: restore size = 192KB, file total = 18 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, backup '[BACKUP-FULL-2]' - fix broken symlink (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --exec-id=[EXEC-ID] --job-retry=0 --link-all --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-FULL-2] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: repo1: restore backup set [BACKUP-FULL-2] -P00 WARN: unknown user in backup manifest mapped to current user -P00 WARN: unknown group in backup manifest mapped to current group -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_config' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/pg_stat' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: remove link '[TEST_PATH]/db-primary/db/base/pg_stat' because destination changed -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/recovery.conf' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/pg_stat' -P00 DETAIL: create symlink '[TEST_PATH]/db-primary/db/base/pg_stat' to '../pg_stat' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33001 - exists and matches backup (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/44000_init - exists and matches backup (32KB, 49.99%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 - exists and matches backup (32KB, 66.65%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000 - exists and matches backup (32KB, 83.31%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/17000 - exists and matches backup (16KB, 91.64%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/global/pg_control.pgbackrest.tmp (8KB, 95.81%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/12000 - exists and matches backup (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/postgresql.conf - exists and matches backup (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_hba.conf - exists and matches backup (9B, 99.99%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changecontent.txt - exists and matches backup (7B, 99.99%) checksum 238a131a3e8eb98d1fc5b27d882ca40b7618fd2a -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat - exists and matches backup (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changetime.txt - exists and matches backup (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/PG_VERSION - exists and matches backup (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/zero_from_start - exists and is zero size (0B, 100.00%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 100.00%) -P00 INFO: write [TEST_PATH]/db-primary/db/base/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/pg_config' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_tblspc' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/global' -P00 INFO: restore size = 192KB, file total = 18 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, force, backup '[BACKUP-FULL-2]' - restore links as directories (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --force --set=[BACKUP-FULL-2] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --exec-id=[EXEC-ID] --force --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-FULL-2] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: repo1: restore backup set [BACKUP-FULL-2] -P00 WARN: file link 'pg_hba.conf' will be restored as a file at the same location -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 WARN: unknown user in backup manifest mapped to current user -P00 WARN: unknown user 'bogus' in backup manifest mapped to current user -P00 WARN: unknown group in backup manifest mapped to current group -P00 WARN: unknown group 'bogus' in backup manifest mapped to current group -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: remove invalid link '[TEST_PATH]/db-primary/db/base/pg_hba.conf' -P00 DETAIL: remove invalid link '[TEST_PATH]/db-primary/db/base/pg_stat' -P00 DETAIL: remove invalid link '[TEST_PATH]/db-primary/db/base/postgresql.conf' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base/recovery.conf' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base/pg_stat' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33001 - exists and matches size 65536 and modification time [MODIFICATION-TIME-1] (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/44000_init - exists and matches size 32768 and modification time [MODIFICATION-TIME-1] (32KB, 49.99%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 - exists and matches size 32768 and modification time [MODIFICATION-TIME-1] (32KB, 66.65%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/33000 - exists and matches size 32768 and modification time [MODIFICATION-TIME-1] (32KB, 83.31%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/17000 - exists and matches size 16384 and modification time [MODIFICATION-TIME-1] (16KB, 91.64%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/global/pg_control.pgbackrest.tmp (8KB, 95.81%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/12000 - exists and matches size 8192 and modification time [MODIFICATION-TIME-1] (8KB, 99.97%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/postgresql.conf (21B, 99.98%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_hba.conf (9B, 99.99%) checksum dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changecontent.txt - exists and matches size 7 and modification time [MODIFICATION-TIME-1] (7B, 99.99%) checksum 238a131a3e8eb98d1fc5b27d882ca40b7618fd2a -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/pg_stat/global.stat (5B, 99.99%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/changetime.txt - exists and matches size 4 and modification time [MODIFICATION-TIME-1] (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION - exists and matches size 3 and modification time [MODIFICATION-TIME-1] (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION - exists and matches size 3 and modification time [MODIFICATION-TIME-1] (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION - exists and matches size 3 and modification time [MODIFICATION-TIME-1] (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/PG_VERSION - exists and matches size 3 and modification time [MODIFICATION-TIME-1] (3B, 100.00%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/zero_from_start - exists and matches size 0 and modification time [MODIFICATION-TIME-1] (0B, 100.00%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base/special-!_.*'()&!@;:+,? - exists and matches size 0 and modification time [MODIFICATION-TIME-1] (0B, 100.00%) -P00 INFO: write [TEST_PATH]/db-primary/db/base/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/pg_tblspc' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base/global' -P00 INFO: restore size = 192KB, file total = 18 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -incr backup - add tablespace 1 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1] -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2] -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/badchecksum.txt (11B, 50.00%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changesize.txt (4B, 68.18%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/zerosize.txt (0B, 68.18%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt (7B, 100.00%) checksum 14c44cef6287269b08d41de489fd492bb9fc795d -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/17000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changecontent.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 INFO: new backup label = [BACKUP-INCR-1] -P00 INFO: incr backup size = 22B, file total = 21 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-1]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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/changecontent.txt={"checksum":"238a131a3e8eb98d1fc5b27d882ca40b7618fd2a","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"14c44cef6287269b08d41de489fd492bb9fc795d","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-2]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -incr backup - resume and add tablespace 2 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --process-max=1 --delta --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --process-max=1 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: backup '[BACKUP-INCR-1]' missing manifest removed from backup.info -P00 INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1] -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2] -P00 WARN: resumable backup [BACKUP-INCR-2] of same type exists -- remove invalid files and resume -P00 DETAIL: remove file '[TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-2]/pg_data/changesize.txt' from resumed backup (mismatched size) -P00 DETAIL: remove file '[TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-2]/pg_data/zerosize.txt' from resumed backup (zero size) -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33001 (64KB, 33.31%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/44000_init (32KB, 49.97%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 (32KB, 66.63%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33000 (32KB, 83.29%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/16384/17000 (16KB, 91.62%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 95.79%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P00 WARN: resumed backup file pg_data/badchecksum.txt does not have expected checksum f927212cd08d11a42a666b2f04235398e9ceeb51. The file will be recopied and backup will continue but this may be an issue unless the resumed backup path in the repository is known to be corrupted. - NOTE: this does not indicate a problem with the PostgreSQL page checksums. -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/badchecksum.txt (11B, 99.97%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changesize.txt (9B, 99.97%) checksum 3905d5be2ec8d67f41435dab5e0dcda3ae47455d -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changecontent.txt (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/zerosize.txt (0B, 99.99%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt (7B, 99.99%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/17000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 INFO: new backup label = [BACKUP-INCR-2] -P00 INFO: incr backup size = 41B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-2]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} -pg_tblspc/11={"path":"[TEST_PATH]/db-primary/db/tablespace/ts11","tablespace-id":"11","tablespace-name":"ts11","type":"link"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"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/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts1"} -pg_data/pg_tblspc/11={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts11"} -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - drop tablespace 11 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --process-max=1 --delta --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --process-max=1 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1] -P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2] -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33001 (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/44000_init (32KB, 49.98%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33000.32767 (32KB, 66.64%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/33000 (32KB, 83.30%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/16384/17000 (16KB, 91.63%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 95.79%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/1/12000 (8KB, 99.96%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/postgresql.conf (21B, 99.97%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/badchecksum.txt (11B, 99.97%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/changecontent.txt (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/zerosize.txt (0B, 99.99%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt (7B, 99.99%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/17000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 INFO: new backup label = [BACKUP-DIFF-1] -P00 INFO: diff backup size = 32B, file total = 21 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-DIFF-1]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"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/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts1"} -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore, backup '[BACKUP-DIFF-1]', remap - remap all paths (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --set=[BACKUP-DIFF-1] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-DIFF-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db --tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 --tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 -P00 INFO: repo1: restore backup set [BACKUP-DIFF-1] -P00 INFO: remap data directory to '[TEST_PATH]/db-primary/db/base-2' -P00 INFO: map tablespace 'pg_tblspc/1' to '[TEST_PATH]/db-primary/db/tablespace/ts1-2' -P00 INFO: map tablespace 'pg_tblspc/2' to '[TEST_PATH]/db-primary/db/tablespace/ts2-2' -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts1-2/[TS_PATH-1]' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' exists -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/1' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/16384' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/32768' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/global' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_clog' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_dynshmem' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_log' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_notify' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_replslot' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_serial' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_snapshots' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_stat' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_stat_tmp' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_subtrans' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc' -P00 DETAIL: create symlink '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1' to '[TEST_PATH]/db-primary/db/tablespace/ts1-2' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]/16384' -P00 DETAIL: create symlink '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2' to '[TEST_PATH]/db-primary/db/tablespace/ts2-2' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 49.98%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 66.64%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 83.30%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 (16KB, 91.63%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/global/pg_control.pgbackrest.tmp (8KB, 95.80%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/12000 (8KB, 99.96%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/postgresql.conf (21B, 99.97%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt (11B, 99.98%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changecontent.txt (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changetime.txt (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zerosize.txt (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zero_from_start (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/special-!_.*'()&!@;:+,? (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt (7B, 100.00%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 INFO: write [TEST_PATH]/db-primary/db/base-2/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/global' -P00 INFO: restore size = 192KB, file total = 21 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, backup '[BACKUP-DIFF-1]', remap - ensure file in tblspc root remains after --delta (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-DIFF-1] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --set=[BACKUP-DIFF-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db --tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 --tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 -P00 INFO: repo1: restore backup set [BACKUP-DIFF-1] -P00 INFO: remap data directory to '[TEST_PATH]/db-primary/db/base-2' -P00 INFO: map tablespace 'pg_tblspc/1' to '[TEST_PATH]/db-primary/db/tablespace/ts1-2' -P00 INFO: map tablespace 'pg_tblspc/2' to '[TEST_PATH]/db-primary/db/tablespace/ts2-2' -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts1-2/[TS_PATH-1]' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base-2/recovery.conf' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/tablespace/ts1-2/[TS_PATH-1]' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33001 - exists and matches backup (64KB, 33.32%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init - exists and matches backup (32KB, 49.98%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 - exists and matches backup (32KB, 66.64%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000 - exists and matches backup (32KB, 83.30%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 - exists and matches backup (16KB, 91.63%) checksum e0101dd8ffb910c9c202ca35b5f828bcb9697bed -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/global/pg_control.pgbackrest.tmp (8KB, 95.80%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/12000 - exists and matches backup (8KB, 99.96%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/postgresql.conf - exists and matches backup (21B, 99.97%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt - exists and matches backup (11B, 99.98%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changecontent.txt - exists and matches backup (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat - exists and matches backup (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changetime.txt - exists and matches backup (4B, 99.99%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zerosize.txt - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zero_from_start - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt - exists and matches backup (7B, 100.00%) checksum d85de07d6421d90aa9191c11c889bfde43680f0f -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt - exists and matches backup (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 INFO: write [TEST_PATH]/db-primary/db/base-2/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/1/[TS_PATH-1]/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/global' -P00 INFO: restore size = 192KB, file total = 21 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -incr backup - add files and remove tablespace 2 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --process-max=1 --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --process-max=1 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-DIFF-1], version = 0.00 -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-DIFF-1] -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/base2.txt (5B, 38.46%) checksum 09b5e31766be1dba1ec27de82f975c1b6eea2a92 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt (8B, 100.00%) checksum e324463005236d83e6e54795dbddd20a74533bf3 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt: file size 8 is not divisible by page size 8192 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/badchecksum.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/17000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changecontent.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zerosize.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt to [BACKUP-DIFF-1] -P00 INFO: new backup label = [BACKUP-INCR-3] -P00 INFO: incr backup size = 13B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-3]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup] -backup-label="[BACKUP-INCR-3]" -backup-prior="[BACKUP-DIFF-1]" -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","reference":"[BACKUP-DIFF-1]","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-DIFF-1]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-DIFF-1]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-1]","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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -incr backup - update files (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-INCR-3], version = [VERSION-1] -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-INCR-3] -P00 WARN: file 'base/16384/17000' has same timestamp as prior but different size, enabling delta checksum -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.51%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/global/pg_control (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/badchecksum.txt (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 (8B, 99.97%) checksum 9a53d532e27785e681766c98516a5e93f096a501 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/changecontent.txt (7B, 99.97%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/base2.txt (5B, 99.98%) checksum 09b5e31766be1dba1ec27de82f975c1b6eea2a92 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt (8B, 99.99%) checksum e324463005236d83e6e54795dbddd20a74533bf3 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/badchecksum.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/base2.txt to [BACKUP-INCR-3] -P00 DETAIL: reference pg_data/changecontent.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zerosize.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt to [BACKUP-DIFF-1] -P00 DETAIL: reference pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt to [BACKUP-INCR-3] -P00 INFO: new backup label = [BACKUP-INCR-4] -P00 INFO: incr backup size = 8B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-INCR-4]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","reference":"[BACKUP-DIFF-1]","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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","reference":"[BACKUP-INCR-3]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-DIFF-1]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-DIFF-1]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-1]","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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - updates since last full (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --process-max=1 --delta --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --process-max=1 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1] -P00 WARN: diff backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2] -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.51%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/global/pg_control (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 (8B, 99.97%) checksum 9a53d532e27785e681766c98516a5e93f096a501 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/changecontent.txt (7B, 99.97%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/base2.txt (5B, 99.98%) checksum 09b5e31766be1dba1ec27de82f975c1b6eea2a92 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/zerosize.txt (0B, 99.99%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt (8B, 99.99%) checksum e324463005236d83e6e54795dbddd20a74533bf3 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt: file size 8 is not divisible by page size 8192 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192 -P00 DETAIL: reference pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: reference pg_data/zero_from_start to [BACKUP-FULL-2] -P00 INFO: new backup label = [BACKUP-DIFF-2] -P00 INFO: diff backup size = 46B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-DIFF-2]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - remove files (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --process-max=1 --delta --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --process-max=1 --protocol-timeout=60 --repo1-hardlink --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1] -P00 WARN: diff backup cannot alter compress-type option to 'zst', 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] -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.52%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/global/pg_control (8KB, 95.41%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt (11B, 99.97%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/changecontent.txt (7B, 99.97%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: match file from prior backup [TEST_PATH]/db-primary/db/base-2/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/zerosize.txt (0B, 99.98%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt (12B, 99.99%) checksum dfcb8679956b734706cf87259d50c88f83e80e66 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt: file size 12 is not divisible by page size 8192 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 WARN: page misalignment in file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt: file size 7 is not divisible by page size 8192 -P00 DETAIL: hardlink pg_data/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/1/12000 to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/1/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/16384/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/32768/33000 to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/32768/33000.32767 to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/32768/33001 to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/32768/44000_init to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/base/32768/PG_VERSION to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/changetime.txt to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/global/pg_control to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/pg_stat/global.stat to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/postgresql.conf to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-2] -P00 DETAIL: hardlink pg_data/zero_from_start to [BACKUP-FULL-2] -P00 INFO: new backup label = [BACKUP-DIFF-3] -P00 INFO: diff backup size = 37B, file total = 20 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-hardlink=y -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-DIFF-3]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="none" -option-delta=true -option-hardlink=true -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":true,"option-online":false} - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -full backup - update file (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-hardlink --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=full -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.51%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/global/pg_control (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 (9B, 99.97%) checksum 7579ada0808d7f98087a0a586d0df9de009cdc33 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/changecontent.txt (7B, 99.97%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/zerosize.txt (0B, 99.98%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/zero_from_start (0B, 99.98%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/special-!_.*'()&!@;:+,? (0B, 99.98%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt (12B, 99.99%) checksum dfcb8679956b734706cf87259d50c88f83e80e66 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 INFO: new backup label = [BACKUP-FULL-3] -P00 INFO: full backup size = 176KB, file total = 21 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-hardlink=y -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-FULL-3]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="zst" -option-delta=false -option-hardlink=true -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":true,"option-online":false} -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -expire full=1 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo1-retention-full=1 --repo=1 --stanza=db expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo=1 --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-full=1 --stanza=db -P00 INFO: repo1: expire full backup set [BACKUP-FULL-2], [BACKUP-INCR-2], [BACKUP-DIFF-1], [BACKUP-INCR-3], [BACKUP-INCR-4], [BACKUP-DIFF-2], [BACKUP-DIFF-3] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-3] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-2] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-4] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-3] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-1] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-2] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-2] -P00 INFO: expire command end: completed successfully - -diff backup - add file (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --checksum-page --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --checksum-page --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-hardlink --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1] -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base-2/base/base2.txt (9B, 100.00%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0 -P00 DETAIL: hardlink pg_data/PG_VERSION to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/badchecksum.txt to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/1/12000 to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/1/PG_VERSION to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/16384/17000 to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/16384/PG_VERSION to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/32768/33000 to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/32768/33000.32767 to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/32768/33001 to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/32768/44000_init to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/base/32768/PG_VERSION to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/changecontent.txt to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/changetime.txt to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/global/pg_control to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/pg_stat/global.stat to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/postgresql.conf to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/special-!_.*'()&!@;:+,? to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/zero_from_start to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_data/zerosize.txt to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt to [BACKUP-FULL-3] -P00 DETAIL: hardlink pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt to [BACKUP-FULL-3] -P00 INFO: new backup label = [BACKUP-DIFF-4] -P00 INFO: diff backup size = 9B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-hardlink=y -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-DIFF-4]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup] -backup-label="[BACKUP-DIFF-4]" -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="zst" -option-delta=false -option-hardlink=true -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore delta, remap - selective restore 16384 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --db-include=16384 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-include=16384 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db --tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 -P00 INFO: repo1: restore backup set [BACKUP-DIFF-4] -P00 INFO: map tablespace 'pg_tblspc/2' to '[TEST_PATH]/db-primary/db/tablespace/ts2-2' -P00 DETAIL: databases found for selective restore (1, 16384, 32768) -P00 DETAIL: databases excluded (zeroed) from selective restore (32768) -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base-2/recovery.conf' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.52%) -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/global/pg_control.pgbackrest.tmp (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/12000 - exists and matches backup (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/postgresql.conf - exists and matches backup (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt - exists and matches backup (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base2.txt - exists and matches backup (9B, 99.97%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 - exists and matches backup (9B, 99.97%) checksum 7579ada0808d7f98087a0a586d0df9de009cdc33 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changecontent.txt - exists and matches backup (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat - exists and matches backup (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changetime.txt - exists and matches backup (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION - exists and matches backup (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zerosize.txt - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zero_from_start - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt (12B, 100.00%) -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) -P00 INFO: write [TEST_PATH]/db-primary/db/base-2/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/global' -P00 INFO: restore size = 176KB, file total = 22 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, remap - selective restore 32768 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --db-include=32768 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-include=32768 --delta --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base-2 --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db --tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 -P00 INFO: repo1: restore backup set [BACKUP-DIFF-4] -P00 INFO: map tablespace 'pg_tblspc/2' to '[TEST_PATH]/db-primary/db/tablespace/ts2-2' -P00 DETAIL: databases found for selective restore (1, 16384, 32768) -P00 DETAIL: databases excluded (zeroed) from selective restore (16384) -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' exists -P00 DETAIL: remove 'global/pg_control' so cluster will not start if restore does not complete -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: remove invalid file '[TEST_PATH]/db-primary/db/base-2/recovery.conf' -P00 INFO: remove invalid files/links/paths from '[TEST_PATH]/db-primary/db/tablespace/ts2-2/[TS_PATH-1]' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/44000_init (32KB, 54.52%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/global/pg_control.pgbackrest.tmp (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/12000 - exists and matches backup (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/postgresql.conf - exists and matches backup (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/badchecksum.txt - exists and matches backup (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base2.txt - exists and matches backup (9B, 99.97%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0 -P01 DETAIL: restore zeroed file [TEST_PATH]/db-primary/db/base-2/base/16384/17000 (9B, 99.97%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changecontent.txt - exists and matches backup (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_stat/global.stat - exists and matches backup (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/changetime.txt - exists and matches backup (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/32768/PG_VERSION - exists and matches backup (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/16384/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/1/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/PG_VERSION - exists and matches backup (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zerosize.txt - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/zero_from_start - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/special-!_.*'()&!@;:+,? - exists and is zero size (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt (12B, 100.00%) checksum dfcb8679956b734706cf87259d50c88f83e80e66 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 INFO: write [TEST_PATH]/db-primary/db/base-2/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/global' -P00 INFO: restore size = 176KB, file total = 22 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, remap, expect exit 80 - error on invalid id (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/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-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/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 - no tablespace remap (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --tablespace-map-all=../../tablespace --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: restore command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base-2/base --protocol-timeout=60 --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db --tablespace-map-all=../../tablespace -P00 INFO: repo1: restore backup set [BACKUP-DIFF-4] -P00 INFO: remap data directory to '[TEST_PATH]/db-primary/db/base-2/base' -P00 INFO: map tablespace 'pg_tblspc/2' to '../../tablespace/ts2' -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2/base' exists -P00 DETAIL: check '[TEST_PATH]/db-primary/db/base-2/tablespace/ts2/[TS_PATH-1]' exists -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/base' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/base/1' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/base/16384' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/base/32768' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/global' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_clog' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_dynshmem' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_log' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_notify' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_replslot' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_serial' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_snapshots' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_stat' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_stat_tmp' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_subtrans' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc' -P00 DETAIL: create symlink '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2' to '../../tablespace/ts2' -P00 DETAIL: create path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2/[TS_PATH-1]/32768' -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/32768/33001 (64KB, 36.34%) checksum 6bf316f11d28c28914ea9be92c00de9bea6d9a6b -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/32768/44000_init (32KB, 54.52%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/32768/33000.32767 (32KB, 72.69%) checksum 1d11c42e6080e805a7b12bf9f83f4def548d92ac -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/32768/33000 (32KB, 90.86%) checksum 1d73a0052828531770e7c155aeb22338e017e196 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/global/pg_control.pgbackrest.tmp (8KB, 95.40%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/1/12000 (8KB, 99.95%) checksum 22c98d248ff548311eda88559e4a8405ed77c003 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/postgresql.conf (21B, 99.96%) checksum 6721d92c9fcdf4248acff1f9a1377127d9064807 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/badchecksum.txt (11B, 99.96%) checksum f927212cd08d11a42a666b2f04235398e9ceeb51 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/base2.txt (9B, 99.97%) checksum cafac3c59553f2cfde41ce2e62e7662295f108c0 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/16384/17000 (9B, 99.97%) checksum 7579ada0808d7f98087a0a586d0df9de009cdc33 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/changecontent.txt (7B, 99.98%) checksum a094d94583e209556d03c3c5da33131a065f1689 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/pg_stat/global.stat (5B, 99.98%) checksum e350d5ce0153f3e22d5db21cf2a4eff00f3ee877 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/changetime.txt (4B, 99.98%) checksum 88087292ed82e26f3eb824d0bffc05ccf7a30f8d -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/32768/PG_VERSION (3B, 99.98%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/16384/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/base/1/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/PG_VERSION (3B, 99.99%) checksum 184473f470864e067ee3a22e64b47b0a1c356f29 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/zerosize.txt (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/zero_from_start (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/special-!_.*'()&!@;:+,? (0B, 99.99%) -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt (12B, 100.00%) checksum dfcb8679956b734706cf87259d50c88f83e80e66 -P01 DETAIL: restore file [TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt (7B, 100.00%) checksum dc7f76e43c46101b47acc55ae4d593a9e6983578 -P00 INFO: write [TEST_PATH]/db-primary/db/base-2/base/recovery.conf -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/base' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/base/1' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/base/16384' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/base/32768' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_clog' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_dynshmem' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_log' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_notify' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_replslot' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_serial' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_snapshots' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_stat' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_stat_tmp' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_subtrans' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2/[TS_PATH-1]' -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/pg_tblspc/2/[TS_PATH-1]/32768' -P00 INFO: restore global/pg_control (performed last to ensure aborted restores cannot be started) -P00 DETAIL: sync path '[TEST_PATH]/db-primary/db/base-2/base/global' -P00 INFO: restore size = 176KB, file total = 22 -P00 INFO: restore command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/base/recovery.conf ------------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -> ls -1Rtr [TEST_PATH]/db-primary/repo/backup/db/backup.history ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/backup/db/backup.history: -[YEAR-1] - -[TEST_PATH]/db-primary/repo/backup/db/backup.history/[YEAR-1]: -[BACKUP-FULL-1].manifest.gz -[BACKUP-FULL-2].manifest.gz -[BACKUP-INCR-1].manifest.gz -[BACKUP-INCR-2].manifest.gz -[BACKUP-DIFF-1].manifest.gz -[BACKUP-INCR-3].manifest.gz -[BACKUP-INCR-4].manifest.gz -[BACKUP-DIFF-2].manifest.gz -[BACKUP-DIFF-3].manifest.gz -[BACKUP-FULL-3].manifest.gz -[BACKUP-DIFF-4].manifest.gz - -diff backup - option backup-standby reset - backup performed from primary (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --no-online --log-level-console=info --backup-standby --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --backup-standby --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=info --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base-2/base --protocol-timeout=60 --repo1-hardlink --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: option backup-standby is enabled but backup is offline - backups will be performed from the primary -P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1] -P00 INFO: new backup label = [BACKUP-DIFF-5] -P00 INFO: diff backup size = 9B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=info --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2/base - -[db:restore] - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-hardlink=y -repo1-path=[TEST_PATH]/db-primary/repo -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/[BACKUP-DIFF-5]/backup.manifest ------------------------------------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=3 -option-compress-type="zst" -option-delta=false -option-hardlink=true -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/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","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/44000_init={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -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_dynshmem={} -pg_data/pg_log={} -pg_data/pg_notify={} -pg_data/pg_replslot={} -pg_data/pg_serial={} -pg_data/pg_snapshots={} -pg_data/pg_stat={} -pg_data/pg_stat_tmp={} -pg_data/pg_subtrans={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} -[BACKUP-DIFF-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":true,"option-online":false} - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" diff --git a/test/expect/mock-all-002.log b/test/expect/mock-all-002.log deleted file mode 100644 index 31b8b9c77..000000000 --- a/test/expect/mock-all-002.log +++ /dev/null @@ -1,2716 +0,0 @@ -run 002 - rmt 1, tls 1, storage s3, enc 1, delta 0 -================================================== - -stanza-create db - create required data for stanza (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -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 --cmd-ssh=/usr/bin/ssh --pg1-port=9999 --pg1-socket-path=/test_socket_path --buffer-size=[BUFFER-SIZE] --checksum-page --process-max=1 --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: invalid page checksums found in file db-primary:[TEST_PATH]/db-primary/db/base/base/32768/33001 at pages 0, 3-5, 7 -P00 WARN: invalid page checksum found in file db-primary:[TEST_PATH]/db-primary/db/base/base/16384/17000 at page 1 - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-FULL-1]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_data/pg_hba.conf={"file":"pg_hba.conf","path":"../pg_config","type":"link"} -pg_data/pg_stat={"path":"../pg_stat","type":"link"} -pg_data/postgresql.conf={"file":"postgresql.conf","path":"../pg_config","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"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":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"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":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_hba.conf={"checksum":"dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_hba.conf={"destination":"../pg_config/pg_hba.conf"} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -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 ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: backup '[BACKUP-FULL-1]' missing manifest 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 PostgreSQL is running and the backup will probably not be consistent -P00 WARN: resumable backup [BACKUP-FULL-2] of same type exists -- remove invalid files and resume - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -exclude=postgresql.auto.conf -exclude=pg_log/ -exclude=pg_log2 -exclude=apipe -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-FULL-2]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_data/pg_hba.conf={"file":"pg_hba.conf","path":"../pg_config","type":"link"} -pg_data/pg_stat={"path":"../pg_stat","type":"link"} -pg_data/postgresql.conf={"file":"postgresql.conf","path":"../pg_config","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"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":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"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":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33001={"checksum":"6bf316f11d28c28914ea9be92c00de9bea6d9a6b","checksum-page":false,"checksum-page-error":[0,[3,5],7],"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/changecontent.txt={"checksum":"238a131a3e8eb98d1fc5b27d882ca40b7618fd2a","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_hba.conf={"checksum":"dd4cea0cae348309f9de28ad4ded8ee2cc2e6d5b","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_hba.conf={"destination":"../pg_config/pg_hba.conf"} -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_log={} -pg_data/pg_stat={} -pg_data/pg_tblspc={} - -[target:path:default] -group="[GROUP-1]" -mode="0700" -user="[USER-1]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore delta, backup '[BACKUP-FULL-2]' - add and delete files (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --cmd-ssh=/usr/bin/ssh --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --cmd-ssh=/usr/bin/ssh --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, backup '[BACKUP-FULL-2]' - fix broken symlink (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-FULL-2] --link-all --compress-level-network=0 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --compress-level-network=0 --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, force, backup '[BACKUP-FULL-2]' - restore links as directories (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --force --set=[BACKUP-FULL-2] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: file link 'pg_hba.conf' will be restored as a file at the same location -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 WARN: unknown user 'bogus' in backup manifest mapped to current user -P00 WARN: unknown group 'bogus' in backup manifest mapped to current group - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -incr backup - add tablespace 1 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-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-primary:[TEST_PATH]/db-primary/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-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-INCR-1]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"238a131a3e8eb98d1fc5b27d882ca40b7618fd2a","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"14c44cef6287269b08d41de489fd492bb9fc795d","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -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 ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: backup '[BACKUP-INCR-1]' missing manifest removed from backup.info -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-FULL-2] -P00 WARN: file 'changetime.txt' has timestamp earlier than prior backup, enabling delta checksum -P00 WARN: resumable backup [BACKUP-INCR-2] of same type exists -- remove invalid files and resume -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192 -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/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-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-INCR-2]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} -pg_tblspc/11={"path":"[TEST_PATH]/db-primary/db/tablespace/ts11","tablespace-id":"11","tablespace-name":"ts11","type":"link"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts1"} -pg_data/pg_tblspc/11={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts11"} -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - drop tablespace 11 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --process-max=1 --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-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: file 'changetime.txt' has timestamp earlier than prior backup, enabling delta checksum -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/db/base/pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt: file size 7 is not divisible by page size 8192 -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/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-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-DIFF-1]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base","type":"path"} -pg_tblspc/1={"path":"[TEST_PATH]/db-primary/db/tablespace/ts1","tablespace-id":"1","tablespace-name":"ts1","type":"link"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/1/[TS_PATH-1]/16384/tablespace1.txt={"checksum":"d85de07d6421d90aa9191c11c889bfde43680f0f","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/1={"destination":"[TEST_PATH]/db-primary/db/tablespace/ts1"} -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore, backup '[BACKUP-DIFF-1]', remap - remap all paths (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --set=[BACKUP-DIFF-1] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, backup '[BACKUP-DIFF-1]', remap - ensure file in tblspc root remains after --delta (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-DIFF-1] --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --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 --process-max=1 --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: incr backup cannot alter 'checksum-page' option to 'false', reset to 'true' from [BACKUP-DIFF-1] -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/db/base-2/pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt: file size 8 is not divisible by page size 8192 - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-INCR-3]/backup.manifest ---------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup] -backup-label="[BACKUP-INCR-3]" -backup-prior="[BACKUP-DIFF-1]" -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"e0101dd8ffb910c9c202ca35b5f828bcb9697bed","checksum-page":false,"checksum-page-error":[1],"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -incr backup - update files (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-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: file 'base/16384/17000' has same timestamp as prior but different size, enabling delta checksum -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192 - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-INCR-4]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"9a53d532e27785e681766c98516a5e93f096a501","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","reference":"[BACKUP-INCR-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"reference":"[BACKUP-DIFF-1]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"reference":"[BACKUP-INCR-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - updates since last full (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --process-max=1 --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-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: file 'base/16384/17000' has same timestamp as prior but different size, enabling delta checksum -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/db/base-2/base/16384/17000: file size 8 is not divisible by page size 8192 -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/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-primary:[TEST_PATH]/db-primary/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-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-DIFF-2]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/17000={"checksum":"9a53d532e27785e681766c98516a5e93f096a501","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/base2.txt={"checksum":"09b5e31766be1dba1ec27de82f975c1b6eea2a92","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2b.txt={"checksum":"e324463005236d83e6e54795dbddd20a74533bf3","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -diff backup - remove files (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --process-max=1 --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: diff backup cannot alter compress-type option to 'lz4', 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 WARN: file 'changetime.txt' has timestamp earlier than prior backup, enabling delta checksum -P00 WARN: page misalignment in file db-primary:[TEST_PATH]/db-primary/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-primary:[TEST_PATH]/db-primary/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-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-DIFF-3]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=true -option-compress=false -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="none" -option-delta=true -option-hardlink=false -option-online=false -option-process-max=1 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-3] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/12000={"checksum":"22c98d248ff548311eda88559e4a8405ed77c003","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/1/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","mode":"0660","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/16384/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000={"checksum":"1d73a0052828531770e7c155aeb22338e017e196","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","checksum-page":true,"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"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]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-2]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2.txt={"checksum":"dc7f76e43c46101b47acc55ae4d593a9e6983578","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_tblspc/2/[TS_PATH-1]/32768/tablespace2c.txt={"checksum":"dfcb8679956b734706cf87259d50c88f83e80e66","checksum-page":false,"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} - -[target:file:default] -group="[GROUP-1]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":false,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -full backup - update file (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-FULL-3]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="lz4" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-4] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-1]","backup-reference":["[BACKUP-FULL-2]","[BACKUP-DIFF-1]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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-1]","[BACKUP-INCR-3]"],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":true,"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":false,"option-archive-copy":false,"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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -expire full=1 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=1 --repo=1 --stanza=db expire ------------------------------------------------------------------------------------------------------------------------------------- - -diff backup - add file (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --checksum-page --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[db:restore] -tablespace-map=1=[TEST_PATH]/db-primary/db/tablespace/ts1-2 -tablespace-map=2=[TEST_PATH]/db-primary/db/tablespace/ts2-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-DIFF-4]/backup.manifest ---------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup] -backup-label="[BACKUP-DIFF-4]" -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="lz4" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2","type":"path"} -pg_tblspc/2={"path":"[TEST_PATH]/db-primary/db/tablespace/ts2-2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-4] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -mode="0600" -user="[USER-1]" - -[target:link] -pg_data/pg_tblspc/2={"destination":"[TEST_PATH]/db-primary/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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -restore delta, remap - selective restore 16384 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --db-include=16384 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, remap - selective restore 32768 (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --db-include=32768 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/recovery.conf -------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -restore delta, remap, expect exit 80 - error on invalid id (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/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-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/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 - no tablespace remap (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --tablespace-map-all=../../tablespace --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base-2/base/recovery.conf ------------------------------------------------------------------------- -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' - -diff backup - option backup-standby reset - backup performed from primary (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 --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=lz4 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base-2/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-storage-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: option backup-standby is enabled but backup is offline - backups will be performed from the primary -P00 INFO: last backup label = [BACKUP-FULL-3], version = [VERSION-1] -P00 INFO: new backup label = [BACKUP-DIFF-5] -P00 INFO: diff backup size = 9B, file total = 22 -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/backup/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=info --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --no-log-timestamp --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-storage-verify-tls --repo1-type=s3 --stanza=db -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base-2/base - -[db:restore] - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base-2/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=warn -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -process-max=2 -protocol-timeout=60 -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-s3-bucket=pgbackrest-dev -repo1-s3-endpoint=s3.amazonaws.com -repo1-s3-key=accessKey1 -repo1-s3-key-secret=verySecretKey1 -repo1-s3-region=us-east-1 -repo1-s3-verify-ssl=n -repo1-type=s3 - -[global:backup] -archive-copy=y -start-fast=y - -+ supplemental file: /backup/db/[BACKUP-DIFF-5]/backup.manifest ---------------------------------------------------------------- -[backrest] -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=1000000000000000094 -db-version="9.4" - -[backup:option] -option-archive-check=false -option-archive-copy=false -option-backup-standby=false -option-buffer-size=[BUFFER-SIZE] -option-checksum-page=false -option-compress=true -option-compress-level=3 -option-compress-level-network=1 -option-compress-type="lz4" -option-delta=false -option-hardlink=false -option-online=false -option-process-max=2 - -[backup:target] -pg_data={"path":"[TEST_PATH]/db-primary/db/base-2/base","type":"path"} -pg_tblspc/2={"path":"../../tablespace/ts2","tablespace-id":"2","tablespace-name":"ts2","type":"link"} - -[cipher] -cipher-pass=[CIPHER-PASS-4] - -[target:file] -pg_data/PG_VERSION={"checksum":"184473f470864e067ee3a22e64b47b0a1c356f29","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/badchecksum.txt={"checksum":"f927212cd08d11a42a666b2f04235398e9ceeb51","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":"1d73a0052828531770e7c155aeb22338e017e196","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/base/32768/33000.32767={"checksum":"1d11c42e6080e805a7b12bf9f83f4def548d92ac","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/changecontent.txt={"checksum":"a094d94583e209556d03c3c5da33131a065f1689","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changesize.txt={"checksum":"3905d5be2ec8d67f41435dab5e0dcda3ae47455d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/changetime.txt={"checksum":"88087292ed82e26f3eb824d0bffc05ccf7a30f8d","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/global/pg_control={"checksum":"4c77c900f7af0d9ab13fa9982051a42e0b637f6c","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/pg_stat/global.stat={"checksum":"e350d5ce0153f3e22d5db21cf2a4eff00f3ee877","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/postgresql.conf={"checksum":"6721d92c9fcdf4248acff1f9a1377127d9064807","reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -pg_data/special-!_.*'()&!@;:+,?={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zero_from_start={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-1]} -pg_data/zerosize.txt={"reference":"[BACKUP-FULL-3]","repo-size":[SIZE],"size":[SIZE],"timestamp":[TIMESTAMP-2]} -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]" -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_log={} -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]" - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"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-error":false,"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":false,"option-archive-copy":false,"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-error":false,"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":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" diff --git a/test/expect/mock-archive-001.log b/test/expect/mock-archive-001.log deleted file mode 100644 index 1c99a2483..000000000 --- a/test/expect/mock-archive-001.log +++ /dev/null @@ -1,205 +0,0 @@ -run 001 - rmt 0, tls 0, storage posix, enc 1, cmp lz4 -===================================================== - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [103]: unable to find a valid repository: - repo1: [FileMissingError] unable to load info file '[TEST_PATH]/db-primary/repo/archive/db/archive.info' or '[TEST_PATH]/db-primary/repo/archive/db/archive.info.copy': - FileMissingError: unable to open missing file '[TEST_PATH]/db-primary/repo/archive/db/archive.info' for read - FileMissingError: unable to open missing file '[TEST_PATH]/db-primary/repo/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 INFO: archive-push command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 WARN: repo1: [FileMissingError] unable to load info file '[TEST_PATH]/db-primary/repo/archive/db/archive.info' or '[TEST_PATH]/db-primary/repo/archive/db/archive.info.copy': - FileMissingError: unable to open missing file '[TEST_PATH]/db-primary/repo/archive/db/archive.info' for read - FileMissingError: unable to open missing file '[TEST_PATH]/db-primary/repo/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 ERROR: [103]: unable to find a valid repository -P00 INFO: archive-get command end: aborted with exception [103] - -stanza-create db - stanza create (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: [TEST_PATH]/db-primary/repo/archive/db/archive.info ------------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --compress-type=lz4 [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=lz4 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: pushed WAL file '000000010000000100000001' to the archive -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 700000007000000070000000 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [700000007000000070000000, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: unable to find 700000007000000070000000 in the archive -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: found 000000010000000100000001 in the repo1: 9.4-1 archive -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --compress-type=lz4 --archive-async --process-max=2 [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=lz4 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --process-max=2 --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002' to the archive asynchronously -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --archive-async [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: pushed WAL file '00000002.history' to the archive asynchronously -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 WARN: repo1: [ArchiveMismatchError] unable to retrieve the archive id for database version '9.4' and system-id '1000000000000000094' -P00 ERROR: [103]: unable to find a valid repository -P00 INFO: archive-get command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 9.4, system-id 5000900090001855000 - HINT: are you archiving to the correct stanza? -P00 INFO: archive-push command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 WARN: repo1: [ArchiveMismatchError] unable to retrieve the archive id for database version '9.4' and system-id '1000000000000000094' -P00 ERROR: [103]: unable to find a valid repository -P00 INFO: archive-get command end: aborted with exception [103] - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: stop command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [062]: stop file exists for stanza db -P00 INFO: archive-push command end: aborted with exception [062] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [062]: stop file exists for stanza db -P00 INFO: archive-get command end: aborted with exception [062] - -start db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: start command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: start command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 WARN: WAL file '000000010000000100000002' already exists in the repo1 archive with the same checksum - HINT: this is valid in some recovery scenarios but may also indicate a problem. -P00 INFO: pushed WAL file '000000010000000100000002' to the archive -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [045]: WAL file '000000010000000100000002' already exists in the repo1 archive with a different checksum -P00 INFO: archive-push command end: aborted with exception [045] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --archive-async --repo-type=cifs 000000010000000100000002 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000002, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --archive-async --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --repo1-type=cifs --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: found 000000010000000100000002 in the archive asynchronously -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --archive-async 00000001.history [TEST_PATH]/db-primary/db/base/pg_xlog/00000001.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [00000001.history, [TEST_PATH]/db-primary/db/base/pg_xlog/00000001.history] --archive-async --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: unable to find 00000001.history in the archive -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --archive-async 00000002.history [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [00000002.history, [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history] --archive-async --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: found 00000002.history in the repo1: 9.4-1 archive -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002.partial' to the archive -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 WARN: WAL file '000000010000000100000002.partial' already exists in the repo1 archive with the same checksum - HINT: this is valid in some recovery scenarios but may also indicate a problem. -P00 INFO: pushed WAL file '000000010000000100000002.partial' to the archive -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=[TEST_PATH]/db-primary/repo --stanza=db -P00 ERROR: [045]: WAL file '000000010000000100000002.partial' already exists in the repo1 archive with a different checksum -P00 INFO: archive-push command end: aborted with exception [045] diff --git a/test/expect/mock-archive-002.log b/test/expect/mock-archive-002.log deleted file mode 100644 index 4b682c075..000000000 --- a/test/expect/mock-archive-002.log +++ /dev/null @@ -1,216 +0,0 @@ -run 002 - rmt 1, tls 1, storage s3, enc 0, cmp zst -================================================== - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [103]: unable to find a valid repository: - repo1: [FileMissingError] unable to load info file '/archive/db/archive.info' or '/archive/db/archive.info.copy': - FileMissingError: raised from remote-0 tls protocol on 'backup': unable to open missing file '/archive/db/archive.info' for read - FileMissingError: raised from remote-0 tls protocol on 'backup': unable to open missing file '/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 WARN: repo1: [FileMissingError] unable to load info file '/archive/db/archive.info' or '/archive/db/archive.info.copy': - FileMissingError: raised from remote-0 tls protocol on 'backup': unable to open missing file '/archive/db/archive.info' for read - FileMissingError: raised from remote-0 tls protocol on 'backup': unable to open missing file '/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 ERROR: [103]: unable to find a valid repository -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: aborted with exception [103] - -stanza-create db - stanza create (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key= --repo1-s3-key-secret= --repo1-s3-region=us-east-1 --no-repo1-storage-verify-tls --repo1-type=s3 --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --cmd-ssh=/usr/bin/ssh --compress-type=zst [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --cmd-ssh=/usr/bin/ssh --compress-level=3 --compress-level-network=1 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: pushed WAL file '000000010000000100000001' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 700000007000000070000000 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [700000007000000070000000, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: unable to find 700000007000000070000000 in the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: found 000000010000000100000001 in the repo1: 9.4-1 archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --compress-type=zst --archive-async --process-max=2 [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --process-max=2 --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002' to the archive asynchronously -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push --archive-async [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: pushed WAL file '00000002.history' to the archive asynchronously -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 WARN: repo1: [ArchiveMismatchError] unable to retrieve the archive id for database version '9.4' and system-id '1000000000000000094' -P00 ERROR: [103]: unable to find a valid repository -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 9.4, system-id 5000900090001855000 - HINT: are you archiving to the correct stanza? -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: aborted with exception [103] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 WARN: repo1: [ArchiveMismatchError] unable to retrieve the archive id for database version '9.4' and system-id '1000000000000000094' -P00 ERROR: [103]: unable to find a valid repository -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: aborted with exception [103] - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: stop command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [062]: stop file exists for stanza db -P00 INFO: archive-push command end: aborted with exception [062] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000001, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [062]: stop file exists for stanza db -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: aborted with exception [062] - -start db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: start command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: start command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 WARN: WAL file '000000010000000100000002' already exists in the repo1 archive with the same checksum - HINT: this is valid in some recovery scenarios but may also indicate a problem. -P00 INFO: pushed WAL file '000000010000000100000002' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [045]: WAL file '000000010000000100000002' already exists in the repo1 archive with a different checksum -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: aborted with exception [045] - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --cmd-ssh=/usr/bin/ssh --archive-async 000000010000000100000002 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000002, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --archive-async --buffer-size=[BUFFER-SIZE] --cmd-ssh=/usr/bin/ssh --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: found 000000010000000100000002 in the archive asynchronously -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --archive-async 00000001.history [TEST_PATH]/db-primary/db/base/pg_xlog/00000001.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [00000001.history, [TEST_PATH]/db-primary/db/base/pg_xlog/00000001.history] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: unable to find 00000001.history in the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get --archive-async 00000002.history [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [00000002.history, [TEST_PATH]/db-primary/db/base/pg_xlog/00000002.history] --archive-async --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --spool-path=[TEST_PATH]/db-primary/spool --stanza=db -P00 INFO: found 00000002.history in the repo1: 9.4-1 archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002.partial' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 WARN: WAL file '000000010000000100000002.partial' already exists in the repo1 archive with the same checksum - HINT: this is valid in some recovery scenarios but may also indicate a problem. -P00 INFO: pushed WAL file '000000010000000100000002.partial' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002.partial] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=none --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [045]: WAL file '000000010000000100000002.partial' already exists in the repo1 archive with a different checksum -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: aborted with exception [045] diff --git a/test/expect/mock-archive-stop-001.log b/test/expect/mock-archive-stop-001.log deleted file mode 100644 index fa746d2fc..000000000 --- a/test/expect/mock-archive-stop-001.log +++ /dev/null @@ -1,74 +0,0 @@ -run 001 - rmt 0, tls 0, cmp bz2, error version, storage gcs, enc 1 -================================================================== - -stanza-create db - create required data for stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 8.0, system-id 1000000000000000094 - HINT: are you archiving to the correct stanza? - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 8.0, system-id 1000000000000000094 - HINT: are you archiving to the correct stanza? - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000004 --repo1-host=bogus ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: dropped WAL file '000000010000000100000004' because archive queue exceeded 32MB - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------- diff --git a/test/expect/mock-archive-stop-002.log b/test/expect/mock-archive-stop-002.log deleted file mode 100644 index b4f2194ea..000000000 --- a/test/expect/mock-archive-stop-002.log +++ /dev/null @@ -1,66 +0,0 @@ -run 002 - rmt 1, tls 0, cmp lz4, error connect, storage azure, enc 0 -==================================================================== - -stanza-create db - create required data for stanza (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 --repo1-host=bogus ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [UnknownError] remote-0 process on 'bogus' terminated unexpectedly [255]: ssh: Could not resolve hostname bogus: Name or service not known - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000003 --repo1-host=bogus ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [UnknownError] remote-0 process on 'bogus' terminated unexpectedly [255]: ssh: Could not resolve hostname bogus: Name or service not known - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000004 --repo1-host=bogus ------------------------------------------------------------------------------------------------------------------------------------- -P00 WARN: dropped WAL file '000000010000000100000004' because archive queue exceeded 32MB - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------- diff --git a/test/expect/mock-expire-001.log b/test/expect/mock-expire-001.log deleted file mode 100644 index ef1cc9fcb..000000000 --- a/test/expect/mock-expire-001.log +++ /dev/null @@ -1,3033 +0,0 @@ -run 001 - simple, enc 0, storage posix -====================================== - -* full backup: label = [BACKUP-FULL-1], start = 000000010000000000000000, stop = 000000010000000000000002 -* incr backup: label = [BACKUP-INCR-1], prior = [BACKUP-FULL-1], start = 000000010000000000000006, stop = 0000000100000000000000FB -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz - -Nothing to expire -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=full --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=full --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-1], start = 000000010000000000000000 -P00 INFO: repo1: 9.2-1 no archive to remove -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-2], start = 000000010000000100000000, stop = 000000010000000100000002 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000000","backup-archive-stop":"000000010000000100000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] -[BACKUP-FULL-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000.gz -000000010000000100000001-0000000000000000000000000000000000000000 -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000.gz -000000010000000100000004-0000000000000000000000000000000000000000 -000000010000000100000005-0000000000000000000000000000000000000000.gz - -Expire oldest full backup, archive expire falls on segment major boundary -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=full --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=full --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 INFO: repo1: expire full backup set [BACKUP-FULL-1], [BACKUP-INCR-1] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-1] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-1] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-2], start = 000000010000000100000000 -P00 INFO: repo1: 9.2-1 remove archive, start = 0000000100000000, stop = 0000000100000000 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000000","backup-archive-stop":"000000010000000100000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000.gz -000000010000000100000001-0000000000000000000000000000000000000000 -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000.gz -000000010000000100000004-0000000000000000000000000000000000000000 -000000010000000100000005-0000000000000000000000000000000000000000.gz - -* diff backup: label = [BACKUP-DIFF-1], prior = [BACKUP-FULL-2], start = 000000010000000100000006, stop = 000000010000000100000008 -* diff backup: label = [BACKUP-DIFF-2], prior = [BACKUP-DIFF-1], start = 00000001000000010000000C, stop = 00000001000000020000000C -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000000","backup-archive-stop":"000000010000000100000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000006","backup-archive-stop":"000000010000000100000008","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000010000000C","backup-archive-stop":"00000001000000020000000C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] -[BACKUP-DIFF-1] -[BACKUP-DIFF-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000.gz -000000010000000100000001-0000000000000000000000000000000000000000 -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000.gz -000000010000000100000004-0000000000000000000000000000000000000000 -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000.gz -000000010000000100000007-0000000000000000000000000000000000000000 -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000.gz -00000001000000010000000A-0000000000000000000000000000000000000000 -00000001000000010000000B-0000000000000000000000000000000000000000.gz -00000001000000010000000C-0000000000000000000000000000000000000000.gz -00000001000000010000000D-0000000000000000000000000000000000000000 -00000001000000010000000E-0000000000000000000000000000000000000000.gz -00000001000000010000000F-0000000000000000000000000000000000000000 -000000010000000100000010-0000000000000000000000000000000000000000.gz -000000010000000100000011-0000000000000000000000000000000000000000 -000000010000000100000012-0000000000000000000000000000000000000000.gz -000000010000000100000013-0000000000000000000000000000000000000000 -000000010000000100000014-0000000000000000000000000000000000000000.gz -000000010000000100000015-0000000000000000000000000000000000000000 -000000010000000100000016-0000000000000000000000000000000000000000.gz -000000010000000100000017-0000000000000000000000000000000000000000 -000000010000000100000018-0000000000000000000000000000000000000000.gz -000000010000000100000019-0000000000000000000000000000000000000000 -00000001000000010000001A-0000000000000000000000000000000000000000.gz -00000001000000010000001B-0000000000000000000000000000000000000000 -00000001000000010000001C-0000000000000000000000000000000000000000.gz -00000001000000010000001D-0000000000000000000000000000000000000000 -00000001000000010000001E-0000000000000000000000000000000000000000.gz -00000001000000010000001F-0000000000000000000000000000000000000000 -000000010000000100000020-0000000000000000000000000000000000000000.gz -000000010000000100000021-0000000000000000000000000000000000000000 -000000010000000100000022-0000000000000000000000000000000000000000.gz -000000010000000100000023-0000000000000000000000000000000000000000 -000000010000000100000024-0000000000000000000000000000000000000000.gz -000000010000000100000025-0000000000000000000000000000000000000000 -000000010000000100000026-0000000000000000000000000000000000000000.gz -000000010000000100000027-0000000000000000000000000000000000000000 -000000010000000100000028-0000000000000000000000000000000000000000.gz -000000010000000100000029-0000000000000000000000000000000000000000 -00000001000000010000002A-0000000000000000000000000000000000000000.gz -00000001000000010000002B-0000000000000000000000000000000000000000 -00000001000000010000002C-0000000000000000000000000000000000000000.gz -00000001000000010000002D-0000000000000000000000000000000000000000 -00000001000000010000002E-0000000000000000000000000000000000000000.gz -00000001000000010000002F-0000000000000000000000000000000000000000 -000000010000000100000030-0000000000000000000000000000000000000000.gz -000000010000000100000031-0000000000000000000000000000000000000000 -000000010000000100000032-0000000000000000000000000000000000000000.gz -000000010000000100000033-0000000000000000000000000000000000000000 -000000010000000100000034-0000000000000000000000000000000000000000.gz -000000010000000100000035-0000000000000000000000000000000000000000 -000000010000000100000036-0000000000000000000000000000000000000000.gz -000000010000000100000037-0000000000000000000000000000000000000000 -000000010000000100000038-0000000000000000000000000000000000000000.gz -000000010000000100000039-0000000000000000000000000000000000000000 -00000001000000010000003A-0000000000000000000000000000000000000000.gz -00000001000000010000003B-0000000000000000000000000000000000000000 -00000001000000010000003C-0000000000000000000000000000000000000000.gz -00000001000000010000003D-0000000000000000000000000000000000000000 -00000001000000010000003E-0000000000000000000000000000000000000000.gz -00000001000000010000003F-0000000000000000000000000000000000000000 -000000010000000100000040-0000000000000000000000000000000000000000.gz -000000010000000100000041-0000000000000000000000000000000000000000 -000000010000000100000042-0000000000000000000000000000000000000000.gz -000000010000000100000043-0000000000000000000000000000000000000000 -000000010000000100000044-0000000000000000000000000000000000000000.gz -000000010000000100000045-0000000000000000000000000000000000000000 -000000010000000100000046-0000000000000000000000000000000000000000.gz -000000010000000100000047-0000000000000000000000000000000000000000 -000000010000000100000048-0000000000000000000000000000000000000000.gz -000000010000000100000049-0000000000000000000000000000000000000000 -00000001000000010000004A-0000000000000000000000000000000000000000.gz -00000001000000010000004B-0000000000000000000000000000000000000000 -00000001000000010000004C-0000000000000000000000000000000000000000.gz -00000001000000010000004D-0000000000000000000000000000000000000000 -00000001000000010000004E-0000000000000000000000000000000000000000.gz -00000001000000010000004F-0000000000000000000000000000000000000000 -000000010000000100000050-0000000000000000000000000000000000000000.gz -000000010000000100000051-0000000000000000000000000000000000000000 -000000010000000100000052-0000000000000000000000000000000000000000.gz -000000010000000100000053-0000000000000000000000000000000000000000 -000000010000000100000054-0000000000000000000000000000000000000000.gz -000000010000000100000055-0000000000000000000000000000000000000000 -000000010000000100000056-0000000000000000000000000000000000000000.gz -000000010000000100000057-0000000000000000000000000000000000000000 -000000010000000100000058-0000000000000000000000000000000000000000.gz -000000010000000100000059-0000000000000000000000000000000000000000 -00000001000000010000005A-0000000000000000000000000000000000000000.gz -00000001000000010000005B-0000000000000000000000000000000000000000 -00000001000000010000005C-0000000000000000000000000000000000000000.gz -00000001000000010000005D-0000000000000000000000000000000000000000 -00000001000000010000005E-0000000000000000000000000000000000000000.gz -00000001000000010000005F-0000000000000000000000000000000000000000 -000000010000000100000060-0000000000000000000000000000000000000000.gz -000000010000000100000061-0000000000000000000000000000000000000000 -000000010000000100000062-0000000000000000000000000000000000000000.gz -000000010000000100000063-0000000000000000000000000000000000000000 -000000010000000100000064-0000000000000000000000000000000000000000.gz -000000010000000100000065-0000000000000000000000000000000000000000 -000000010000000100000066-0000000000000000000000000000000000000000.gz -000000010000000100000067-0000000000000000000000000000000000000000 -000000010000000100000068-0000000000000000000000000000000000000000.gz -000000010000000100000069-0000000000000000000000000000000000000000 -00000001000000010000006A-0000000000000000000000000000000000000000.gz -00000001000000010000006B-0000000000000000000000000000000000000000 -00000001000000010000006C-0000000000000000000000000000000000000000.gz -00000001000000010000006D-0000000000000000000000000000000000000000 -00000001000000010000006E-0000000000000000000000000000000000000000.gz -00000001000000010000006F-0000000000000000000000000000000000000000 -000000010000000100000070-0000000000000000000000000000000000000000.gz -000000010000000100000071-0000000000000000000000000000000000000000 -000000010000000100000072-0000000000000000000000000000000000000000.gz -000000010000000100000073-0000000000000000000000000000000000000000 -000000010000000100000074-0000000000000000000000000000000000000000.gz -000000010000000100000075-0000000000000000000000000000000000000000 -000000010000000100000076-0000000000000000000000000000000000000000.gz -000000010000000100000077-0000000000000000000000000000000000000000 -000000010000000100000078-0000000000000000000000000000000000000000.gz -000000010000000100000079-0000000000000000000000000000000000000000 -00000001000000010000007A-0000000000000000000000000000000000000000.gz -00000001000000010000007B-0000000000000000000000000000000000000000 -00000001000000010000007C-0000000000000000000000000000000000000000.gz -00000001000000010000007D-0000000000000000000000000000000000000000 -00000001000000010000007E-0000000000000000000000000000000000000000.gz -00000001000000010000007F-0000000000000000000000000000000000000000 -000000010000000100000080-0000000000000000000000000000000000000000.gz -000000010000000100000081-0000000000000000000000000000000000000000 -000000010000000100000082-0000000000000000000000000000000000000000.gz -000000010000000100000083-0000000000000000000000000000000000000000 -000000010000000100000084-0000000000000000000000000000000000000000.gz -000000010000000100000085-0000000000000000000000000000000000000000 -000000010000000100000086-0000000000000000000000000000000000000000.gz -000000010000000100000087-0000000000000000000000000000000000000000 -000000010000000100000088-0000000000000000000000000000000000000000.gz -000000010000000100000089-0000000000000000000000000000000000000000 -00000001000000010000008A-0000000000000000000000000000000000000000.gz -00000001000000010000008B-0000000000000000000000000000000000000000 -00000001000000010000008C-0000000000000000000000000000000000000000.gz -00000001000000010000008D-0000000000000000000000000000000000000000 -00000001000000010000008E-0000000000000000000000000000000000000000.gz -00000001000000010000008F-0000000000000000000000000000000000000000 -000000010000000100000090-0000000000000000000000000000000000000000.gz -000000010000000100000091-0000000000000000000000000000000000000000 -000000010000000100000092-0000000000000000000000000000000000000000.gz -000000010000000100000093-0000000000000000000000000000000000000000 -000000010000000100000094-0000000000000000000000000000000000000000.gz -000000010000000100000095-0000000000000000000000000000000000000000 -000000010000000100000096-0000000000000000000000000000000000000000.gz -000000010000000100000097-0000000000000000000000000000000000000000 -000000010000000100000098-0000000000000000000000000000000000000000.gz -000000010000000100000099-0000000000000000000000000000000000000000 -00000001000000010000009A-0000000000000000000000000000000000000000.gz -00000001000000010000009B-0000000000000000000000000000000000000000 -00000001000000010000009C-0000000000000000000000000000000000000000.gz -00000001000000010000009D-0000000000000000000000000000000000000000 -00000001000000010000009E-0000000000000000000000000000000000000000.gz -00000001000000010000009F-0000000000000000000000000000000000000000 -0000000100000001000000A0-0000000000000000000000000000000000000000.gz -0000000100000001000000A1-0000000000000000000000000000000000000000 -0000000100000001000000A2-0000000000000000000000000000000000000000.gz -0000000100000001000000A3-0000000000000000000000000000000000000000 -0000000100000001000000A4-0000000000000000000000000000000000000000.gz -0000000100000001000000A5-0000000000000000000000000000000000000000 -0000000100000001000000A6-0000000000000000000000000000000000000000.gz -0000000100000001000000A7-0000000000000000000000000000000000000000 -0000000100000001000000A8-0000000000000000000000000000000000000000.gz -0000000100000001000000A9-0000000000000000000000000000000000000000 -0000000100000001000000AA-0000000000000000000000000000000000000000.gz -0000000100000001000000AB-0000000000000000000000000000000000000000 -0000000100000001000000AC-0000000000000000000000000000000000000000.gz -0000000100000001000000AD-0000000000000000000000000000000000000000 -0000000100000001000000AE-0000000000000000000000000000000000000000.gz -0000000100000001000000AF-0000000000000000000000000000000000000000 -0000000100000001000000B0-0000000000000000000000000000000000000000.gz -0000000100000001000000B1-0000000000000000000000000000000000000000 -0000000100000001000000B2-0000000000000000000000000000000000000000.gz -0000000100000001000000B3-0000000000000000000000000000000000000000 -0000000100000001000000B4-0000000000000000000000000000000000000000.gz -0000000100000001000000B5-0000000000000000000000000000000000000000 -0000000100000001000000B6-0000000000000000000000000000000000000000.gz -0000000100000001000000B7-0000000000000000000000000000000000000000 -0000000100000001000000B8-0000000000000000000000000000000000000000.gz -0000000100000001000000B9-0000000000000000000000000000000000000000 -0000000100000001000000BA-0000000000000000000000000000000000000000.gz -0000000100000001000000BB-0000000000000000000000000000000000000000 -0000000100000001000000BC-0000000000000000000000000000000000000000.gz -0000000100000001000000BD-0000000000000000000000000000000000000000 -0000000100000001000000BE-0000000000000000000000000000000000000000.gz -0000000100000001000000BF-0000000000000000000000000000000000000000 -0000000100000001000000C0-0000000000000000000000000000000000000000.gz -0000000100000001000000C1-0000000000000000000000000000000000000000 -0000000100000001000000C2-0000000000000000000000000000000000000000.gz -0000000100000001000000C3-0000000000000000000000000000000000000000 -0000000100000001000000C4-0000000000000000000000000000000000000000.gz -0000000100000001000000C5-0000000000000000000000000000000000000000 -0000000100000001000000C6-0000000000000000000000000000000000000000.gz -0000000100000001000000C7-0000000000000000000000000000000000000000 -0000000100000001000000C8-0000000000000000000000000000000000000000.gz -0000000100000001000000C9-0000000000000000000000000000000000000000 -0000000100000001000000CA-0000000000000000000000000000000000000000.gz -0000000100000001000000CB-0000000000000000000000000000000000000000 -0000000100000001000000CC-0000000000000000000000000000000000000000.gz -0000000100000001000000CD-0000000000000000000000000000000000000000 -0000000100000001000000CE-0000000000000000000000000000000000000000.gz -0000000100000001000000CF-0000000000000000000000000000000000000000 -0000000100000001000000D0-0000000000000000000000000000000000000000.gz -0000000100000001000000D1-0000000000000000000000000000000000000000 -0000000100000001000000D2-0000000000000000000000000000000000000000.gz -0000000100000001000000D3-0000000000000000000000000000000000000000 -0000000100000001000000D4-0000000000000000000000000000000000000000.gz -0000000100000001000000D5-0000000000000000000000000000000000000000 -0000000100000001000000D6-0000000000000000000000000000000000000000.gz -0000000100000001000000D7-0000000000000000000000000000000000000000 -0000000100000001000000D8-0000000000000000000000000000000000000000.gz -0000000100000001000000D9-0000000000000000000000000000000000000000 -0000000100000001000000DA-0000000000000000000000000000000000000000.gz -0000000100000001000000DB-0000000000000000000000000000000000000000 -0000000100000001000000DC-0000000000000000000000000000000000000000.gz -0000000100000001000000DD-0000000000000000000000000000000000000000 -0000000100000001000000DE-0000000000000000000000000000000000000000.gz -0000000100000001000000DF-0000000000000000000000000000000000000000 -0000000100000001000000E0-0000000000000000000000000000000000000000.gz -0000000100000001000000E1-0000000000000000000000000000000000000000 -0000000100000001000000E2-0000000000000000000000000000000000000000.gz -0000000100000001000000E3-0000000000000000000000000000000000000000 -0000000100000001000000E4-0000000000000000000000000000000000000000.gz -0000000100000001000000E5-0000000000000000000000000000000000000000 -0000000100000001000000E6-0000000000000000000000000000000000000000.gz -0000000100000001000000E7-0000000000000000000000000000000000000000 -0000000100000001000000E8-0000000000000000000000000000000000000000.gz -0000000100000001000000E9-0000000000000000000000000000000000000000 -0000000100000001000000EA-0000000000000000000000000000000000000000.gz -0000000100000001000000EB-0000000000000000000000000000000000000000 -0000000100000001000000EC-0000000000000000000000000000000000000000.gz -0000000100000001000000ED-0000000000000000000000000000000000000000 -0000000100000001000000EE-0000000000000000000000000000000000000000.gz -0000000100000001000000EF-0000000000000000000000000000000000000000 -0000000100000001000000F0-0000000000000000000000000000000000000000.gz -0000000100000001000000F1-0000000000000000000000000000000000000000 -0000000100000001000000F2-0000000000000000000000000000000000000000.gz -0000000100000001000000F3-0000000000000000000000000000000000000000 -0000000100000001000000F4-0000000000000000000000000000000000000000.gz -0000000100000001000000F5-0000000000000000000000000000000000000000 -0000000100000001000000F6-0000000000000000000000000000000000000000.gz -0000000100000001000000F7-0000000000000000000000000000000000000000 -0000000100000001000000F8-0000000000000000000000000000000000000000.gz -0000000100000001000000F9-0000000000000000000000000000000000000000 -0000000100000001000000FA-0000000000000000000000000000000000000000.gz -0000000100000001000000FB-0000000000000000000000000000000000000000 -0000000100000001000000FC-0000000000000000000000000000000000000000.gz -0000000100000001000000FD-0000000000000000000000000000000000000000 -0000000100000001000000FE-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000000-0000000000000000000000000000000000000000 -000000010000000200000001-0000000000000000000000000000000000000000.gz -000000010000000200000002-0000000000000000000000000000000000000000 -000000010000000200000003-0000000000000000000000000000000000000000.gz -000000010000000200000004-0000000000000000000000000000000000000000 -000000010000000200000005-0000000000000000000000000000000000000000.gz -000000010000000200000006-0000000000000000000000000000000000000000 -000000010000000200000007-0000000000000000000000000000000000000000.gz -000000010000000200000008-0000000000000000000000000000000000000000 -000000010000000200000009-0000000000000000000000000000000000000000.gz -00000001000000020000000A-0000000000000000000000000000000000000000 -00000001000000020000000B-0000000000000000000000000000000000000000.gz -00000001000000020000000C-0000000000000000000000000000000000000000 -00000001000000020000000D-0000000000000000000000000000000000000000.gz -00000001000000020000000E-0000000000000000000000000000000000000000 -00000001000000020000000F-0000000000000000000000000000000000000000.gz - -Expire oldest full backup -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=full --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=full --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 INFO: repo1: expire diff backup [BACKUP-DIFF-1] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-1] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-2], start = 000000010000000100000000 -P00 INFO: repo1: 9.2-1 no archive to remove -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000000","backup-archive-stop":"000000010000000100000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000010000000C","backup-archive-stop":"00000001000000020000000C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] -[BACKUP-DIFF-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000.gz -000000010000000100000001-0000000000000000000000000000000000000000 -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000.gz -000000010000000100000004-0000000000000000000000000000000000000000 -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000.gz -000000010000000100000007-0000000000000000000000000000000000000000 -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000.gz -00000001000000010000000A-0000000000000000000000000000000000000000 -00000001000000010000000B-0000000000000000000000000000000000000000.gz -00000001000000010000000C-0000000000000000000000000000000000000000.gz -00000001000000010000000D-0000000000000000000000000000000000000000 -00000001000000010000000E-0000000000000000000000000000000000000000.gz -00000001000000010000000F-0000000000000000000000000000000000000000 -000000010000000100000010-0000000000000000000000000000000000000000.gz -000000010000000100000011-0000000000000000000000000000000000000000 -000000010000000100000012-0000000000000000000000000000000000000000.gz -000000010000000100000013-0000000000000000000000000000000000000000 -000000010000000100000014-0000000000000000000000000000000000000000.gz -000000010000000100000015-0000000000000000000000000000000000000000 -000000010000000100000016-0000000000000000000000000000000000000000.gz -000000010000000100000017-0000000000000000000000000000000000000000 -000000010000000100000018-0000000000000000000000000000000000000000.gz -000000010000000100000019-0000000000000000000000000000000000000000 -00000001000000010000001A-0000000000000000000000000000000000000000.gz -00000001000000010000001B-0000000000000000000000000000000000000000 -00000001000000010000001C-0000000000000000000000000000000000000000.gz -00000001000000010000001D-0000000000000000000000000000000000000000 -00000001000000010000001E-0000000000000000000000000000000000000000.gz -00000001000000010000001F-0000000000000000000000000000000000000000 -000000010000000100000020-0000000000000000000000000000000000000000.gz -000000010000000100000021-0000000000000000000000000000000000000000 -000000010000000100000022-0000000000000000000000000000000000000000.gz -000000010000000100000023-0000000000000000000000000000000000000000 -000000010000000100000024-0000000000000000000000000000000000000000.gz -000000010000000100000025-0000000000000000000000000000000000000000 -000000010000000100000026-0000000000000000000000000000000000000000.gz -000000010000000100000027-0000000000000000000000000000000000000000 -000000010000000100000028-0000000000000000000000000000000000000000.gz -000000010000000100000029-0000000000000000000000000000000000000000 -00000001000000010000002A-0000000000000000000000000000000000000000.gz -00000001000000010000002B-0000000000000000000000000000000000000000 -00000001000000010000002C-0000000000000000000000000000000000000000.gz -00000001000000010000002D-0000000000000000000000000000000000000000 -00000001000000010000002E-0000000000000000000000000000000000000000.gz -00000001000000010000002F-0000000000000000000000000000000000000000 -000000010000000100000030-0000000000000000000000000000000000000000.gz -000000010000000100000031-0000000000000000000000000000000000000000 -000000010000000100000032-0000000000000000000000000000000000000000.gz -000000010000000100000033-0000000000000000000000000000000000000000 -000000010000000100000034-0000000000000000000000000000000000000000.gz -000000010000000100000035-0000000000000000000000000000000000000000 -000000010000000100000036-0000000000000000000000000000000000000000.gz -000000010000000100000037-0000000000000000000000000000000000000000 -000000010000000100000038-0000000000000000000000000000000000000000.gz -000000010000000100000039-0000000000000000000000000000000000000000 -00000001000000010000003A-0000000000000000000000000000000000000000.gz -00000001000000010000003B-0000000000000000000000000000000000000000 -00000001000000010000003C-0000000000000000000000000000000000000000.gz -00000001000000010000003D-0000000000000000000000000000000000000000 -00000001000000010000003E-0000000000000000000000000000000000000000.gz -00000001000000010000003F-0000000000000000000000000000000000000000 -000000010000000100000040-0000000000000000000000000000000000000000.gz -000000010000000100000041-0000000000000000000000000000000000000000 -000000010000000100000042-0000000000000000000000000000000000000000.gz -000000010000000100000043-0000000000000000000000000000000000000000 -000000010000000100000044-0000000000000000000000000000000000000000.gz -000000010000000100000045-0000000000000000000000000000000000000000 -000000010000000100000046-0000000000000000000000000000000000000000.gz -000000010000000100000047-0000000000000000000000000000000000000000 -000000010000000100000048-0000000000000000000000000000000000000000.gz -000000010000000100000049-0000000000000000000000000000000000000000 -00000001000000010000004A-0000000000000000000000000000000000000000.gz -00000001000000010000004B-0000000000000000000000000000000000000000 -00000001000000010000004C-0000000000000000000000000000000000000000.gz -00000001000000010000004D-0000000000000000000000000000000000000000 -00000001000000010000004E-0000000000000000000000000000000000000000.gz -00000001000000010000004F-0000000000000000000000000000000000000000 -000000010000000100000050-0000000000000000000000000000000000000000.gz -000000010000000100000051-0000000000000000000000000000000000000000 -000000010000000100000052-0000000000000000000000000000000000000000.gz -000000010000000100000053-0000000000000000000000000000000000000000 -000000010000000100000054-0000000000000000000000000000000000000000.gz -000000010000000100000055-0000000000000000000000000000000000000000 -000000010000000100000056-0000000000000000000000000000000000000000.gz -000000010000000100000057-0000000000000000000000000000000000000000 -000000010000000100000058-0000000000000000000000000000000000000000.gz -000000010000000100000059-0000000000000000000000000000000000000000 -00000001000000010000005A-0000000000000000000000000000000000000000.gz -00000001000000010000005B-0000000000000000000000000000000000000000 -00000001000000010000005C-0000000000000000000000000000000000000000.gz -00000001000000010000005D-0000000000000000000000000000000000000000 -00000001000000010000005E-0000000000000000000000000000000000000000.gz -00000001000000010000005F-0000000000000000000000000000000000000000 -000000010000000100000060-0000000000000000000000000000000000000000.gz -000000010000000100000061-0000000000000000000000000000000000000000 -000000010000000100000062-0000000000000000000000000000000000000000.gz -000000010000000100000063-0000000000000000000000000000000000000000 -000000010000000100000064-0000000000000000000000000000000000000000.gz -000000010000000100000065-0000000000000000000000000000000000000000 -000000010000000100000066-0000000000000000000000000000000000000000.gz -000000010000000100000067-0000000000000000000000000000000000000000 -000000010000000100000068-0000000000000000000000000000000000000000.gz -000000010000000100000069-0000000000000000000000000000000000000000 -00000001000000010000006A-0000000000000000000000000000000000000000.gz -00000001000000010000006B-0000000000000000000000000000000000000000 -00000001000000010000006C-0000000000000000000000000000000000000000.gz -00000001000000010000006D-0000000000000000000000000000000000000000 -00000001000000010000006E-0000000000000000000000000000000000000000.gz -00000001000000010000006F-0000000000000000000000000000000000000000 -000000010000000100000070-0000000000000000000000000000000000000000.gz -000000010000000100000071-0000000000000000000000000000000000000000 -000000010000000100000072-0000000000000000000000000000000000000000.gz -000000010000000100000073-0000000000000000000000000000000000000000 -000000010000000100000074-0000000000000000000000000000000000000000.gz -000000010000000100000075-0000000000000000000000000000000000000000 -000000010000000100000076-0000000000000000000000000000000000000000.gz -000000010000000100000077-0000000000000000000000000000000000000000 -000000010000000100000078-0000000000000000000000000000000000000000.gz -000000010000000100000079-0000000000000000000000000000000000000000 -00000001000000010000007A-0000000000000000000000000000000000000000.gz -00000001000000010000007B-0000000000000000000000000000000000000000 -00000001000000010000007C-0000000000000000000000000000000000000000.gz -00000001000000010000007D-0000000000000000000000000000000000000000 -00000001000000010000007E-0000000000000000000000000000000000000000.gz -00000001000000010000007F-0000000000000000000000000000000000000000 -000000010000000100000080-0000000000000000000000000000000000000000.gz -000000010000000100000081-0000000000000000000000000000000000000000 -000000010000000100000082-0000000000000000000000000000000000000000.gz -000000010000000100000083-0000000000000000000000000000000000000000 -000000010000000100000084-0000000000000000000000000000000000000000.gz -000000010000000100000085-0000000000000000000000000000000000000000 -000000010000000100000086-0000000000000000000000000000000000000000.gz -000000010000000100000087-0000000000000000000000000000000000000000 -000000010000000100000088-0000000000000000000000000000000000000000.gz -000000010000000100000089-0000000000000000000000000000000000000000 -00000001000000010000008A-0000000000000000000000000000000000000000.gz -00000001000000010000008B-0000000000000000000000000000000000000000 -00000001000000010000008C-0000000000000000000000000000000000000000.gz -00000001000000010000008D-0000000000000000000000000000000000000000 -00000001000000010000008E-0000000000000000000000000000000000000000.gz -00000001000000010000008F-0000000000000000000000000000000000000000 -000000010000000100000090-0000000000000000000000000000000000000000.gz -000000010000000100000091-0000000000000000000000000000000000000000 -000000010000000100000092-0000000000000000000000000000000000000000.gz -000000010000000100000093-0000000000000000000000000000000000000000 -000000010000000100000094-0000000000000000000000000000000000000000.gz -000000010000000100000095-0000000000000000000000000000000000000000 -000000010000000100000096-0000000000000000000000000000000000000000.gz -000000010000000100000097-0000000000000000000000000000000000000000 -000000010000000100000098-0000000000000000000000000000000000000000.gz -000000010000000100000099-0000000000000000000000000000000000000000 -00000001000000010000009A-0000000000000000000000000000000000000000.gz -00000001000000010000009B-0000000000000000000000000000000000000000 -00000001000000010000009C-0000000000000000000000000000000000000000.gz -00000001000000010000009D-0000000000000000000000000000000000000000 -00000001000000010000009E-0000000000000000000000000000000000000000.gz -00000001000000010000009F-0000000000000000000000000000000000000000 -0000000100000001000000A0-0000000000000000000000000000000000000000.gz -0000000100000001000000A1-0000000000000000000000000000000000000000 -0000000100000001000000A2-0000000000000000000000000000000000000000.gz -0000000100000001000000A3-0000000000000000000000000000000000000000 -0000000100000001000000A4-0000000000000000000000000000000000000000.gz -0000000100000001000000A5-0000000000000000000000000000000000000000 -0000000100000001000000A6-0000000000000000000000000000000000000000.gz -0000000100000001000000A7-0000000000000000000000000000000000000000 -0000000100000001000000A8-0000000000000000000000000000000000000000.gz -0000000100000001000000A9-0000000000000000000000000000000000000000 -0000000100000001000000AA-0000000000000000000000000000000000000000.gz -0000000100000001000000AB-0000000000000000000000000000000000000000 -0000000100000001000000AC-0000000000000000000000000000000000000000.gz -0000000100000001000000AD-0000000000000000000000000000000000000000 -0000000100000001000000AE-0000000000000000000000000000000000000000.gz -0000000100000001000000AF-0000000000000000000000000000000000000000 -0000000100000001000000B0-0000000000000000000000000000000000000000.gz -0000000100000001000000B1-0000000000000000000000000000000000000000 -0000000100000001000000B2-0000000000000000000000000000000000000000.gz -0000000100000001000000B3-0000000000000000000000000000000000000000 -0000000100000001000000B4-0000000000000000000000000000000000000000.gz -0000000100000001000000B5-0000000000000000000000000000000000000000 -0000000100000001000000B6-0000000000000000000000000000000000000000.gz -0000000100000001000000B7-0000000000000000000000000000000000000000 -0000000100000001000000B8-0000000000000000000000000000000000000000.gz -0000000100000001000000B9-0000000000000000000000000000000000000000 -0000000100000001000000BA-0000000000000000000000000000000000000000.gz -0000000100000001000000BB-0000000000000000000000000000000000000000 -0000000100000001000000BC-0000000000000000000000000000000000000000.gz -0000000100000001000000BD-0000000000000000000000000000000000000000 -0000000100000001000000BE-0000000000000000000000000000000000000000.gz -0000000100000001000000BF-0000000000000000000000000000000000000000 -0000000100000001000000C0-0000000000000000000000000000000000000000.gz -0000000100000001000000C1-0000000000000000000000000000000000000000 -0000000100000001000000C2-0000000000000000000000000000000000000000.gz -0000000100000001000000C3-0000000000000000000000000000000000000000 -0000000100000001000000C4-0000000000000000000000000000000000000000.gz -0000000100000001000000C5-0000000000000000000000000000000000000000 -0000000100000001000000C6-0000000000000000000000000000000000000000.gz -0000000100000001000000C7-0000000000000000000000000000000000000000 -0000000100000001000000C8-0000000000000000000000000000000000000000.gz -0000000100000001000000C9-0000000000000000000000000000000000000000 -0000000100000001000000CA-0000000000000000000000000000000000000000.gz -0000000100000001000000CB-0000000000000000000000000000000000000000 -0000000100000001000000CC-0000000000000000000000000000000000000000.gz -0000000100000001000000CD-0000000000000000000000000000000000000000 -0000000100000001000000CE-0000000000000000000000000000000000000000.gz -0000000100000001000000CF-0000000000000000000000000000000000000000 -0000000100000001000000D0-0000000000000000000000000000000000000000.gz -0000000100000001000000D1-0000000000000000000000000000000000000000 -0000000100000001000000D2-0000000000000000000000000000000000000000.gz -0000000100000001000000D3-0000000000000000000000000000000000000000 -0000000100000001000000D4-0000000000000000000000000000000000000000.gz -0000000100000001000000D5-0000000000000000000000000000000000000000 -0000000100000001000000D6-0000000000000000000000000000000000000000.gz -0000000100000001000000D7-0000000000000000000000000000000000000000 -0000000100000001000000D8-0000000000000000000000000000000000000000.gz -0000000100000001000000D9-0000000000000000000000000000000000000000 -0000000100000001000000DA-0000000000000000000000000000000000000000.gz -0000000100000001000000DB-0000000000000000000000000000000000000000 -0000000100000001000000DC-0000000000000000000000000000000000000000.gz -0000000100000001000000DD-0000000000000000000000000000000000000000 -0000000100000001000000DE-0000000000000000000000000000000000000000.gz -0000000100000001000000DF-0000000000000000000000000000000000000000 -0000000100000001000000E0-0000000000000000000000000000000000000000.gz -0000000100000001000000E1-0000000000000000000000000000000000000000 -0000000100000001000000E2-0000000000000000000000000000000000000000.gz -0000000100000001000000E3-0000000000000000000000000000000000000000 -0000000100000001000000E4-0000000000000000000000000000000000000000.gz -0000000100000001000000E5-0000000000000000000000000000000000000000 -0000000100000001000000E6-0000000000000000000000000000000000000000.gz -0000000100000001000000E7-0000000000000000000000000000000000000000 -0000000100000001000000E8-0000000000000000000000000000000000000000.gz -0000000100000001000000E9-0000000000000000000000000000000000000000 -0000000100000001000000EA-0000000000000000000000000000000000000000.gz -0000000100000001000000EB-0000000000000000000000000000000000000000 -0000000100000001000000EC-0000000000000000000000000000000000000000.gz -0000000100000001000000ED-0000000000000000000000000000000000000000 -0000000100000001000000EE-0000000000000000000000000000000000000000.gz -0000000100000001000000EF-0000000000000000000000000000000000000000 -0000000100000001000000F0-0000000000000000000000000000000000000000.gz -0000000100000001000000F1-0000000000000000000000000000000000000000 -0000000100000001000000F2-0000000000000000000000000000000000000000.gz -0000000100000001000000F3-0000000000000000000000000000000000000000 -0000000100000001000000F4-0000000000000000000000000000000000000000.gz -0000000100000001000000F5-0000000000000000000000000000000000000000 -0000000100000001000000F6-0000000000000000000000000000000000000000.gz -0000000100000001000000F7-0000000000000000000000000000000000000000 -0000000100000001000000F8-0000000000000000000000000000000000000000.gz -0000000100000001000000F9-0000000000000000000000000000000000000000 -0000000100000001000000FA-0000000000000000000000000000000000000000.gz -0000000100000001000000FB-0000000000000000000000000000000000000000 -0000000100000001000000FC-0000000000000000000000000000000000000000.gz -0000000100000001000000FD-0000000000000000000000000000000000000000 -0000000100000001000000FE-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000000-0000000000000000000000000000000000000000 -000000010000000200000001-0000000000000000000000000000000000000000.gz -000000010000000200000002-0000000000000000000000000000000000000000 -000000010000000200000003-0000000000000000000000000000000000000000.gz -000000010000000200000004-0000000000000000000000000000000000000000 -000000010000000200000005-0000000000000000000000000000000000000000.gz -000000010000000200000006-0000000000000000000000000000000000000000 -000000010000000200000007-0000000000000000000000000000000000000000.gz -000000010000000200000008-0000000000000000000000000000000000000000 -000000010000000200000009-0000000000000000000000000000000000000000.gz -00000001000000020000000A-0000000000000000000000000000000000000000 -00000001000000020000000B-0000000000000000000000000000000000000000.gz -00000001000000020000000C-0000000000000000000000000000000000000000 -00000001000000020000000D-0000000000000000000000000000000000000000.gz -00000001000000020000000E-0000000000000000000000000000000000000000 -00000001000000020000000F-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-3], start = 000000010000000200000010, stop = 000000010000000200000012 -* diff backup: label = [BACKUP-DIFF-3], prior = [BACKUP-FULL-3], start = 000000010000000200000016, stop = 000000010000000200000018 -* incr backup: label = [BACKUP-INCR-2], prior = [BACKUP-DIFF-3], start = 00000001000000020000001A, stop = 00000001000000020000001C -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000000","backup-archive-stop":"000000010000000100000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000010000000C","backup-archive-stop":"00000001000000020000000C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000016","backup-archive-stop":"000000010000000200000018","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001A","backup-archive-stop":"00000001000000020000001C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] -[BACKUP-DIFF-2] -[BACKUP-FULL-3] -[BACKUP-DIFF-3] -[BACKUP-INCR-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000.gz -000000010000000100000001-0000000000000000000000000000000000000000 -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000.gz -000000010000000100000004-0000000000000000000000000000000000000000 -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000.gz -000000010000000100000007-0000000000000000000000000000000000000000 -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000.gz -00000001000000010000000A-0000000000000000000000000000000000000000 -00000001000000010000000B-0000000000000000000000000000000000000000.gz -00000001000000010000000C-0000000000000000000000000000000000000000.gz -00000001000000010000000D-0000000000000000000000000000000000000000 -00000001000000010000000E-0000000000000000000000000000000000000000.gz -00000001000000010000000F-0000000000000000000000000000000000000000 -000000010000000100000010-0000000000000000000000000000000000000000.gz -000000010000000100000011-0000000000000000000000000000000000000000 -000000010000000100000012-0000000000000000000000000000000000000000.gz -000000010000000100000013-0000000000000000000000000000000000000000 -000000010000000100000014-0000000000000000000000000000000000000000.gz -000000010000000100000015-0000000000000000000000000000000000000000 -000000010000000100000016-0000000000000000000000000000000000000000.gz -000000010000000100000017-0000000000000000000000000000000000000000 -000000010000000100000018-0000000000000000000000000000000000000000.gz -000000010000000100000019-0000000000000000000000000000000000000000 -00000001000000010000001A-0000000000000000000000000000000000000000.gz -00000001000000010000001B-0000000000000000000000000000000000000000 -00000001000000010000001C-0000000000000000000000000000000000000000.gz -00000001000000010000001D-0000000000000000000000000000000000000000 -00000001000000010000001E-0000000000000000000000000000000000000000.gz -00000001000000010000001F-0000000000000000000000000000000000000000 -000000010000000100000020-0000000000000000000000000000000000000000.gz -000000010000000100000021-0000000000000000000000000000000000000000 -000000010000000100000022-0000000000000000000000000000000000000000.gz -000000010000000100000023-0000000000000000000000000000000000000000 -000000010000000100000024-0000000000000000000000000000000000000000.gz -000000010000000100000025-0000000000000000000000000000000000000000 -000000010000000100000026-0000000000000000000000000000000000000000.gz -000000010000000100000027-0000000000000000000000000000000000000000 -000000010000000100000028-0000000000000000000000000000000000000000.gz -000000010000000100000029-0000000000000000000000000000000000000000 -00000001000000010000002A-0000000000000000000000000000000000000000.gz -00000001000000010000002B-0000000000000000000000000000000000000000 -00000001000000010000002C-0000000000000000000000000000000000000000.gz -00000001000000010000002D-0000000000000000000000000000000000000000 -00000001000000010000002E-0000000000000000000000000000000000000000.gz -00000001000000010000002F-0000000000000000000000000000000000000000 -000000010000000100000030-0000000000000000000000000000000000000000.gz -000000010000000100000031-0000000000000000000000000000000000000000 -000000010000000100000032-0000000000000000000000000000000000000000.gz -000000010000000100000033-0000000000000000000000000000000000000000 -000000010000000100000034-0000000000000000000000000000000000000000.gz -000000010000000100000035-0000000000000000000000000000000000000000 -000000010000000100000036-0000000000000000000000000000000000000000.gz -000000010000000100000037-0000000000000000000000000000000000000000 -000000010000000100000038-0000000000000000000000000000000000000000.gz -000000010000000100000039-0000000000000000000000000000000000000000 -00000001000000010000003A-0000000000000000000000000000000000000000.gz -00000001000000010000003B-0000000000000000000000000000000000000000 -00000001000000010000003C-0000000000000000000000000000000000000000.gz -00000001000000010000003D-0000000000000000000000000000000000000000 -00000001000000010000003E-0000000000000000000000000000000000000000.gz -00000001000000010000003F-0000000000000000000000000000000000000000 -000000010000000100000040-0000000000000000000000000000000000000000.gz -000000010000000100000041-0000000000000000000000000000000000000000 -000000010000000100000042-0000000000000000000000000000000000000000.gz -000000010000000100000043-0000000000000000000000000000000000000000 -000000010000000100000044-0000000000000000000000000000000000000000.gz -000000010000000100000045-0000000000000000000000000000000000000000 -000000010000000100000046-0000000000000000000000000000000000000000.gz -000000010000000100000047-0000000000000000000000000000000000000000 -000000010000000100000048-0000000000000000000000000000000000000000.gz -000000010000000100000049-0000000000000000000000000000000000000000 -00000001000000010000004A-0000000000000000000000000000000000000000.gz -00000001000000010000004B-0000000000000000000000000000000000000000 -00000001000000010000004C-0000000000000000000000000000000000000000.gz -00000001000000010000004D-0000000000000000000000000000000000000000 -00000001000000010000004E-0000000000000000000000000000000000000000.gz -00000001000000010000004F-0000000000000000000000000000000000000000 -000000010000000100000050-0000000000000000000000000000000000000000.gz -000000010000000100000051-0000000000000000000000000000000000000000 -000000010000000100000052-0000000000000000000000000000000000000000.gz -000000010000000100000053-0000000000000000000000000000000000000000 -000000010000000100000054-0000000000000000000000000000000000000000.gz -000000010000000100000055-0000000000000000000000000000000000000000 -000000010000000100000056-0000000000000000000000000000000000000000.gz -000000010000000100000057-0000000000000000000000000000000000000000 -000000010000000100000058-0000000000000000000000000000000000000000.gz -000000010000000100000059-0000000000000000000000000000000000000000 -00000001000000010000005A-0000000000000000000000000000000000000000.gz -00000001000000010000005B-0000000000000000000000000000000000000000 -00000001000000010000005C-0000000000000000000000000000000000000000.gz -00000001000000010000005D-0000000000000000000000000000000000000000 -00000001000000010000005E-0000000000000000000000000000000000000000.gz -00000001000000010000005F-0000000000000000000000000000000000000000 -000000010000000100000060-0000000000000000000000000000000000000000.gz -000000010000000100000061-0000000000000000000000000000000000000000 -000000010000000100000062-0000000000000000000000000000000000000000.gz -000000010000000100000063-0000000000000000000000000000000000000000 -000000010000000100000064-0000000000000000000000000000000000000000.gz -000000010000000100000065-0000000000000000000000000000000000000000 -000000010000000100000066-0000000000000000000000000000000000000000.gz -000000010000000100000067-0000000000000000000000000000000000000000 -000000010000000100000068-0000000000000000000000000000000000000000.gz -000000010000000100000069-0000000000000000000000000000000000000000 -00000001000000010000006A-0000000000000000000000000000000000000000.gz -00000001000000010000006B-0000000000000000000000000000000000000000 -00000001000000010000006C-0000000000000000000000000000000000000000.gz -00000001000000010000006D-0000000000000000000000000000000000000000 -00000001000000010000006E-0000000000000000000000000000000000000000.gz -00000001000000010000006F-0000000000000000000000000000000000000000 -000000010000000100000070-0000000000000000000000000000000000000000.gz -000000010000000100000071-0000000000000000000000000000000000000000 -000000010000000100000072-0000000000000000000000000000000000000000.gz -000000010000000100000073-0000000000000000000000000000000000000000 -000000010000000100000074-0000000000000000000000000000000000000000.gz -000000010000000100000075-0000000000000000000000000000000000000000 -000000010000000100000076-0000000000000000000000000000000000000000.gz -000000010000000100000077-0000000000000000000000000000000000000000 -000000010000000100000078-0000000000000000000000000000000000000000.gz -000000010000000100000079-0000000000000000000000000000000000000000 -00000001000000010000007A-0000000000000000000000000000000000000000.gz -00000001000000010000007B-0000000000000000000000000000000000000000 -00000001000000010000007C-0000000000000000000000000000000000000000.gz -00000001000000010000007D-0000000000000000000000000000000000000000 -00000001000000010000007E-0000000000000000000000000000000000000000.gz -00000001000000010000007F-0000000000000000000000000000000000000000 -000000010000000100000080-0000000000000000000000000000000000000000.gz -000000010000000100000081-0000000000000000000000000000000000000000 -000000010000000100000082-0000000000000000000000000000000000000000.gz -000000010000000100000083-0000000000000000000000000000000000000000 -000000010000000100000084-0000000000000000000000000000000000000000.gz -000000010000000100000085-0000000000000000000000000000000000000000 -000000010000000100000086-0000000000000000000000000000000000000000.gz -000000010000000100000087-0000000000000000000000000000000000000000 -000000010000000100000088-0000000000000000000000000000000000000000.gz -000000010000000100000089-0000000000000000000000000000000000000000 -00000001000000010000008A-0000000000000000000000000000000000000000.gz -00000001000000010000008B-0000000000000000000000000000000000000000 -00000001000000010000008C-0000000000000000000000000000000000000000.gz -00000001000000010000008D-0000000000000000000000000000000000000000 -00000001000000010000008E-0000000000000000000000000000000000000000.gz -00000001000000010000008F-0000000000000000000000000000000000000000 -000000010000000100000090-0000000000000000000000000000000000000000.gz -000000010000000100000091-0000000000000000000000000000000000000000 -000000010000000100000092-0000000000000000000000000000000000000000.gz -000000010000000100000093-0000000000000000000000000000000000000000 -000000010000000100000094-0000000000000000000000000000000000000000.gz -000000010000000100000095-0000000000000000000000000000000000000000 -000000010000000100000096-0000000000000000000000000000000000000000.gz -000000010000000100000097-0000000000000000000000000000000000000000 -000000010000000100000098-0000000000000000000000000000000000000000.gz -000000010000000100000099-0000000000000000000000000000000000000000 -00000001000000010000009A-0000000000000000000000000000000000000000.gz -00000001000000010000009B-0000000000000000000000000000000000000000 -00000001000000010000009C-0000000000000000000000000000000000000000.gz -00000001000000010000009D-0000000000000000000000000000000000000000 -00000001000000010000009E-0000000000000000000000000000000000000000.gz -00000001000000010000009F-0000000000000000000000000000000000000000 -0000000100000001000000A0-0000000000000000000000000000000000000000.gz -0000000100000001000000A1-0000000000000000000000000000000000000000 -0000000100000001000000A2-0000000000000000000000000000000000000000.gz -0000000100000001000000A3-0000000000000000000000000000000000000000 -0000000100000001000000A4-0000000000000000000000000000000000000000.gz -0000000100000001000000A5-0000000000000000000000000000000000000000 -0000000100000001000000A6-0000000000000000000000000000000000000000.gz -0000000100000001000000A7-0000000000000000000000000000000000000000 -0000000100000001000000A8-0000000000000000000000000000000000000000.gz -0000000100000001000000A9-0000000000000000000000000000000000000000 -0000000100000001000000AA-0000000000000000000000000000000000000000.gz -0000000100000001000000AB-0000000000000000000000000000000000000000 -0000000100000001000000AC-0000000000000000000000000000000000000000.gz -0000000100000001000000AD-0000000000000000000000000000000000000000 -0000000100000001000000AE-0000000000000000000000000000000000000000.gz -0000000100000001000000AF-0000000000000000000000000000000000000000 -0000000100000001000000B0-0000000000000000000000000000000000000000.gz -0000000100000001000000B1-0000000000000000000000000000000000000000 -0000000100000001000000B2-0000000000000000000000000000000000000000.gz -0000000100000001000000B3-0000000000000000000000000000000000000000 -0000000100000001000000B4-0000000000000000000000000000000000000000.gz -0000000100000001000000B5-0000000000000000000000000000000000000000 -0000000100000001000000B6-0000000000000000000000000000000000000000.gz -0000000100000001000000B7-0000000000000000000000000000000000000000 -0000000100000001000000B8-0000000000000000000000000000000000000000.gz -0000000100000001000000B9-0000000000000000000000000000000000000000 -0000000100000001000000BA-0000000000000000000000000000000000000000.gz -0000000100000001000000BB-0000000000000000000000000000000000000000 -0000000100000001000000BC-0000000000000000000000000000000000000000.gz -0000000100000001000000BD-0000000000000000000000000000000000000000 -0000000100000001000000BE-0000000000000000000000000000000000000000.gz -0000000100000001000000BF-0000000000000000000000000000000000000000 -0000000100000001000000C0-0000000000000000000000000000000000000000.gz -0000000100000001000000C1-0000000000000000000000000000000000000000 -0000000100000001000000C2-0000000000000000000000000000000000000000.gz -0000000100000001000000C3-0000000000000000000000000000000000000000 -0000000100000001000000C4-0000000000000000000000000000000000000000.gz -0000000100000001000000C5-0000000000000000000000000000000000000000 -0000000100000001000000C6-0000000000000000000000000000000000000000.gz -0000000100000001000000C7-0000000000000000000000000000000000000000 -0000000100000001000000C8-0000000000000000000000000000000000000000.gz -0000000100000001000000C9-0000000000000000000000000000000000000000 -0000000100000001000000CA-0000000000000000000000000000000000000000.gz -0000000100000001000000CB-0000000000000000000000000000000000000000 -0000000100000001000000CC-0000000000000000000000000000000000000000.gz -0000000100000001000000CD-0000000000000000000000000000000000000000 -0000000100000001000000CE-0000000000000000000000000000000000000000.gz -0000000100000001000000CF-0000000000000000000000000000000000000000 -0000000100000001000000D0-0000000000000000000000000000000000000000.gz -0000000100000001000000D1-0000000000000000000000000000000000000000 -0000000100000001000000D2-0000000000000000000000000000000000000000.gz -0000000100000001000000D3-0000000000000000000000000000000000000000 -0000000100000001000000D4-0000000000000000000000000000000000000000.gz -0000000100000001000000D5-0000000000000000000000000000000000000000 -0000000100000001000000D6-0000000000000000000000000000000000000000.gz -0000000100000001000000D7-0000000000000000000000000000000000000000 -0000000100000001000000D8-0000000000000000000000000000000000000000.gz -0000000100000001000000D9-0000000000000000000000000000000000000000 -0000000100000001000000DA-0000000000000000000000000000000000000000.gz -0000000100000001000000DB-0000000000000000000000000000000000000000 -0000000100000001000000DC-0000000000000000000000000000000000000000.gz -0000000100000001000000DD-0000000000000000000000000000000000000000 -0000000100000001000000DE-0000000000000000000000000000000000000000.gz -0000000100000001000000DF-0000000000000000000000000000000000000000 -0000000100000001000000E0-0000000000000000000000000000000000000000.gz -0000000100000001000000E1-0000000000000000000000000000000000000000 -0000000100000001000000E2-0000000000000000000000000000000000000000.gz -0000000100000001000000E3-0000000000000000000000000000000000000000 -0000000100000001000000E4-0000000000000000000000000000000000000000.gz -0000000100000001000000E5-0000000000000000000000000000000000000000 -0000000100000001000000E6-0000000000000000000000000000000000000000.gz -0000000100000001000000E7-0000000000000000000000000000000000000000 -0000000100000001000000E8-0000000000000000000000000000000000000000.gz -0000000100000001000000E9-0000000000000000000000000000000000000000 -0000000100000001000000EA-0000000000000000000000000000000000000000.gz -0000000100000001000000EB-0000000000000000000000000000000000000000 -0000000100000001000000EC-0000000000000000000000000000000000000000.gz -0000000100000001000000ED-0000000000000000000000000000000000000000 -0000000100000001000000EE-0000000000000000000000000000000000000000.gz -0000000100000001000000EF-0000000000000000000000000000000000000000 -0000000100000001000000F0-0000000000000000000000000000000000000000.gz -0000000100000001000000F1-0000000000000000000000000000000000000000 -0000000100000001000000F2-0000000000000000000000000000000000000000.gz -0000000100000001000000F3-0000000000000000000000000000000000000000 -0000000100000001000000F4-0000000000000000000000000000000000000000.gz -0000000100000001000000F5-0000000000000000000000000000000000000000 -0000000100000001000000F6-0000000000000000000000000000000000000000.gz -0000000100000001000000F7-0000000000000000000000000000000000000000 -0000000100000001000000F8-0000000000000000000000000000000000000000.gz -0000000100000001000000F9-0000000000000000000000000000000000000000 -0000000100000001000000FA-0000000000000000000000000000000000000000.gz -0000000100000001000000FB-0000000000000000000000000000000000000000 -0000000100000001000000FC-0000000000000000000000000000000000000000.gz -0000000100000001000000FD-0000000000000000000000000000000000000000 -0000000100000001000000FE-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000000-0000000000000000000000000000000000000000 -000000010000000200000001-0000000000000000000000000000000000000000.gz -000000010000000200000002-0000000000000000000000000000000000000000 -000000010000000200000003-0000000000000000000000000000000000000000.gz -000000010000000200000004-0000000000000000000000000000000000000000 -000000010000000200000005-0000000000000000000000000000000000000000.gz -000000010000000200000006-0000000000000000000000000000000000000000 -000000010000000200000007-0000000000000000000000000000000000000000.gz -000000010000000200000008-0000000000000000000000000000000000000000 -000000010000000200000009-0000000000000000000000000000000000000000.gz -00000001000000020000000A-0000000000000000000000000000000000000000 -00000001000000020000000B-0000000000000000000000000000000000000000.gz -00000001000000020000000C-0000000000000000000000000000000000000000 -00000001000000020000000D-0000000000000000000000000000000000000000.gz -00000001000000020000000E-0000000000000000000000000000000000000000 -00000001000000020000000F-0000000000000000000000000000000000000000.gz -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -000000010000000200000013-0000000000000000000000000000000000000000.gz -000000010000000200000014-0000000000000000000000000000000000000000 -000000010000000200000015-0000000000000000000000000000000000000000.gz -000000010000000200000016-0000000000000000000000000000000000000000.gz -000000010000000200000017-0000000000000000000000000000000000000000 -000000010000000200000018-0000000000000000000000000000000000000000.gz -000000010000000200000019-0000000000000000000000000000000000000000.gz -00000001000000020000001A-0000000000000000000000000000000000000000.gz -00000001000000020000001B-0000000000000000000000000000000000000000 -00000001000000020000001C-0000000000000000000000000000000000000000.gz -00000001000000020000001D-0000000000000000000000000000000000000000.gz - -Expire oldest diff backup, archive expire does not fall on major segment boundary -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=diff --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 INFO: repo1: expire full backup set [BACKUP-FULL-2], [BACKUP-DIFF-2] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-2] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-2] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-3], start = 000000010000000200000010, stop = 000000010000000200000012 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-3], start = 000000010000000200000016 -P00 INFO: repo1: 9.2-1 remove archive, start = 0000000100000001, stop = 00000001000000020000000F -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000013, stop = 000000010000000200000015 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000016","backup-archive-stop":"000000010000000200000018","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001A","backup-archive-stop":"00000001000000020000001C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-3] -[BACKUP-INCR-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -000000010000000200000016-0000000000000000000000000000000000000000.gz -000000010000000200000017-0000000000000000000000000000000000000000 -000000010000000200000018-0000000000000000000000000000000000000000.gz -000000010000000200000019-0000000000000000000000000000000000000000.gz -00000001000000020000001A-0000000000000000000000000000000000000000.gz -00000001000000020000001B-0000000000000000000000000000000000000000 -00000001000000020000001C-0000000000000000000000000000000000000000.gz -00000001000000020000001D-0000000000000000000000000000000000000000.gz - -* diff backup: label = [BACKUP-DIFF-4], prior = [BACKUP-INCR-2], start = 00000001000000020000001E, stop = 000000010000000200000020 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000016","backup-archive-stop":"000000010000000200000018","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001A","backup-archive-stop":"00000001000000020000001C","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001E","backup-archive-stop":"000000010000000200000020","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-3] -[BACKUP-INCR-2] -[BACKUP-DIFF-4] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -000000010000000200000016-0000000000000000000000000000000000000000.gz -000000010000000200000017-0000000000000000000000000000000000000000 -000000010000000200000018-0000000000000000000000000000000000000000.gz -000000010000000200000019-0000000000000000000000000000000000000000.gz -00000001000000020000001A-0000000000000000000000000000000000000000.gz -00000001000000020000001B-0000000000000000000000000000000000000000 -00000001000000020000001C-0000000000000000000000000000000000000000.gz -00000001000000020000001D-0000000000000000000000000000000000000000.gz -00000001000000020000001E-0000000000000000000000000000000000000000.gz -00000001000000020000001F-0000000000000000000000000000000000000000 -000000010000000200000020-0000000000000000000000000000000000000000.gz -000000010000000200000021-0000000000000000000000000000000000000000.gz -000000010000000200000022-0000000000000000000000000000000000000000 -000000010000000200000023-0000000000000000000000000000000000000000.gz - -Expire oldest diff backup (cascade to incr) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=diff --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 INFO: repo1: expire diff backup set [BACKUP-DIFF-3], [BACKUP-INCR-2] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-2] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-3] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-3], start = 000000010000000200000010, stop = 000000010000000200000012 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-4], start = 00000001000000020000001E -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000016, stop = 00000001000000020000001D -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001E","backup-archive-stop":"000000010000000200000020","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-4] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -00000001000000020000001E-0000000000000000000000000000000000000000.gz -00000001000000020000001F-0000000000000000000000000000000000000000 -000000010000000200000020-0000000000000000000000000000000000000000.gz -000000010000000200000021-0000000000000000000000000000000000000000.gz -000000010000000200000022-0000000000000000000000000000000000000000 -000000010000000200000023-0000000000000000000000000000000000000000.gz - -* incr backup: label = [BACKUP-INCR-3], prior = [BACKUP-DIFF-4], start = 000000010000000200000024, stop = 000000010000000200000026 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001E","backup-archive-stop":"000000010000000200000020","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000024","backup-archive-stop":"000000010000000200000026","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-4] -[BACKUP-INCR-3] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -00000001000000020000001E-0000000000000000000000000000000000000000.gz -00000001000000020000001F-0000000000000000000000000000000000000000 -000000010000000200000020-0000000000000000000000000000000000000000.gz -000000010000000200000021-0000000000000000000000000000000000000000.gz -000000010000000200000022-0000000000000000000000000000000000000000 -000000010000000200000023-0000000000000000000000000000000000000000.gz -000000010000000200000024-0000000000000000000000000000000000000000.gz -000000010000000200000025-0000000000000000000000000000000000000000 -000000010000000200000026-0000000000000000000000000000000000000000.gz -000000010000000200000027-0000000000000000000000000000000000000000.gz -000000010000000200000028-0000000000000000000000000000000000000000 -000000010000000200000029-0000000000000000000000000000000000000000.gz - -Expire archive based on newest incr backup -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=incr --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=incr --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-3], start = 000000010000000200000010, stop = 000000010000000200000012 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-4], start = 00000001000000020000001E, stop = 000000010000000200000020 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-INCR-3], start = 000000010000000200000024 -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000021, stop = 000000010000000200000023 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001E","backup-archive-stop":"000000010000000200000020","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000024","backup-archive-stop":"000000010000000200000026","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-4] -[BACKUP-INCR-3] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -00000001000000020000001E-0000000000000000000000000000000000000000.gz -00000001000000020000001F-0000000000000000000000000000000000000000 -000000010000000200000020-0000000000000000000000000000000000000000.gz -000000010000000200000024-0000000000000000000000000000000000000000.gz -000000010000000200000025-0000000000000000000000000000000000000000 -000000010000000200000026-0000000000000000000000000000000000000000.gz -000000010000000200000027-0000000000000000000000000000000000000000.gz -000000010000000200000028-0000000000000000000000000000000000000000 -000000010000000200000029-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-4], start = 00000001000000020000002A, stop = 00000001000000020000002C -* diff backup: label = [BACKUP-DIFF-5], prior = [BACKUP-FULL-4], start = 000000010000000200000030, stop = 000000010000000200000032 -* full backup: label = [BACKUP-FULL-5], start = 000000010000000200000036, stop = 000000010000000200000038 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000010","backup-archive-stop":"000000010000000200000012","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000001E","backup-archive-stop":"000000010000000200000020","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000024","backup-archive-stop":"000000010000000200000026","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-DIFF-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000030","backup-archive-stop":"000000010000000200000032","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-3] -[BACKUP-DIFF-4] -[BACKUP-INCR-3] -[BACKUP-FULL-4] -[BACKUP-DIFF-5] -[BACKUP-FULL-5] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -000000010000000200000010-0000000000000000000000000000000000000000.gz -000000010000000200000011-0000000000000000000000000000000000000000 -000000010000000200000012-0000000000000000000000000000000000000000.gz -00000001000000020000001E-0000000000000000000000000000000000000000.gz -00000001000000020000001F-0000000000000000000000000000000000000000 -000000010000000200000020-0000000000000000000000000000000000000000.gz -000000010000000200000024-0000000000000000000000000000000000000000.gz -000000010000000200000025-0000000000000000000000000000000000000000 -000000010000000200000026-0000000000000000000000000000000000000000.gz -000000010000000200000027-0000000000000000000000000000000000000000.gz -000000010000000200000028-0000000000000000000000000000000000000000 -000000010000000200000029-0000000000000000000000000000000000000000.gz -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -00000001000000020000002D-0000000000000000000000000000000000000000.gz -00000001000000020000002E-0000000000000000000000000000000000000000 -00000001000000020000002F-0000000000000000000000000000000000000000.gz -000000010000000200000030-0000000000000000000000000000000000000000.gz -000000010000000200000031-0000000000000000000000000000000000000000 -000000010000000200000032-0000000000000000000000000000000000000000.gz -000000010000000200000033-0000000000000000000000000000000000000000.gz -000000010000000200000034-0000000000000000000000000000000000000000 -000000010000000200000035-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -000000010000000200000039-0000000000000000000000000000000000000000.gz -00000001000000020000003A-0000000000000000000000000000000000000000 -00000001000000020000003B-0000000000000000000000000000000000000000.gz - -Expire diff treating full as diff -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=2 --repo1-retention-diff=1 --repo1-retention-archive-type=diff --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=1 --repo1-retention-full=2 --stanza=db -P00 INFO: repo1: expire full backup set [BACKUP-FULL-3], [BACKUP-DIFF-4], [BACKUP-INCR-3] -P00 INFO: repo1: expire diff backup [BACKUP-DIFF-5] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-5] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-3] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-4] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-3] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-4], start = 00000001000000020000002A, stop = 00000001000000020000002C -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-5], start = 000000010000000200000036 -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000010, stop = 000000010000000200000029 -P00 INFO: repo1: 9.2-1 remove archive, start = 00000001000000020000002D, stop = 000000010000000200000035 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -000000010000000200000039-0000000000000000000000000000000000000000.gz -00000001000000020000003A-0000000000000000000000000000000000000000 -00000001000000020000003B-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-6], start = 00000001000000020000003C, stop = 00000001000000020000003E -* diff backup: label = [BACKUP-DIFF-6], prior = [BACKUP-FULL-6], start = 000000010000000200000042, stop = 000000010000000200000044 -* diff backup: label = [BACKUP-DIFF-7], prior = [BACKUP-DIFF-6], start = 000000010000000200000048, stop = 00000001000000020000004A -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000003C","backup-archive-stop":"00000001000000020000003E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000042","backup-archive-stop":"000000010000000200000044","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000048","backup-archive-stop":"00000001000000020000004A","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] -[BACKUP-DIFF-6] -[BACKUP-DIFF-7] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -000000010000000200000039-0000000000000000000000000000000000000000.gz -00000001000000020000003A-0000000000000000000000000000000000000000 -00000001000000020000003B-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -00000001000000020000003F-0000000000000000000000000000000000000000.gz -000000010000000200000040-0000000000000000000000000000000000000000 -000000010000000200000041-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000045-0000000000000000000000000000000000000000.gz -000000010000000200000046-0000000000000000000000000000000000000000 -000000010000000200000047-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004B-0000000000000000000000000000000000000000.gz -00000001000000020000004C-0000000000000000000000000000000000000000 -00000001000000020000004D-0000000000000000000000000000000000000000.gz - -Expire diff with repo-retention-archive with warning repo-retention-diff not set -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-archive-type=diff --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=diff --stanza=db -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: option 'repo1-retention-diff' is not set for 'repo1-retention-archive-type=diff' - HINT: to retain differential backups indefinitely (without warning), set option 'repo1-retention-diff' to the maximum. -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-4], start = 00000001000000020000002A, stop = 00000001000000020000002C -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-5], start = 000000010000000200000036, stop = 000000010000000200000038 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-6], start = 00000001000000020000003C, stop = 00000001000000020000003E -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-6], start = 000000010000000200000042, stop = 000000010000000200000044 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-7], start = 000000010000000200000048 -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000039, stop = 00000001000000020000003B -P00 INFO: repo1: 9.2-1 remove archive, start = 00000001000000020000003F, stop = 000000010000000200000041 -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000045, stop = 000000010000000200000047 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000003C","backup-archive-stop":"00000001000000020000003E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000042","backup-archive-stop":"000000010000000200000044","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000048","backup-archive-stop":"00000001000000020000004A","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] -[BACKUP-DIFF-6] -[BACKUP-DIFF-7] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004B-0000000000000000000000000000000000000000.gz -00000001000000020000004C-0000000000000000000000000000000000000000 -00000001000000020000004D-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-7], start = 00000001000000020000004E, stop = 000000010000000200000050 -* full backup: label = [BACKUP-FULL-8], start = 000000010000000200000054, stop = 000000010000000200000056 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000003C","backup-archive-stop":"00000001000000020000003E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000042","backup-archive-stop":"000000010000000200000044","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000048","backup-archive-stop":"00000001000000020000004A","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000004E","backup-archive-stop":"000000010000000200000050","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] -[BACKUP-DIFF-6] -[BACKUP-DIFF-7] -[BACKUP-FULL-7] -[BACKUP-FULL-8] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004B-0000000000000000000000000000000000000000.gz -00000001000000020000004C-0000000000000000000000000000000000000000 -00000001000000020000004D-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000051-0000000000000000000000000000000000000000.gz -000000010000000200000052-0000000000000000000000000000000000000000 -000000010000000200000053-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz - -Expire full with repo-retention-archive with warning repo-retention-full not set -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-archive-type=full --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=full --stanza=db -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-4], start = 00000001000000020000002A, stop = 00000001000000020000002C -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-5], start = 000000010000000200000036, stop = 000000010000000200000038 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-6], start = 00000001000000020000003C, stop = 00000001000000020000003E -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-6], start = 000000010000000200000042, stop = 000000010000000200000044 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-DIFF-7], start = 000000010000000200000048, stop = 00000001000000020000004A -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-7], start = 00000001000000020000004E, stop = 000000010000000200000050 -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-8], start = 000000010000000200000054 -P00 INFO: repo1: 9.2-1 remove archive, start = 00000001000000020000004B, stop = 00000001000000020000004D -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000200000051, stop = 000000010000000200000053 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000003C","backup-archive-stop":"00000001000000020000003E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000042","backup-archive-stop":"000000010000000200000044","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000048","backup-archive-stop":"00000001000000020000004A","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000004E","backup-archive-stop":"000000010000000200000050","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] -[BACKUP-DIFF-6] -[BACKUP-DIFF-7] -[BACKUP-FULL-7] -[BACKUP-FULL-8] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz - -* incr backup: label = [BACKUP-INCR-4], prior = [BACKUP-FULL-8], start = 00000001000000020000005A, stop = 00000001000000020000005C -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000002A","backup-archive-stop":"00000001000000020000002C","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000036","backup-archive-stop":"000000010000000200000038","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000003C","backup-archive-stop":"00000001000000020000003E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000042","backup-archive-stop":"000000010000000200000044","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000048","backup-archive-stop":"00000001000000020000004A","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-6]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-7]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000004E","backup-archive-stop":"000000010000000200000050","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000005A","backup-archive-stop":"00000001000000020000005C","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-8]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] -[BACKUP-DIFF-6] -[BACKUP-DIFF-7] -[BACKUP-FULL-7] -[BACKUP-FULL-8] -[BACKUP-INCR-4] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz -00000001000000020000005A-0000000000000000000000000000000000000000.gz -00000001000000020000005B-0000000000000000000000000000000000000000 -00000001000000020000005C-0000000000000000000000000000000000000000.gz -00000001000000020000005D-0000000000000000000000000000000000000000.gz -00000001000000020000005E-0000000000000000000000000000000000000000 -00000001000000020000005F-0000000000000000000000000000000000000000.gz - -Expire no archive with warning since repo-retention-archive not set for INCR -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=1 --repo1-retention-diff=1 --repo1-retention-archive-type=incr expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=incr --repo1-retention-diff=1 --repo1-retention-full=1 --stanza=db -P00 WARN: WAL segments will not be expired: option 'repo1-retention-archive-type=incr' but option 'repo1-retention-archive' is not set -P00 INFO: repo1: expire full backup [BACKUP-FULL-4] -P00 INFO: repo1: expire full backup [BACKUP-FULL-5] -P00 INFO: repo1: expire full backup set [BACKUP-FULL-6], [BACKUP-DIFF-6], [BACKUP-DIFF-7] -P00 INFO: repo1: expire full backup [BACKUP-FULL-7] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-7] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-7] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-6] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-6] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-5] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-4] -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000005A","backup-archive-stop":"00000001000000020000005C","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-8]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-8] -[BACKUP-INCR-4] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz -00000001000000020000005A-0000000000000000000000000000000000000000.gz -00000001000000020000005B-0000000000000000000000000000000000000000 -00000001000000020000005C-0000000000000000000000000000000000000000.gz -00000001000000020000005D-0000000000000000000000000000000000000000.gz -00000001000000020000005E-0000000000000000000000000000000000000000 -00000001000000020000005F-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-9], start = 000000010000000200000060, stop = 000000010000000200000062 -* diff backup: label = [BACKUP-DIFF-8], prior = [BACKUP-FULL-9], start = 000000010000000200000066, stop = 000000010000000200000068 -* diff backup: label = [BACKUP-DIFF-9], prior = [BACKUP-DIFF-8], start = 00000001000000020000006C, stop = 00000001000000020000006E -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000005A","backup-archive-stop":"00000001000000020000005C","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-8]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-9]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000060","backup-archive-stop":"000000010000000200000062","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000066","backup-archive-stop":"000000010000000200000068","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-9]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-9]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000006C","backup-archive-stop":"00000001000000020000006E","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-9]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-8] -[BACKUP-INCR-4] -[BACKUP-FULL-9] -[BACKUP-DIFF-8] -[BACKUP-DIFF-9] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz -00000001000000020000005A-0000000000000000000000000000000000000000.gz -00000001000000020000005B-0000000000000000000000000000000000000000 -00000001000000020000005C-0000000000000000000000000000000000000000.gz -00000001000000020000005D-0000000000000000000000000000000000000000.gz -00000001000000020000005E-0000000000000000000000000000000000000000 -00000001000000020000005F-0000000000000000000000000000000000000000.gz -000000010000000200000060-0000000000000000000000000000000000000000.gz -000000010000000200000061-0000000000000000000000000000000000000000 -000000010000000200000062-0000000000000000000000000000000000000000.gz -000000010000000200000063-0000000000000000000000000000000000000000.gz -000000010000000200000064-0000000000000000000000000000000000000000 -000000010000000200000065-0000000000000000000000000000000000000000.gz -000000010000000200000066-0000000000000000000000000000000000000000.gz -000000010000000200000067-0000000000000000000000000000000000000000 -000000010000000200000068-0000000000000000000000000000000000000000.gz -000000010000000200000069-0000000000000000000000000000000000000000.gz -00000001000000020000006A-0000000000000000000000000000000000000000 -00000001000000020000006B-0000000000000000000000000000000000000000.gz -00000001000000020000006C-0000000000000000000000000000000000000000.gz -00000001000000020000006D-0000000000000000000000000000000000000000 -00000001000000020000006E-0000000000000000000000000000000000000000.gz -00000001000000020000006F-0000000000000000000000000000000000000000.gz -000000010000000200000070-0000000000000000000000000000000000000000 -000000010000000200000071-0000000000000000000000000000000000000000.gz - -Expire no archive with warning since neither repo-retention-archive nor repo-retention-diff is set -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-archive-type=diff expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=diff --stanza=db -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: WAL segments will not be expired: option 'repo1-retention-archive-type=diff' but neither option 'repo1-retention-archive' nor option 'repo1-retention-diff' is set -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000054","backup-archive-stop":"000000010000000200000056","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000005A","backup-archive-stop":"00000001000000020000005C","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-8]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-9]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000060","backup-archive-stop":"000000010000000200000062","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-8]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000200000066","backup-archive-stop":"000000010000000200000068","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-9]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-9]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000020000006C","backup-archive-stop":"00000001000000020000006E","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-9]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-8] -[BACKUP-INCR-4] -[BACKUP-FULL-9] -[BACKUP-DIFF-8] -[BACKUP-DIFF-9] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000002: -00000001000000020000002A-0000000000000000000000000000000000000000.gz -00000001000000020000002B-0000000000000000000000000000000000000000 -00000001000000020000002C-0000000000000000000000000000000000000000.gz -000000010000000200000036-0000000000000000000000000000000000000000.gz -000000010000000200000037-0000000000000000000000000000000000000000 -000000010000000200000038-0000000000000000000000000000000000000000.gz -00000001000000020000003C-0000000000000000000000000000000000000000.gz -00000001000000020000003D-0000000000000000000000000000000000000000 -00000001000000020000003E-0000000000000000000000000000000000000000.gz -000000010000000200000042-0000000000000000000000000000000000000000.gz -000000010000000200000043-0000000000000000000000000000000000000000 -000000010000000200000044-0000000000000000000000000000000000000000.gz -000000010000000200000048-0000000000000000000000000000000000000000.gz -000000010000000200000049-0000000000000000000000000000000000000000 -00000001000000020000004A-0000000000000000000000000000000000000000.gz -00000001000000020000004E-0000000000000000000000000000000000000000.gz -00000001000000020000004F-0000000000000000000000000000000000000000 -000000010000000200000050-0000000000000000000000000000000000000000.gz -000000010000000200000054-0000000000000000000000000000000000000000.gz -000000010000000200000055-0000000000000000000000000000000000000000 -000000010000000200000056-0000000000000000000000000000000000000000.gz -000000010000000200000057-0000000000000000000000000000000000000000.gz -000000010000000200000058-0000000000000000000000000000000000000000 -000000010000000200000059-0000000000000000000000000000000000000000.gz -00000001000000020000005A-0000000000000000000000000000000000000000.gz -00000001000000020000005B-0000000000000000000000000000000000000000 -00000001000000020000005C-0000000000000000000000000000000000000000.gz -00000001000000020000005D-0000000000000000000000000000000000000000.gz -00000001000000020000005E-0000000000000000000000000000000000000000 -00000001000000020000005F-0000000000000000000000000000000000000000.gz -000000010000000200000060-0000000000000000000000000000000000000000.gz -000000010000000200000061-0000000000000000000000000000000000000000 -000000010000000200000062-0000000000000000000000000000000000000000.gz -000000010000000200000063-0000000000000000000000000000000000000000.gz -000000010000000200000064-0000000000000000000000000000000000000000 -000000010000000200000065-0000000000000000000000000000000000000000.gz -000000010000000200000066-0000000000000000000000000000000000000000.gz -000000010000000200000067-0000000000000000000000000000000000000000 -000000010000000200000068-0000000000000000000000000000000000000000.gz -000000010000000200000069-0000000000000000000000000000000000000000.gz -00000001000000020000006A-0000000000000000000000000000000000000000 -00000001000000020000006B-0000000000000000000000000000000000000000.gz -00000001000000020000006C-0000000000000000000000000000000000000000.gz -00000001000000020000006D-0000000000000000000000000000000000000000 -00000001000000020000006E-0000000000000000000000000000000000000000.gz -00000001000000020000006F-0000000000000000000000000000000000000000.gz -000000010000000200000070-0000000000000000000000000000000000000000 -000000010000000200000071-0000000000000000000000000000000000000000.gz diff --git a/test/expect/mock-expire-002.log b/test/expect/mock-expire-002.log deleted file mode 100644 index 518f6bdfe..000000000 --- a/test/expect/mock-expire-002.log +++ /dev/null @@ -1,1506 +0,0 @@ -run 002 - stanzaUpgrade, enc 0, storage posix -============================================= - -* full backup: label = [BACKUP-FULL-1], start = 000000010000000000000000, stop = 000000010000000000000002 -* incr backup: label = [BACKUP-INCR-1], prior = [BACKUP-FULL-1], start = 000000010000000000000006, stop = 000000010000000000000008 -* full backup: label = [BACKUP-FULL-2], start = 00000001000000000000000C, stop = 00000001000000000000000E -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000000000000C","backup-archive-stop":"00000001000000000000000E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] -[BACKUP-FULL-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000.gz -000000010000000000000010-0000000000000000000000000000000000000000 -000000010000000000000011-0000000000000000000000000000000000000000.gz - -Create backups in current db version -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-archive-type=diff expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=diff --stanza=db -P00 WARN: option 'repo1-retention-full' is not set for 'repo1-retention-full-type=count', the repository may run out of space - HINT: to retain full backups indefinitely (without warning), set option 'repo1-retention-full' to the maximum. -P00 WARN: WAL segments will not be expired: option 'repo1-retention-archive-type=diff' but neither option 'repo1-retention-archive' nor option 'repo1-retention-diff' is set -P00 INFO: option 'repo1-retention-archive' is not set - archive logs will not be expired -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000000000000C","backup-archive-stop":"00000001000000000000000E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201204301 -db-control-version=922 -db-id=1 -db-system-id=1000000000000000092 -db-version="9.2" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] -[BACKUP-FULL-2] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000.gz -000000010000000000000010-0000000000000000000000000000000000000000 -000000010000000000000011-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-3], start = 000000010000000000000000, stop = 000000010000000000000002 -* incr backup: label = [BACKUP-INCR-2], prior = [BACKUP-FULL-3], start = 000000010000000000000006, stop = 0000000100000000000000FB -* full backup: label = [BACKUP-FULL-4], start = 0000000100000000000000FF, stop = 000000010000000100000001 -* diff backup: label = [BACKUP-DIFF-1], prior = [BACKUP-FULL-4], start = 000000010000000100000005, stop = 000000010000000100000007 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-1]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":1,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000000000000C","backup-archive-stop":"00000001000000000000000E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000005","backup-archive-stop":"000000010000000100000007","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=2 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-1] -[BACKUP-INCR-1] -[BACKUP-FULL-2] -[BACKUP-FULL-3] -[BACKUP-INCR-2] -[BACKUP-FULL-4] -[BACKUP-DIFF-1] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000.gz -000000010000000000000010-0000000000000000000000000000000000000000 -000000010000000000000011-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -Upgrade stanza and expire only earliest db backup and archive -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=3 --repo1-retention-archive-type=full expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=full --repo1-retention-full=3 --stanza=db -P00 INFO: repo1: expire full backup set [BACKUP-FULL-1], [BACKUP-INCR-1] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-1] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-1] -P00 DETAIL: repo1: 9.2-1 archive retention on backup [BACKUP-FULL-2], start = 00000001000000000000000C -P00 INFO: repo1: 9.2-1 remove archive, start = 000000010000000000000000, stop = 00000001000000000000000B -P00 DETAIL: repo1: 9.3-2 archive retention on backup [BACKUP-FULL-3], start = 000000010000000000000000 -P00 INFO: repo1: 9.3-2 no archive to remove -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000000000000C","backup-archive-stop":"00000001000000000000000E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000005","backup-archive-stop":"000000010000000100000007","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=2 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] -[BACKUP-FULL-3] -[BACKUP-INCR-2] -[BACKUP-FULL-4] -[BACKUP-DIFF-1] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000.gz -000000010000000000000010-0000000000000000000000000000000000000000 -000000010000000000000011-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-5], start = 000000010000000000000000, stop = 000000010000000000000002 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"00000001000000000000000C","backup-archive-stop":"00000001000000000000000E","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":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-3]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-INCR-2]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"0000000100000000000000FB","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-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"incr","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000005","backup-archive-stop":"000000010000000100000007","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-2] -[BACKUP-FULL-3] -[BACKUP-INCR-2] -[BACKUP-FULL-4] -[BACKUP-DIFF-1] -[BACKUP-FULL-5] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1: - -[TEST_PATH]/db-primary/repo/archive/db/9.2-1/0000000100000000: -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000.gz -000000010000000000000010-0000000000000000000000000000000000000000 -000000010000000000000011-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000 -00000001000000000000000A-0000000000000000000000000000000000000000.gz -00000001000000000000000B-0000000000000000000000000000000000000000 -00000001000000000000000C-0000000000000000000000000000000000000000.gz -00000001000000000000000D-0000000000000000000000000000000000000000 -00000001000000000000000E-0000000000000000000000000000000000000000.gz -00000001000000000000000F-0000000000000000000000000000000000000000 -000000010000000000000010-0000000000000000000000000000000000000000.gz -000000010000000000000011-0000000000000000000000000000000000000000 -000000010000000000000012-0000000000000000000000000000000000000000.gz -000000010000000000000013-0000000000000000000000000000000000000000 -000000010000000000000014-0000000000000000000000000000000000000000.gz -000000010000000000000015-0000000000000000000000000000000000000000 -000000010000000000000016-0000000000000000000000000000000000000000.gz -000000010000000000000017-0000000000000000000000000000000000000000 -000000010000000000000018-0000000000000000000000000000000000000000.gz -000000010000000000000019-0000000000000000000000000000000000000000 -00000001000000000000001A-0000000000000000000000000000000000000000.gz -00000001000000000000001B-0000000000000000000000000000000000000000 -00000001000000000000001C-0000000000000000000000000000000000000000.gz -00000001000000000000001D-0000000000000000000000000000000000000000 -00000001000000000000001E-0000000000000000000000000000000000000000.gz -00000001000000000000001F-0000000000000000000000000000000000000000 -000000010000000000000020-0000000000000000000000000000000000000000.gz -000000010000000000000021-0000000000000000000000000000000000000000 -000000010000000000000022-0000000000000000000000000000000000000000.gz -000000010000000000000023-0000000000000000000000000000000000000000 -000000010000000000000024-0000000000000000000000000000000000000000.gz -000000010000000000000025-0000000000000000000000000000000000000000 -000000010000000000000026-0000000000000000000000000000000000000000.gz -000000010000000000000027-0000000000000000000000000000000000000000 -000000010000000000000028-0000000000000000000000000000000000000000.gz -000000010000000000000029-0000000000000000000000000000000000000000 -00000001000000000000002A-0000000000000000000000000000000000000000.gz -00000001000000000000002B-0000000000000000000000000000000000000000 -00000001000000000000002C-0000000000000000000000000000000000000000.gz -00000001000000000000002D-0000000000000000000000000000000000000000 -00000001000000000000002E-0000000000000000000000000000000000000000.gz -00000001000000000000002F-0000000000000000000000000000000000000000 -000000010000000000000030-0000000000000000000000000000000000000000.gz -000000010000000000000031-0000000000000000000000000000000000000000 -000000010000000000000032-0000000000000000000000000000000000000000.gz -000000010000000000000033-0000000000000000000000000000000000000000 -000000010000000000000034-0000000000000000000000000000000000000000.gz -000000010000000000000035-0000000000000000000000000000000000000000 -000000010000000000000036-0000000000000000000000000000000000000000.gz -000000010000000000000037-0000000000000000000000000000000000000000 -000000010000000000000038-0000000000000000000000000000000000000000.gz -000000010000000000000039-0000000000000000000000000000000000000000 -00000001000000000000003A-0000000000000000000000000000000000000000.gz -00000001000000000000003B-0000000000000000000000000000000000000000 -00000001000000000000003C-0000000000000000000000000000000000000000.gz -00000001000000000000003D-0000000000000000000000000000000000000000 -00000001000000000000003E-0000000000000000000000000000000000000000.gz -00000001000000000000003F-0000000000000000000000000000000000000000 -000000010000000000000040-0000000000000000000000000000000000000000.gz -000000010000000000000041-0000000000000000000000000000000000000000 -000000010000000000000042-0000000000000000000000000000000000000000.gz -000000010000000000000043-0000000000000000000000000000000000000000 -000000010000000000000044-0000000000000000000000000000000000000000.gz -000000010000000000000045-0000000000000000000000000000000000000000 -000000010000000000000046-0000000000000000000000000000000000000000.gz -000000010000000000000047-0000000000000000000000000000000000000000 -000000010000000000000048-0000000000000000000000000000000000000000.gz -000000010000000000000049-0000000000000000000000000000000000000000 -00000001000000000000004A-0000000000000000000000000000000000000000.gz -00000001000000000000004B-0000000000000000000000000000000000000000 -00000001000000000000004C-0000000000000000000000000000000000000000.gz -00000001000000000000004D-0000000000000000000000000000000000000000 -00000001000000000000004E-0000000000000000000000000000000000000000.gz -00000001000000000000004F-0000000000000000000000000000000000000000 -000000010000000000000050-0000000000000000000000000000000000000000.gz -000000010000000000000051-0000000000000000000000000000000000000000 -000000010000000000000052-0000000000000000000000000000000000000000.gz -000000010000000000000053-0000000000000000000000000000000000000000 -000000010000000000000054-0000000000000000000000000000000000000000.gz -000000010000000000000055-0000000000000000000000000000000000000000 -000000010000000000000056-0000000000000000000000000000000000000000.gz -000000010000000000000057-0000000000000000000000000000000000000000 -000000010000000000000058-0000000000000000000000000000000000000000.gz -000000010000000000000059-0000000000000000000000000000000000000000 -00000001000000000000005A-0000000000000000000000000000000000000000.gz -00000001000000000000005B-0000000000000000000000000000000000000000 -00000001000000000000005C-0000000000000000000000000000000000000000.gz -00000001000000000000005D-0000000000000000000000000000000000000000 -00000001000000000000005E-0000000000000000000000000000000000000000.gz -00000001000000000000005F-0000000000000000000000000000000000000000 -000000010000000000000060-0000000000000000000000000000000000000000.gz -000000010000000000000061-0000000000000000000000000000000000000000 -000000010000000000000062-0000000000000000000000000000000000000000.gz -000000010000000000000063-0000000000000000000000000000000000000000 -000000010000000000000064-0000000000000000000000000000000000000000.gz -000000010000000000000065-0000000000000000000000000000000000000000 -000000010000000000000066-0000000000000000000000000000000000000000.gz -000000010000000000000067-0000000000000000000000000000000000000000 -000000010000000000000068-0000000000000000000000000000000000000000.gz -000000010000000000000069-0000000000000000000000000000000000000000 -00000001000000000000006A-0000000000000000000000000000000000000000.gz -00000001000000000000006B-0000000000000000000000000000000000000000 -00000001000000000000006C-0000000000000000000000000000000000000000.gz -00000001000000000000006D-0000000000000000000000000000000000000000 -00000001000000000000006E-0000000000000000000000000000000000000000.gz -00000001000000000000006F-0000000000000000000000000000000000000000 -000000010000000000000070-0000000000000000000000000000000000000000.gz -000000010000000000000071-0000000000000000000000000000000000000000 -000000010000000000000072-0000000000000000000000000000000000000000.gz -000000010000000000000073-0000000000000000000000000000000000000000 -000000010000000000000074-0000000000000000000000000000000000000000.gz -000000010000000000000075-0000000000000000000000000000000000000000 -000000010000000000000076-0000000000000000000000000000000000000000.gz -000000010000000000000077-0000000000000000000000000000000000000000 -000000010000000000000078-0000000000000000000000000000000000000000.gz -000000010000000000000079-0000000000000000000000000000000000000000 -00000001000000000000007A-0000000000000000000000000000000000000000.gz -00000001000000000000007B-0000000000000000000000000000000000000000 -00000001000000000000007C-0000000000000000000000000000000000000000.gz -00000001000000000000007D-0000000000000000000000000000000000000000 -00000001000000000000007E-0000000000000000000000000000000000000000.gz -00000001000000000000007F-0000000000000000000000000000000000000000 -000000010000000000000080-0000000000000000000000000000000000000000.gz -000000010000000000000081-0000000000000000000000000000000000000000 -000000010000000000000082-0000000000000000000000000000000000000000.gz -000000010000000000000083-0000000000000000000000000000000000000000 -000000010000000000000084-0000000000000000000000000000000000000000.gz -000000010000000000000085-0000000000000000000000000000000000000000 -000000010000000000000086-0000000000000000000000000000000000000000.gz -000000010000000000000087-0000000000000000000000000000000000000000 -000000010000000000000088-0000000000000000000000000000000000000000.gz -000000010000000000000089-0000000000000000000000000000000000000000 -00000001000000000000008A-0000000000000000000000000000000000000000.gz -00000001000000000000008B-0000000000000000000000000000000000000000 -00000001000000000000008C-0000000000000000000000000000000000000000.gz -00000001000000000000008D-0000000000000000000000000000000000000000 -00000001000000000000008E-0000000000000000000000000000000000000000.gz -00000001000000000000008F-0000000000000000000000000000000000000000 -000000010000000000000090-0000000000000000000000000000000000000000.gz -000000010000000000000091-0000000000000000000000000000000000000000 -000000010000000000000092-0000000000000000000000000000000000000000.gz -000000010000000000000093-0000000000000000000000000000000000000000 -000000010000000000000094-0000000000000000000000000000000000000000.gz -000000010000000000000095-0000000000000000000000000000000000000000 -000000010000000000000096-0000000000000000000000000000000000000000.gz -000000010000000000000097-0000000000000000000000000000000000000000 -000000010000000000000098-0000000000000000000000000000000000000000.gz -000000010000000000000099-0000000000000000000000000000000000000000 -00000001000000000000009A-0000000000000000000000000000000000000000.gz -00000001000000000000009B-0000000000000000000000000000000000000000 -00000001000000000000009C-0000000000000000000000000000000000000000.gz -00000001000000000000009D-0000000000000000000000000000000000000000 -00000001000000000000009E-0000000000000000000000000000000000000000.gz -00000001000000000000009F-0000000000000000000000000000000000000000 -0000000100000000000000A0-0000000000000000000000000000000000000000.gz -0000000100000000000000A1-0000000000000000000000000000000000000000 -0000000100000000000000A2-0000000000000000000000000000000000000000.gz -0000000100000000000000A3-0000000000000000000000000000000000000000 -0000000100000000000000A4-0000000000000000000000000000000000000000.gz -0000000100000000000000A5-0000000000000000000000000000000000000000 -0000000100000000000000A6-0000000000000000000000000000000000000000.gz -0000000100000000000000A7-0000000000000000000000000000000000000000 -0000000100000000000000A8-0000000000000000000000000000000000000000.gz -0000000100000000000000A9-0000000000000000000000000000000000000000 -0000000100000000000000AA-0000000000000000000000000000000000000000.gz -0000000100000000000000AB-0000000000000000000000000000000000000000 -0000000100000000000000AC-0000000000000000000000000000000000000000.gz -0000000100000000000000AD-0000000000000000000000000000000000000000 -0000000100000000000000AE-0000000000000000000000000000000000000000.gz -0000000100000000000000AF-0000000000000000000000000000000000000000 -0000000100000000000000B0-0000000000000000000000000000000000000000.gz -0000000100000000000000B1-0000000000000000000000000000000000000000 -0000000100000000000000B2-0000000000000000000000000000000000000000.gz -0000000100000000000000B3-0000000000000000000000000000000000000000 -0000000100000000000000B4-0000000000000000000000000000000000000000.gz -0000000100000000000000B5-0000000000000000000000000000000000000000 -0000000100000000000000B6-0000000000000000000000000000000000000000.gz -0000000100000000000000B7-0000000000000000000000000000000000000000 -0000000100000000000000B8-0000000000000000000000000000000000000000.gz -0000000100000000000000B9-0000000000000000000000000000000000000000 -0000000100000000000000BA-0000000000000000000000000000000000000000.gz -0000000100000000000000BB-0000000000000000000000000000000000000000 -0000000100000000000000BC-0000000000000000000000000000000000000000.gz -0000000100000000000000BD-0000000000000000000000000000000000000000 -0000000100000000000000BE-0000000000000000000000000000000000000000.gz -0000000100000000000000BF-0000000000000000000000000000000000000000 -0000000100000000000000C0-0000000000000000000000000000000000000000.gz -0000000100000000000000C1-0000000000000000000000000000000000000000 -0000000100000000000000C2-0000000000000000000000000000000000000000.gz -0000000100000000000000C3-0000000000000000000000000000000000000000 -0000000100000000000000C4-0000000000000000000000000000000000000000.gz -0000000100000000000000C5-0000000000000000000000000000000000000000 -0000000100000000000000C6-0000000000000000000000000000000000000000.gz -0000000100000000000000C7-0000000000000000000000000000000000000000 -0000000100000000000000C8-0000000000000000000000000000000000000000.gz -0000000100000000000000C9-0000000000000000000000000000000000000000 -0000000100000000000000CA-0000000000000000000000000000000000000000.gz -0000000100000000000000CB-0000000000000000000000000000000000000000 -0000000100000000000000CC-0000000000000000000000000000000000000000.gz -0000000100000000000000CD-0000000000000000000000000000000000000000 -0000000100000000000000CE-0000000000000000000000000000000000000000.gz -0000000100000000000000CF-0000000000000000000000000000000000000000 -0000000100000000000000D0-0000000000000000000000000000000000000000.gz -0000000100000000000000D1-0000000000000000000000000000000000000000 -0000000100000000000000D2-0000000000000000000000000000000000000000.gz -0000000100000000000000D3-0000000000000000000000000000000000000000 -0000000100000000000000D4-0000000000000000000000000000000000000000.gz -0000000100000000000000D5-0000000000000000000000000000000000000000 -0000000100000000000000D6-0000000000000000000000000000000000000000.gz -0000000100000000000000D7-0000000000000000000000000000000000000000 -0000000100000000000000D8-0000000000000000000000000000000000000000.gz -0000000100000000000000D9-0000000000000000000000000000000000000000 -0000000100000000000000DA-0000000000000000000000000000000000000000.gz -0000000100000000000000DB-0000000000000000000000000000000000000000 -0000000100000000000000DC-0000000000000000000000000000000000000000.gz -0000000100000000000000DD-0000000000000000000000000000000000000000 -0000000100000000000000DE-0000000000000000000000000000000000000000.gz -0000000100000000000000DF-0000000000000000000000000000000000000000 -0000000100000000000000E0-0000000000000000000000000000000000000000.gz -0000000100000000000000E1-0000000000000000000000000000000000000000 -0000000100000000000000E2-0000000000000000000000000000000000000000.gz -0000000100000000000000E3-0000000000000000000000000000000000000000 -0000000100000000000000E4-0000000000000000000000000000000000000000.gz -0000000100000000000000E5-0000000000000000000000000000000000000000 -0000000100000000000000E6-0000000000000000000000000000000000000000.gz -0000000100000000000000E7-0000000000000000000000000000000000000000 -0000000100000000000000E8-0000000000000000000000000000000000000000.gz -0000000100000000000000E9-0000000000000000000000000000000000000000 -0000000100000000000000EA-0000000000000000000000000000000000000000.gz -0000000100000000000000EB-0000000000000000000000000000000000000000 -0000000100000000000000EC-0000000000000000000000000000000000000000.gz -0000000100000000000000ED-0000000000000000000000000000000000000000 -0000000100000000000000EE-0000000000000000000000000000000000000000.gz -0000000100000000000000EF-0000000000000000000000000000000000000000 -0000000100000000000000F0-0000000000000000000000000000000000000000.gz -0000000100000000000000F1-0000000000000000000000000000000000000000 -0000000100000000000000F2-0000000000000000000000000000000000000000.gz -0000000100000000000000F3-0000000000000000000000000000000000000000 -0000000100000000000000F4-0000000000000000000000000000000000000000.gz -0000000100000000000000F5-0000000000000000000000000000000000000000 -0000000100000000000000F6-0000000000000000000000000000000000000000.gz -0000000100000000000000F7-0000000000000000000000000000000000000000 -0000000100000000000000F8-0000000000000000000000000000000000000000.gz -0000000100000000000000F9-0000000000000000000000000000000000000000 -0000000100000000000000FA-0000000000000000000000000000000000000000.gz -0000000100000000000000FB-0000000000000000000000000000000000000000 -0000000100000000000000FC-0000000000000000000000000000000000000000.gz -0000000100000000000000FD-0000000000000000000000000000000000000000 -0000000100000000000000FE-0000000000000000000000000000000000000000.gz -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -Upgrade the stanza, create full back - earliest db orphaned archive removed and earliest full backup and archive in previous db version removed -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=2 --repo1-retention-archive-type=full expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=full --repo1-retention-full=2 --stanza=db -P00 INFO: repo1: expire full backup [BACKUP-FULL-2] -P00 INFO: repo1: expire full backup set [BACKUP-FULL-3], [BACKUP-INCR-2] -P00 INFO: repo1: remove expired backup [BACKUP-INCR-2] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-3] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-2] -P00 INFO: repo1: remove archive path [TEST_PATH]/db-primary/repo/archive/db/9.2-1 -P00 DETAIL: repo1: 9.3-2 archive retention on backup [BACKUP-FULL-4], start = 0000000100000000000000FF -P00 INFO: repo1: 9.3-2 remove archive, start = 000000010000000000000000, stop = 0000000100000000000000FE -P00 DETAIL: repo1: 10-3 archive retention on backup [BACKUP-FULL-5], start = 000000010000000000000000 -P00 INFO: repo1: 10-3 no archive to remove -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000005","backup-archive-stop":"000000010000000100000007","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-DIFF-1] -[BACKUP-FULL-5] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -* full backup: label = [BACKUP-FULL-6], start = 000000010000000000000006, stop = 000000010000000000000008 -==================================================================================================================================== - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-DIFF-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000100000005","backup-archive-stop":"000000010000000100000007","backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-prior":"[BACKUP-FULL-4]","backup-reference":[],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"diff","db-id":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-DIFF-1] -[BACKUP-FULL-5] -[BACKUP-FULL-6] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000003-0000000000000000000000000000000000000000.gz -000000010000000000000004-0000000000000000000000000000000000000000 -000000010000000000000005-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -Expire all archive last full backup through pitr -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=3 --repo1-retention-diff=1 --repo1-retention-archive-type=diff --repo1-retention-archive=1 expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive=1 --repo1-retention-archive-type=diff --repo1-retention-diff=1 --repo1-retention-full=3 --stanza=db -P00 INFO: repo1: expire diff backup [BACKUP-DIFF-1] -P00 INFO: repo1: remove expired backup [BACKUP-DIFF-1] -P00 DETAIL: repo1: 9.3-2 archive retention on backup [BACKUP-FULL-4], start = 0000000100000000000000FF -P00 INFO: repo1: 9.3-2 no archive to remove -P00 DETAIL: repo1: 10-3 archive retention on backup [BACKUP-FULL-5], start = 000000010000000000000000, stop = 000000010000000000000002 -P00 DETAIL: repo1: 10-3 archive retention on backup [BACKUP-FULL-6], start = 000000010000000000000006 -P00 INFO: repo1: 10-3 remove archive, start = 000000010000000000000003, stop = 000000010000000000000005 -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-4]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"0000000100000000000000FF","backup-archive-stop":"000000010000000100000001","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":2,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-4] -[BACKUP-FULL-5] -[BACKUP-FULL-6] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2: - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000000: -0000000100000000000000FF-0000000000000000000000000000000000000000.gz - -[TEST_PATH]/db-primary/repo/archive/db/9.3-2/0000000100000001: -000000010000000100000000-0000000000000000000000000000000000000000 -000000010000000100000001-0000000000000000000000000000000000000000.gz -000000010000000100000002-0000000000000000000000000000000000000000.gz -000000010000000100000003-0000000000000000000000000000000000000000 -000000010000000100000004-0000000000000000000000000000000000000000.gz -000000010000000100000005-0000000000000000000000000000000000000000.gz -000000010000000100000006-0000000000000000000000000000000000000000 -000000010000000100000007-0000000000000000000000000000000000000000.gz -000000010000000100000008-0000000000000000000000000000000000000000.gz -000000010000000100000009-0000000000000000000000000000000000000000 -00000001000000010000000A-0000000000000000000000000000000000000000.gz - -Expire all archive except for the current database -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config="[TEST_PATH]/db-primary/pgbackrest.conf" --stanza=db --log-level-console=detail --repo1-retention-full=2 --repo1-retention-archive-type=full expire ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-path=[TEST_PATH]/db-primary/repo --repo1-retention-archive-type=full --repo1-retention-full=2 --stanza=db -P00 INFO: repo1: expire full backup [BACKUP-FULL-4] -P00 INFO: repo1: remove expired backup [BACKUP-FULL-4] -P00 INFO: repo1: remove archive path [TEST_PATH]/db-primary/repo/archive/db/9.3-2 -P00 DETAIL: repo1: 10-3 archive retention on backup [BACKUP-FULL-5], start = 000000010000000000000000 -P00 INFO: repo1: 10-3 no archive to remove -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/repo/backup/db/backup.info ----------------------------------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[backup:current] -[BACKUP-FULL-5]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000000","backup-archive-stop":"000000010000000000000002","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} -[BACKUP-FULL-6]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":"000000010000000000000006","backup-archive-stop":"000000010000000000000008","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":3,"option-archive-check":true,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":true,"option-compress":true,"option-hardlink":false,"option-online":true} - -[db] -db-catalog-version=201707211 -db-control-version=1002 -db-id=3 -db-system-id=1000000000000000100 -db-version="10" - -[db:history] -1={"db-catalog-version":201204301,"db-control-version":922,"db-system-id":1000000000000000092,"db-version":"9.2"} -2={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -3={"db-catalog-version":201707211,"db-control-version":1002,"db-system-id":1000000000000000100,"db-version":"10"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> ls [TEST_PATH]/db-primary/repo/backup/db | grep -v "backup.*" ------------------------------------------------------------------------------------------------------------------------------------- -[BACKUP-FULL-5] -[BACKUP-FULL-6] - -> ls -R [TEST_PATH]/db-primary/repo/archive/db | grep -v "archive.info" ------------------------------------------------------------------------------------------------------------------------------------- -[TEST_PATH]/db-primary/repo/archive/db: - -[TEST_PATH]/db-primary/repo/archive/db/10-3: - -[TEST_PATH]/db-primary/repo/archive/db/10-3/0000000100000000: -000000010000000000000000-0000000000000000000000000000000000000000.gz -000000010000000000000001-0000000000000000000000000000000000000000 -000000010000000000000002-0000000000000000000000000000000000000000.gz -000000010000000000000006-0000000000000000000000000000000000000000.gz -000000010000000000000007-0000000000000000000000000000000000000000 -000000010000000000000008-0000000000000000000000000000000000000000.gz -000000010000000000000009-0000000000000000000000000000000000000000.gz -00000001000000000000000A-0000000000000000000000000000000000000000 -00000001000000000000000B-0000000000000000000000000000000000000000.gz diff --git a/test/expect/mock-stanza-001.log b/test/expect/mock-stanza-001.log deleted file mode 100644 index 26a353035..000000000 --- a/test/expect/mock-stanza-001.log +++ /dev/null @@ -1,560 +0,0 @@ -run 001 - remote 0, tls 0, storage gcs, enc 0, cmp zst -====================================================== - -stanza-create db - fail on missing control file (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online --log-level-file=[LOG-LEVEL-FILE] stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 ERROR: [055]: unable to open missing file '[TEST_PATH]/db-primary/db/base/global/pg_control' for read -P00 INFO: stanza-create command end: aborted with exception [055] - -stanza-upgrade db - fail on stanza not initialized since archive.info is missing (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 ERROR: [055]: unable to load info file '/archive/db/archive.info' or '/archive/db/archive.info.copy': - FileMissingError: unable to open missing file '/archive/db/archive.info' for read - FileMissingError: unable to open missing file '/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: aborted with exception [055] - -stanza-create db - successfully create the stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-create db - do not fail on rerun of stanza-create - info files exist and DB section ok (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 INFO: stanza 'db' already exists on repo1 and is valid -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-create db - fail on database mismatch and warn force option deprecated (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online --force stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --force --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 WARN: option --force is no longer supported -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 ERROR: [028]: backup and archive info files exist but do not match the database - HINT: is this the correct stanza? - HINT: did an error occur during stanza-upgrade? -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: aborted with exception [028] - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-upgrade db - already up to date (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 INFO: stanza 'db' on repo1 is already up to date -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: pushed WAL file '000000010000000100000001' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -stanza-create db - fail on archive info file missing from non-empty dir (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 ERROR: [055]: backup.info exists but archive.info is missing on repo1 - HINT: this may be a symptom of repository corruption! -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: aborted with exception [055] - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 9.3, system-id 1000000000000000093 - HINT: are you archiving to the correct stanza? - -stanza-upgrade db - successful upgrade creates additional history (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=2 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=2 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} -2={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000002, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: found 000000010000000100000002 in the repo1: 9.3-1 archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -full backup - create first full backup (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo1-retention-full=2 --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --repo1-retention-full=2 --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db --start-fast --type=full -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG (16MB, 33.32%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 (16MB, 66.65%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 (16MB, 99.98%) checksum f92539dea1f9482e2946c1138eeeecdea29d7f19 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 100.00%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100.00%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-1] -P00 INFO: full backup size = 48MB, file total = 6 -P00 DETAIL: statistics: STATISTICS -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --repo1-retention-full=2 --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 DETAIL: statistics: STATISTICS -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-gcs-bucket=gcsbucket -repo1-gcs-endpoint=gcs:4443 -repo1-gcs-key=testkey -repo1-gcs-key-type=token -repo1-path=/ -repo1-storage-verify-tls=n -repo1-type=gcs -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -stanza-upgrade db - successfully upgrade (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":2,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[db] -db-catalog-version=201510051 -db-control-version=942 -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} -3={"db-catalog-version":201510051,"db-control-version":942,"db-system-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} -2={"db-id":1000000000000000094,"db-version":"9.4"} -3={"db-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-upgrade db - upgrade fails with mismatched db-ids (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 ERROR: [028]: backup info file and archive info file do not match - archive: id = 2, version = 9.5, system-id = 1000000000000000095 - backup : id = 3, version = 9.5, system-id = 1000000000000000095 - HINT: this may be a symptom of repository corruption! -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: aborted with exception [028] - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":2,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[db] -db-catalog-version=201510051 -db-control-version=942 -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} -3={"db-catalog-version":201510051,"db-control-version":942,"db-system-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -diff backup - diff changed to full backup (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo1-retention-full=2 --no-online --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-type=zst --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --repo1-retention-full=2 --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db --start-fast --type=diff -P00 WARN: no prior backup exists, diff backup has been changed to full -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG (16MB, 33.32%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 (16MB, 66.65%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 (16MB, 99.98%) checksum 762dae884fdccb805c5f3283662ea0f8da55f228 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 100.00%) checksum 4969435f3b36bfaa0f5a486bef97f1988a135520 -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100.00%) -P01 DETAIL: backup file [TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-2] -P00 INFO: full backup size = 48MB, file total = 6 -P00 DETAIL: statistics: STATISTICS -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --repo1-retention-full=2 --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 INFO: repo1: remove archive path /archive/db/9.3-1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-type=zst -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-gcs-bucket=gcsbucket -repo1-gcs-endpoint=gcs:4443 -repo1-gcs-key=testkey -repo1-gcs-key-type=token -repo1-path=/ -repo1-storage-verify-tls=n -repo1-type=gcs -spool-path=[TEST_PATH]/db-primary/spool - -[global:backup] -archive-copy=y -start-fast=y - -stanza-delete db - fail on missing stop file (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=1 --stanza=db stanza-delete ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo=1 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 ERROR: [055]: stop file does not exist for stanza 'db' - HINT: has the pgbackrest stop command been run on this server for this stanza? -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-delete command end: aborted with exception [055] - -db must not exist for successful delete -> list backup ------------------------------------------------------------------------------------------------------------------------------------- -db - -db must not exist for successful delete -> list archive ------------------------------------------------------------------------------------------------------------------------------------- -db - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: stop command end: completed successfully - -stanza-delete db - successfully delete the stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=1 --stanza=db stanza-delete ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo=1 --repo1-gcs-bucket=gcsbucket --repo1-gcs-endpoint=gcs:4443 --repo1-gcs-key= --repo1-gcs-key-type=token --repo1-path=/ --no-repo1-storage-verify-tls --repo1-type=gcs --stanza=db -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-delete command end: completed successfully - -db must not exist for successful delete -> list backup ------------------------------------------------------------------------------------------------------------------------------------- - -db must not exist for successful delete -> list archive ------------------------------------------------------------------------------------------------------------------------------------- diff --git a/test/expect/mock-stanza-002.log b/test/expect/mock-stanza-002.log deleted file mode 100644 index 4bb735f49..000000000 --- a/test/expect/mock-stanza-002.log +++ /dev/null @@ -1,652 +0,0 @@ -run 002 - remote 1, tls 1, storage azure, enc 1, cmp lz4 -======================================================== - -stanza-create db - fail on missing control file (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online --log-level-file=[LOG-LEVEL-FILE] stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 ERROR: [055]: raised from remote-0 tls protocol on 'db-primary': unable to open missing file '[TEST_PATH]/db-primary/db/base/global/pg_control' for read -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: aborted with exception [055] - -stanza-upgrade db - fail on stanza not initialized since archive.info is missing (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 ERROR: [055]: unable to load info file '/archive/db/archive.info' or '/archive/db/archive.info.copy': - FileMissingError: unable to open missing file '/archive/db/archive.info' for read - FileMissingError: unable to open missing file '/archive/db/archive.info.copy' for read - HINT: archive.info cannot be opened but is required to push/get WAL segments. - HINT: is archive_command configured correctly in postgresql.conf? - HINT: has a stanza-create been performed? - HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: aborted with exception [055] - -stanza-create db - successfully create the stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-create db - do not fail on rerun of stanza-create - info files exist and DB section ok (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 INFO: stanza 'db' already exists on repo1 and is valid -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-create db - fail on database mismatch and warn force option deprecated (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online --force stanza-create ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-create command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --force --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 WARN: option --force is no longer supported -P00 INFO: stanza-create for stanza 'db' on repo1 -P00 ERROR: [028]: backup and archive info files exist but do not match the database - HINT: is this the correct stanza? - HINT: did an error occur during stanza-upgrade? -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-create command end: aborted with exception [028] - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-upgrade db - already up to date (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 INFO: stanza 'db' on repo1 is already up to date -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201306121 -db-control-version=937 -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=lz4 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: pushed WAL file '000000010000000100000001' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002] --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=lz4 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: pushed WAL file '000000010000000100000002' to the archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-push command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- -P00 ERROR: [103]: unable to find a valid repository: - repo1: [ArchiveMismatchError] PostgreSQL version 9.4, system-id 1000000000000000094 do not match repo1 stanza version 9.3, system-id 1000000000000000093 - HINT: are you archiving to the correct stanza? - -stanza-upgrade db - successful upgrade creates additional history (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201409291 -db-control-version=942 -db-id=2 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=2 -db-system-id=1000000000000000094 -db-version="9.4" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} -2={"db-id":1000000000000000094,"db-version":"9.4"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000002, [TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG] --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: found 000000010000000100000002 in the repo1: 9.3-1 archive -P00 DETAIL: statistics: STATISTICS -P00 INFO: archive-get command end: completed successfully - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -full backup - create first full backup (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=2 --no-online --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=lz4 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db --start-fast --type=full -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG (16MB, 33.32%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 (16MB, 66.65%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 (16MB, 99.98%) checksum f92539dea1f9482e2946c1138eeeecdea29d7f19 -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 100.00%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100.00%) -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-1] -P00 INFO: full backup size = 48MB, file total = 6 -P00 DETAIL: statistics: STATISTICS -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/backup/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --no-log-timestamp --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 DETAIL: statistics: STATISTICS -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-azure-account=azaccount -repo1-azure-container=azcontainer -repo1-azure-host=azure -repo1-azure-key=YXpLZXk= -repo1-azure-uri-style=path -repo1-azure-verify-tls=n -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-type=azure - -[global:backup] -archive-copy=y -start-fast=y - -stanza-upgrade db - successfully upgrade (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --no-online --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: completed successfully - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":2,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201510051 -db-control-version=942 -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} -3={"db-catalog-version":201510051,"db-control-version":942,"db-system-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} -2={"db-id":1000000000000000094,"db-version":"9.4"} -3={"db-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -stanza-upgrade db - upgrade fails with mismatched db-ids (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db --no-online stanza-upgrade ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-upgrade command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: stanza-upgrade for stanza 'db' on repo1 -P00 ERROR: [028]: backup info file and archive info file do not match - archive: id = 2, version = 9.5, system-id = 1000000000000000095 - backup : id = 3, version = 9.5, system-id = 1000000000000000095 - HINT: this may be a symptom of repository corruption! -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-upgrade command end: aborted with exception [028] - -+ supplemental file: /backup/db/backup.info -------------------------------------------- -[backrest] -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-error":false,"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":2,"option-archive-check":false,"option-archive-copy":false,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false} - -[cipher] -cipher-pass=[CIPHER-PASS-1] - -[db] -db-catalog-version=201510051 -db-control-version=942 -db-id=3 -db-system-id=1000000000000000095 -db-version="9.5" - -[db:history] -1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":1000000000000000093,"db-version":"9.3"} -2={"db-catalog-version":201409291,"db-control-version":942,"db-system-id":1000000000000000094,"db-version":"9.4"} -3={"db-catalog-version":201510051,"db-control-version":942,"db-system-id":1000000000000000095,"db-version":"9.5"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -+ supplemental file: /archive/db/archive.info ---------------------------------------------- -[backrest] -backrest-format=5 -backrest-version="[VERSION-1]" - -[cipher] -cipher-pass=[CIPHER-PASS-2] - -[db] -db-id=1 -db-system-id=1000000000000000093 -db-version="9.3" - -[db:history] -1={"db-id":1000000000000000093,"db-version":"9.3"} - -[backrest] -backrest-checksum="[CHECKSUM]" - -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------- - -diff backup - diff changed to full backup (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=2 --no-online --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: backup command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level=3 --compress-level-network=1 --compress-type=lz4 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --job-retry=0 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log[] --no-log-timestamp --no-online --pg1-host=db-primary --pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf --pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --pg1-host-type=tls --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db --start-fast --type=diff -P00 WARN: no prior backup exists, diff backup has been changed to full -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/RECOVERYXLOG (16MB, 33.32%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000002 (16MB, 66.65%) checksum 51a8525d254c01f5edddda30b7fe697c7e44705c -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/000000010000000100000001 (16MB, 99.98%) checksum 762dae884fdccb805c5f3283662ea0f8da55f228 -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/global/pg_control (8KB, 100.00%) checksum 4969435f3b36bfaa0f5a486bef97f1988a135520 -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100.00%) -P01 DETAIL: backup file db-primary:[TEST_PATH]/db-primary/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100.00%) -P00 INFO: new backup label = [BACKUP-FULL-2] -P00 INFO: full backup size = 48MB, file total = 6 -P00 DETAIL: statistics: STATISTICS -P00 INFO: backup command end: completed successfully -P00 INFO: expire command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/backup/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --no-log-timestamp --repo1-azure-account= --repo1-azure-container=azcontainer --repo1-azure-key= --repo1-azure-uri-style=path --repo1-cipher-pass= --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-storage-host=azure --no-repo1-storage-verify-tls --repo1-type=azure --stanza=db -P00 INFO: repo1: remove archive path /archive/db/9.3-1 -P00 DETAIL: statistics: STATISTICS -P00 INFO: expire command end: completed successfully - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-host=backup -repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -repo1-host-type=tls -repo1-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key -pg1-host-type=tls -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=lz4 -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-azure-account=azaccount -repo1-azure-container=azcontainer -repo1-azure-host=azure -repo1-azure-key=YXpLZXk= -repo1-azure-uri-style=path -repo1-azure-verify-tls=n -repo1-cipher-pass=x -repo1-cipher-type=aes-256-cbc -repo1-path=/ -repo1-type=azure - -[global:backup] -archive-copy=y -start-fast=y - -stanza-delete db - fail on missing stop file (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=1 --stanza=db stanza-delete ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo=1 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 ERROR: [055]: stop file does not exist for stanza 'db' - HINT: has the pgbackrest stop command been run on this server for this stanza? -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-delete command end: aborted with exception [055] - -db must not exist for successful delete -> list backup ------------------------------------------------------------------------------------------------------------------------------------- -db - -db must not exist for successful delete -> list archive ------------------------------------------------------------------------------------------------------------------------------------- -db - -stop db stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/db-primary/pgbackrest.conf --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log --no-log-timestamp --stanza=db -P00 INFO: stop command end: completed successfully - -stanza-delete db - successfully delete the stanza (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=1 --stanza=db stanza-delete ------------------------------------------------------------------------------------------------------------------------------------- -P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --buffer-size=[BUFFER-SIZE] --compress-level-network=1 --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-timeout=45 --exec-id=[EXEC-ID] --lock-path=[TEST_PATH]/db-primary/lock --log-level-console=detail --log-level-file=[LOG-LEVEL-FILE] --log-level-stderr=off --log-path=[TEST_PATH]/db-primary/log[] --no-log-timestamp --pg1-path=[TEST_PATH]/db-primary/db/base --protocol-timeout=60 --repo=1 --repo1-host=backup --repo1-host-cert-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.crt --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-key-file=[REPO_PATH]/test/certificate/pgbackrest-test-client.key --repo1-host-type=tls --repo1-host-user=[USER-1] --stanza=db -P00 DETAIL: statistics: STATISTICS -P00 INFO: stanza-delete command end: completed successfully - -db must not exist for successful delete -> list backup ------------------------------------------------------------------------------------------------------------------------------------- - -db must not exist for successful delete -> list archive ------------------------------------------------------------------------------------------------------------------------------------- diff --git a/test/expect/real-all-001.log b/test/expect/real-all-001.log deleted file mode 100644 index 609ec40d6..000000000 --- a/test/expect/real-all-001.log +++ /dev/null @@ -1,909 +0,0 @@ -run 001 - bkp 1, sby 1, tls 0, dst backup, cmp none, storage posix, enc 0 -========================================================================= - -stanza-create db - main create stanza info files (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db stanza-create ------------------------------------------------------------------------------------------------------------------------------------- - -check db - verify check command runs successfully (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --archive-timeout=5 --stanza=db check ------------------------------------------------------------------------------------------------------------------------------------- - -check db - verify check command runs successfully (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --reset-pg2-host --reset-pg2-host-type --reset-pg2-host-cmd --reset-pg2-host-config --reset-pg2-host-user --reset-pg2-path --stanza=db check ------------------------------------------------------------------------------------------------------------------------------------- - -full backup - fail on backup lock exists (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -full backup - repo1 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --buffer-size=[BUFFER-SIZE] --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -full backup - repo2 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo=2 --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -full backup - with disabled expire-auto (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=1 --no-expire-auto --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -expire full=1 (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=1 --repo=1 --stanza=db expire ------------------------------------------------------------------------------------------------------------------------------------- - -restore, type 'standby', remap - restore backup on replica (db-standby host) -> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --recovery-option="primary_conninfo=host=db-primary port=6543 user=replicator" --type=standby --link-map="pg_xlog=[TEST_PATH]/db-standby/db/pg_xlog" --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-standby/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -primary_conninfo = 'host=db-primary port=6543 user=replicator' -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --stanza=db archive-get %f "%p"' -standby_mode = 'on' - -full backup - backup from standby, failure to access at least one standby (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --pg256-host=bogus --backup-standby --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -full backup - backup from standby (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo1-retention-full=1 --backup-standby --type=full --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[db:restore] - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -archive-async=y -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -check db - verify check command on standby (db-standby host) -> [CONTAINER-EXEC] db-standby [BACKREST-BIN] --config=[TEST_PATH]/db-standby/pgbackrest.conf --reset-pg2-host --reset-pg2-host-type --reset-pg2-host-cmd --reset-pg2-host-config --reset-pg2-host-user --reset-pg2-path --stanza=db check ------------------------------------------------------------------------------------------------------------------------------------- - -diff backup - backup for adhoc expire (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --type=diff --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[db:restore] - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -archive-async=y -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -stop all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------- - -incr backup - attempt backup when stopped (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -start all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------- - -incr backup - fail on archive_mode=always (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -expire --set=[BACKUP-DIFF-1] (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --set=[BACKUP-DIFF-1] --repo=1 --stanza=db expire ------------------------------------------------------------------------------------------------------------------------------------- - -incr backup - delta (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stop-auto --buffer-size=[BUFFER-SIZE] --delta --repo=2 --stanza=db backup ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg1-socket-path=[TEST_PATH]/db-primary/db - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-primary/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-primary/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-primary/spool - -+ supplemental file: [TEST_PATH]/db-standby/pgbackrest.conf ------------------------------------------------------------ -[db] -pg1-path=[TEST_PATH]/db-standby/db/base -pg1-port=6544 -pg1-socket-path=[TEST_PATH]/db-standby/db - -[db:restore] - -[global] -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/db-standby/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/db-standby/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-host=backup -repo1-host-cmd=[BACKREST-BIN] -repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo1-host-user=[USER-1] -repo2-host=backup -repo2-host-cmd=[BACKREST-BIN] -repo2-host-config=[TEST_PATH]/backup/pgbackrest.conf -repo2-host-user=[USER-1] -spool-path=[TEST_PATH]/db-standby/spool - -+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf -------------------------------------------------------- -[db] -pg1-host=db-primary -pg1-host-cmd=[BACKREST-BIN] -pg1-host-config=[TEST_PATH]/db-primary/pgbackrest.conf -pg1-host-user=[USER-1] -pg1-path=[TEST_PATH]/db-primary/db/base -pg1-port=6543 -pg2-host=bogus -pg2-host-cmd=[BACKREST-BIN] -pg2-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg2-host-user=[USER-1] -pg2-path=[TEST_PATH]/db-standby/db/base -pg256-host=db-standby -pg256-host-cmd=[BACKREST-BIN] -pg256-host-config=[TEST_PATH]/db-standby/pgbackrest.conf -pg256-host-user=[USER-1] -pg256-path=[TEST_PATH]/db-standby/db/base -pg256-port=6544 - -[global] -archive-async=y -buffer-size=[BUFFER-SIZE] -compress-level=3 -compress-level-network=1 -compress-type=none -db-timeout=45 -job-retry=0 -lock-path=[TEST_PATH]/backup/lock -log-level-console=detail -log-level-file=[LOG-LEVEL-FILE] -log-level-stderr=off -log-path=[TEST_PATH]/backup/log -log-subprocess=[LOG-SUBPROCESS] -log-timestamp=n -protocol-timeout=60 -repo1-bundle=y -repo1-bundle-limit=64KiB -repo1-bundle-size=1MiB -repo1-path=[TEST_PATH]/backup/repo -repo2-path=[TEST_PATH]/backup/repo2 - -[global:backup] -archive-copy=y -start-fast=y - -check db - check command with tablespace (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --archive-timeout=5 --reset-pg2-host --reset-pg2-host-type --reset-pg2-host-cmd --reset-pg2-host-config --reset-pg2-host-user --reset-pg2-path --stanza=db check ------------------------------------------------------------------------------------------------------------------------------------- - -restore, type 'default', expect exit 38 - pg running (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -restore, type 'default', expect exit 40 - path not empty (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -restore, type 'default' (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --db-include=test2 --db-include=test3 --buffer-size=[BUFFER-SIZE] --link-all --repo=2 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --buffer-size=[BUFFER-SIZE] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=2 --stanza=db archive-get %f "%p"' - -restore, force, backup '[BACKUP-FULL-1]', type 'immediate', target-action=promote (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --force --set=[BACKUP-FULL-1] --type=immediate --link-all --target-action=promote --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' -recovery_target = 'immediate' -recovery_target_action = 'promote' - -restore, force, backup '[BACKUP-INCR-1]', type 'xid', target '[XID-TARGET-1]', target-action=promote (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --force --set=[BACKUP-INCR-1] --tablespace-map-all=../../tablespace --type=xid --target="[XID-TARGET-1]" --link-all --target-action=promote --repo=2 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=2 --stanza=db archive-get %f "%p"' -recovery_target_xid = '[XID-TARGET-1]' -recovery_target_action = 'promote' - -restore, type 'preserve' (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --type=preserve --link-all --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=2 --stanza=db archive-get %f "%p"' -recovery_target_xid = '[XID-TARGET-1]' -recovery_target_action = 'promote' - -restore delta, type 'time', target '[TIMESTAMP-TARGET-1]', target-action=promote (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --type=time --target="[TIMESTAMP-TARGET-1]" --link-all --target-action=promote --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' -recovery_target_time = '[TIMESTAMP-TARGET-1]' -recovery_target_action = 'promote' - -restore delta, backup '[BACKUP-INCR-1]', type 'xid', target '[XID-TARGET-1]', exclusive, target-action=promote (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-INCR-1] --type=xid --target="[XID-TARGET-1]" --target-exclusive --link-all --target-action=promote --repo=2 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=2 --stanza=db archive-get %f "%p"' -recovery_target_xid = '[XID-TARGET-1]' -recovery_target_inclusive = 'false' -recovery_target_action = 'promote' - -restore delta, force, type 'name', target 'backrest', target-action=promote (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --force --type=name --target="backrest" --link-all --target-action=promote --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --stanza=db archive-get %f "%p"' -recovery_target_name = 'backrest' -recovery_target_action = 'promote' - -restore delta, backup '[BACKUP-INCR-1]', type 'standby', timeline '4' (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --delta --set=[BACKUP-INCR-1] --type=standby --target-timeline="4" --link-all --repo=2 --stanza=db restore ------------------------------------------------------------------------------------------------------------------------------------- - -+ supplemental file: [TEST_PATH]/db-primary/db/base/recovery.conf ------------------------------------------------------------------ -# Recovery settings generated by pgBackRest restore on [TIMESTAMP] -restore_command = '[BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf --repo=2 --stanza=db archive-get %f "%p"' -standby_mode = 'on' -recovery_target_timeline = '4' - -stop all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------- - -stop db stanza (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------- - -stanza-delete db - delete stanza with --force when pgbackrest on pg host not accessible (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --repo=1 --stanza=db --force stanza-delete ------------------------------------------------------------------------------------------------------------------------------------- - -start all stanzas (db-primary host) -> [CONTAINER-EXEC] db-primary [BACKREST-BIN] --config=[TEST_PATH]/db-primary/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------- - -start all stanzas (backup host) -> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------- diff --git a/test/lib/pgBackRestTest/Common/CodeCountTest.pm b/test/lib/pgBackRestTest/Common/CodeCountTest.pm index baafaf819..ca8e72882 100644 --- a/test/lib/pgBackRestTest/Common/CodeCountTest.pm +++ b/test/lib/pgBackRestTest/Common/CodeCountTest.pm @@ -62,7 +62,6 @@ sub codeCountScan $strFile =~ '^test/certificate/' || $strFile =~ '^test/code-count/' || $strFile =~ '^test/data/' || - $strFile =~ '^test/expect/' || $strFile =~ '^test/patch/' || $strFile =~ '^test/result/' || $strFile =~ '^test/scratch' || diff --git a/test/lib/pgBackRestTest/Common/DefineTest.pm b/test/lib/pgBackRestTest/Common/DefineTest.pm index 2ab61466d..5aff88c46 100644 --- a/test/lib/pgBackRestTest/Common/DefineTest.pm +++ b/test/lib/pgBackRestTest/Common/DefineTest.pm @@ -48,8 +48,6 @@ use constant TESTDEF_COVERAGE => 'coverage push @EXPORT, qw(TESTDEF_COVERAGE); use constant TESTDEF_CORE => 'core'; push @EXPORT, qw(TESTDEF_CORE); -use constant TESTDEF_EXPECT => 'expect'; - push @EXPORT, qw(TESTDEF_EXPECT); use constant TESTDEF_C => 'c'; push @EXPORT, qw(TESTDEF_C); use constant TESTDEF_DEFINE => 'define'; @@ -121,13 +119,11 @@ sub testDefLoad { my $hModuleType = $hTestDef->{$strModuleType}; - my $bExpect = false; # By default don't run expect tests my $bContainer = true; # By default run tests in a single container my $bIndividual = false; # By default runs are all executed in the same container if ($strModuleType eq TESTDEF_INTEGRATION) { - $bExpect = true; # Integration tests run expect tests $bContainer = false; # Integration tests can run in multiple containers $bIndividual = true; # Integration tests can change containers on each run } @@ -167,7 +163,6 @@ sub testDefLoad $hTestDefHash->{$strModule}{$strTest}{&TESTDEF_C} = $strModuleType ne TESTDEF_INTEGRATION && $strTest !~ /perl$/ ? true : false; $hTestDefHash->{$strModule}{$strTest}{&TESTDEF_INTEGRATION} = $strModuleType eq TESTDEF_INTEGRATION ? true : false; - $hTestDefHash->{$strModule}{$strTest}{&TESTDEF_EXPECT} = $bExpect; $hTestDefHash->{$strModule}{$strTest}{&TESTDEF_CONTAINER} = $bContainer; $hTestDefHash->{$strModule}{$strTest}{&TESTDEF_INDIVIDUAL} = $bIndividual; diff --git a/test/lib/pgBackRestTest/Common/ExecuteTest.pm b/test/lib/pgBackRestTest/Common/ExecuteTest.pm index 2bb0892b3..988320a19 100644 --- a/test/lib/pgBackRestTest/Common/ExecuteTest.pm +++ b/test/lib/pgBackRestTest/Common/ExecuteTest.pm @@ -211,17 +211,6 @@ sub endRetry $self->{strErrorLog} .= "${strLine}\n"; } - # Pass the log to the LogTest object - if (defined($self->{oLogTest})) - { - if (defined($self->{strErrorLog}) && $self->{strErrorLog} ne '') - { - $self->{strOutLog} .= "STDERR:\n" . $self->{strErrorLog}; - } - - $self->{oLogTest}->logAdd($self->{strCommand}, $self->{strComment}, $self->{bLogOutput} ? $self->{strOutLog} : undef); - } - # If an error was expected then return success if that error occurred if ($self->{iExpectedExitStatus} != 0 && $iExitStatus == $self->{iExpectedExitStatus}) { diff --git a/test/lib/pgBackRestTest/Common/FileTest.pm b/test/lib/pgBackRestTest/Common/FileTest.pm index be9b51b4d..6fddeddd2 100644 --- a/test/lib/pgBackRestTest/Common/FileTest.pm +++ b/test/lib/pgBackRestTest/Common/FileTest.pm @@ -27,7 +27,6 @@ use pgBackRestDoc::Common::String; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::HostGroupTest; -use pgBackRestTest::Common::LogTest; use pgBackRestTest::Common::RunTest; use pgBackRestTest::Common::StorageBase; use pgBackRestTest::Common::VmTest; diff --git a/test/lib/pgBackRestTest/Common/JobTest.pm b/test/lib/pgBackRestTest/Common/JobTest.pm index e1dec82bc..c93ebf3c6 100644 --- a/test/lib/pgBackRestTest/Common/JobTest.pm +++ b/test/lib/pgBackRestTest/Common/JobTest.pm @@ -62,7 +62,6 @@ sub new $self->{strLogLevelTest}, $self->{strLogLevelTestFile}, $self->{bLogTimestamp}, - $self->{bLogForce}, $self->{bShowOutputAsync}, $self->{bNoCleanup}, $self->{iRetry}, @@ -96,7 +95,6 @@ sub new {name => 'strLogLevelTest'}, {name => 'strLogLevelTestFile'}, {name => 'bLogTimestamp'}, - {name => 'bLogForce'}, {name => 'bShowOutputAsync'}, {name => 'bNoCleanup'}, {name => 'iRetry'}, @@ -748,7 +746,6 @@ sub run ($self->{bLogTimestamp} ? '' : ' --no-log-timestamp') . ' --pgsql-bin=' . $self->{oTest}->{&TEST_PGSQL_BIN} . ($self->{strTimeZone} ? " --tz='$self->{strTimeZone}'" : '') . - ($self->{bLogForce} ? ' --log-force' : '') . ($self->{bDryRun} ? ' --dry-run' : '') . ($self->{bDryRun} ? ' --vm-out' : '') . ($self->{bNoCleanup} ? " --no-cleanup" : ''); diff --git a/test/lib/pgBackRestTest/Common/LogTest.pm b/test/lib/pgBackRestTest/Common/LogTest.pm deleted file mode 100644 index cdfaf505c..000000000 --- a/test/lib/pgBackRestTest/Common/LogTest.pm +++ /dev/null @@ -1,492 +0,0 @@ -#################################################################################################################################### -# LogTest.pm - Capture the output of commands to compare them with an expected version -#################################################################################################################################### -package pgBackRestTest::Common::LogTest; - -#################################################################################################################################### -# Perl includes -#################################################################################################################################### -use strict; -use warnings FATAL => qw(all); -use Carp qw(confess); - -use Cwd qw(abs_path); -use Exporter qw(import); - our @EXPORT = qw(); -use File::Basename qw(dirname); - -use pgBackRestDoc::Common::Log; -use pgBackRestDoc::ProjectInfo; - -use pgBackRestTest::Common::ContainerTest; -use pgBackRestTest::Common::ExecuteTest; - -#################################################################################################################################### -# Expect log cache for supplemental files so they are only added to expect logs when they have changed -#################################################################################################################################### -my $hyExpectCache = undef; - -#################################################################################################################################### -# new -#################################################################################################################################### -sub new -{ - my $class = shift; # Class name - - # Create the class hash - my $self = {}; - bless $self, $class; - - # Assign function parameters, defaults, and log debug info - ( - my $strOperation, - $self->{strModule}, - $self->{strTest}, - $self->{iRun}, - $self->{bForce}, - $self->{strComment}, - $self->{strCommandMain}, - $self->{strPgSqlBin}, - $self->{strTestPath}, - $self->{strRepoPath}, - ) = - logDebugParam - ( - __PACKAGE__ . '->new', \@_, - {name => 'strModule', trace => true}, - {name => 'strTest', trace => true}, - {name => 'iRun', trace => true}, - {name => 'bForce', trace => true}, - {name => 'strComment', trace => true}, - {name => 'strCommandMain', trace => true}, - {name => 'strPgSqlBin', required => false, trace => true}, - {name => 'strTestPath', trace => true}, - {name => 'strRepoPath', trace => true}, - ); - - # Initialize the test log - $self->{strLog} = 'run ' . sprintf('%03d', $self->{iRun}) . ' - ' . $self->{strComment}; - $self->{strLog} .= "\n" . ('=' x length($self->{strLog})) . "\n"; - - # Initialize the filename - $self->{strFileName} = sprintf("expect/$self->{strModule}-$self->{strTest}-%03d.log", $self->{iRun}); - - # Initialize the replacement hash - $self->{oReplaceHash} = {}; - - # Return from function and log return values if any - return logDebugReturn - ( - $strOperation, - {name => 'self', value => $self, trace => true} - ); -} - -#################################################################################################################################### -# logAdd -#################################################################################################################################### -sub logAdd -{ - my $self = shift; - - # Assign function parameters, defaults, and log debug info - my - ( - $strOperation, - $strCommand, - $strComment, - $strLog - ) = - logDebugParam - ( - __PACKAGE__ . '->logAdd', \@_, - {name => 'strCommand', trace => true}, - {name => 'strComment', required => false, trace => true}, - {name => 'strLog', required => false, trace => true} - ); - - $self->{strLog} .= "\n"; - - if (defined($strComment)) - { - $self->{strLog} .= $self->regExpReplaceAll($strComment) . "\n"; - } - - $self->{strLog} .= '> ' . $self->regExpReplaceAll($strCommand) . "\n" . ('-' x '132') . "\n"; - - # Make sure there is a log before trying to output it - if (defined($strLog)) - { - # Do replacements on each line of the log - foreach my $strLine (split("\n", $strLog)) - { - # Remove timestamp from log line - $strLine =~ s/^[0-9]{4}-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]\.[0-9]{3} //; - - # Don't include test points in the final log - if ($strLine !~ /^ TEST/) - { - # Remove spaces that provided padding for the timetamp - $strLine =~ s/^ //; - - # Remove any final CRs - $strLine =~ s/\r$//; - - # Do other replacements - $strLine = $self->regExpReplaceAll($strLine); - - # Add to the log - $self->{strLog} .= "${strLine}\n"; - } - } - } - - # Return from function and log return values if any - logDebugReturn($strOperation); -} - -#################################################################################################################################### -# supplementalAdd -#################################################################################################################################### -sub supplementalAdd -{ - my $self = shift; - my $strFileName = shift; - my $strComment = shift; - my $strContent = shift; - - # Get content if it is not defined - if (!defined($strContent)) - { - open(my $hFile, '<', $strFileName) - or confess &log(ERROR, "unable to open ${strFileName} for appending to test log"); - - while (my $strLine = readline($hFile)) - { - $strContent .= $strLine; - } - - close($hFile); - } - - # Only output when the content of this file has changed - if (!defined($hyExpectCache->{$strFileName}) || $hyExpectCache->{$strFileName} ne $strContent) - { - # $hyExpectCache->{$strFileName} = $strContent; - - my $strHeader = "+ supplemental file: " . $self->regExpReplaceAll($strFileName); - - if (defined($strComment)) - { - $self->{strLog} .= "\n" . $self->regExpReplaceAll($strComment) . "\n" . ('=' x '132') . "\n"; - } - - $self->{strLog} .= "\n${strHeader}\n" . ('-' x length($strHeader)) . "\n"; - - if (length($strContent) > 0) - { - foreach my $strLine (split("\n", $strContent)) - { - $self->{strLog} .= $self->regExpReplaceAll($strLine) . "\n"; - } - } - } -} - -#################################################################################################################################### -# logWrite -#################################################################################################################################### -sub logWrite -{ - my $self = shift; - - # Assign function parameters, defaults, and log debug info - my - ( - $strOperation, - $strBasePath, - $strTestPath, - $strFileName - ) = - logDebugParam - ( - __PACKAGE__ . '->logWrite', \@_, - {name => 'strBasePath', trace => true}, - {name => 'strTestPath', trace => true}, - {name => 'strFileName', default => $self->{strFileName}, trace => true} - ); - - my $strReferenceLogFile = "${strBasePath}/test/${strFileName}"; - my $strTestLogFile; - - if ($self->{bForce}) - { - $strTestLogFile = $strReferenceLogFile; - } - else - { - my $strTestLogPath = "${strTestPath}/expect"; - - if (!-e $strTestLogPath) - { - mkdir($strTestLogPath, 0750) or - confess "unable to create expect log path ${strTestLogPath}"; - } - - $strTestLogFile = "${strTestPath}/${strFileName}"; - } - - open(my $hFile, '>', $strTestLogFile) - or confess "unable to open expect log file '${strTestLogFile}': $!"; - - syswrite($hFile, $self->{strLog}) - or confess "unable to write expect log file '${strTestLogFile}': $!"; - - close($hFile); - - if (!$self->{bForce}) - { - executeTest("diff ${strReferenceLogFile} ${strTestLogFile}"); - } - - # Return from function and log return values if any - logDebugReturn($strOperation); -} - -#################################################################################################################################### -# regExpReplace -#################################################################################################################################### -sub regExpReplace -{ - my $self = shift; - my $strLine = shift; - my $strType = shift; - my $strExpression = shift; - my $strToken = shift; - my $bIndex = shift; - - my @stryReplace = ($strLine =~ /$strExpression/g); - - foreach my $strReplace (@stryReplace) - { - my $iIndex; - my $strTypeReplacement; - my $strReplacement; - - if (!defined($bIndex) || $bIndex) - { - if (defined($strToken)) - { - my @stryReplacement = ($strReplace =~ /$strToken/g); - - if (@stryReplacement != 1) - { - my $strError = "'${strToken}'"; - - if (@stryReplacement == 0) - { - confess &log(ASSERT, $strError . " is not a sub-regexp of '${strExpression}' or" . - " matches " . @stryReplacement . " times on {[${strReplace}]}"); - } - - confess &log( - ASSERT, $strError . " matches '${strExpression}' " . @stryReplacement . " times on '${strReplace}': " . - join(',', @stryReplacement)); - } - - $strReplacement = $stryReplacement[0]; - } - else - { - $strReplacement = $strReplace; - } - - if (defined($strType)) - { - if (defined(${$self->{oReplaceHash}}{$strType}{$strReplacement})) - { - $iIndex = ${$self->{oReplaceHash}}{$strType}{$strReplacement}{index}; - } - else - { - if (!defined(${$self->{oReplaceHash}}{$strType}{index})) - { - ${$self->{oReplaceHash}}{$strType}{index} = 1; - } - - $iIndex = ${$self->{oReplaceHash}}{$strType}{index}++; - ${$self->{oReplaceHash}}{$strType}{$strReplacement}{index} = $iIndex; - } - } - } - - $strTypeReplacement = defined($strType) ? "[${strType}" . (defined($iIndex) ? "-${iIndex}" : '') . ']' : ''; - - if (defined($strToken)) - { - $strReplacement = $strReplace; - $strReplacement =~ s/$strToken/$strTypeReplacement/; - } - else - { - $strReplacement = $strTypeReplacement; - } - - $strReplace =~ s/\//\\\//g; - $strReplace =~ s/\+/\\\+/g; - $strLine =~ s/$strReplace/$strReplacement/g; - } - - return $strLine; -} - -#################################################################################################################################### -# regExpReplaceAll -# -# Replaces dynamic test output so that the expected test output can be verified against actual test output. -#################################################################################################################################### -sub regExpReplaceAll -{ - my $self = shift; - my $strLine = shift; - - my $strBinPath = dirname(dirname(abs_path($0))) . '/bin'; - - # Replace the exe path/file with sh ' prepended - my $strLineBefore = $strLine; - $strLine =~ s/bash -l -c '$self->{strCommandMain}/[BACKREST-BIN]/g; - - # Replace the final ' if the previous expression made changes - if ($strLine ne $strLineBefore) - { - $strLine =~ s/'$//g; - } - - # Replace the exe path/file with sh ' prepended - $strLine =~ s/$self->{strCommandMain}/[BACKREST-BIN]/g; - - # Replace the test path - $strLine =~ s/$self->{strTestPath}/[TEST_PATH]/g; - - # Replace the repo path - $strLine =~ s/$self->{strRepoPath}/[REPO_PATH]/g; - - # Replace the pgsql path (if exists) - if (defined($self->{strPgSqlBin})) - { - $strLine =~ s/$self->{strPgSqlBin}/[PGSQL_BIN_PATH]/g; - } - - $strLine = $self->regExpReplace($strLine, 'BACKREST-NAME-VERSION', '^' . PROJECT_NAME . ' ' . PROJECT_VERSION, - undef, false); - $strLine = $self->regExpReplace( - $strLine, 'BACKREST-VERSION', ' begin ' . PROJECT_VERSION . '\:', PROJECT_VERSION, false); - - $strLine = $self->regExpReplace($strLine, undef, '^docker exec -u [a-z]* test-[0-9]+\-', 'test-[0-9]+\-', false); - $strLine = $self->regExpReplace($strLine, 'CONTAINER-EXEC', '^docker exec -u [a-z]*', '^docker exec -u [a-z]*', false); - - $strLine = $self->regExpReplace($strLine, 'PROCESS-ID', 'sent term signal to process [0-9]+', '[0-9]+$', false); - $strLine = $self->regExpReplace($strLine, 'YEAR', 'backup\.history\/20[0-9]{2}', '20[0-9]{2}$'); - - $strLine = $self->regExpReplace($strLine, 'BACKUP-INCR', '[0-9]{8}\-[0-9]{6}F\_[0-9]{8}\-[0-9]{6}I'); - $strLine = $self->regExpReplace($strLine, 'BACKUP-DIFF', '[0-9]{8}\-[0-9]{6}F\_[0-9]{8}\-[0-9]{6}D'); - $strLine = $self->regExpReplace($strLine, 'BACKUP-FULL', '[0-9]{8}\-[0-9]{6}F'); - - $strLine = $self->regExpReplace( - $strLine, 'BACKUP-EXPR', 'strExpression \= \_[0-9]{8}\-[0-9]{6}', '\_[0-9]{8}\-[0-9]{6}$', false); - - if ($strLine =~ /^P00 DETAIL\: statistics\: /) - { - $strLine = 'P00 DETAIL: statistics: STATISTICS' - } - - $strLine = $self->regExpReplace($strLine, 'GROUP', 'strGroup = [^ \n,\[\]]+', '[^ \n,\[\]]+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', 'unknown group in backup manifest mapped to \'[^\']+', '[^\']+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', 'group"[ ]{0,1}:[ ]{0,1}"[^"]+', '[^"]+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', 'group=\"[^"]+', '[^"]+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', 'group for .* was not mapped to a name\, set to .+$', '[^ ]+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', 'set ownership [^\:]+:[^ ]+', '[^\:]+$'); - $strLine = $self->regExpReplace($strLine, 'GROUP', TEST_USER . '\, ' . TEST_GROUP, '[^ ]+$'); - - $strLine = $self->regExpReplace($strLine, 'USER', 'strRemoteHostUser = [^ \n,\[\]]+', '[^ \n,\[\]]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'unknown user in backup manifest mapped to \'[^\']+', '[^\']+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'strUser = [^ \n,\[\]]+', '[^ \n,\[\]]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'user"[ ]{0,1}:[ ]{0,1}"[^"]+', '[^"]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'user=\"[^"]+', '[^"]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', '^pg-host-user=.+$', '[^=]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'user for .* was not mapped to a name\, set to .+$', '[^ ]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'set ownership [^\:]+', '[^ ]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', 'cannot be used for restore\, set to .+$', '[^ ]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', '-user=[a-z0-9_]+', '[^=]+$'); - $strLine = $self->regExpReplace($strLine, 'USER', '[^ ]+\@db\-primary', '^[^\@]+'); - $strLine = $self->regExpReplace($strLine, 'USER', '[\( ]{1}' . TEST_USER . '[\,\)]{1}', TEST_USER); - - $strLine = $self->regExpReplace($strLine, 'EXEC-ID', '--exec-id=[^ ]+', '[^=]+$', false); - - $strLine = $self->regExpReplace($strLine, 'CIPHER-PASS', '^cipher\-pass\=.+$', '[^\=]+$'); - - $strLine = $self->regExpReplace($strLine, 'PORT', 'db[1-9]{0,1}-port=[0-9]+', '[0-9]+$'); - - # Replace year when it falls on a single line when executing ls -1R - $strLine = $self->regExpReplace($strLine, 'YEAR', '^20[0-9]{2}$'); - - # Replace year when it is the last part of a path when executing ls -1R - $strLine = $self->regExpReplace($strLine, 'YEAR', 'history\/20[0-9]{2}\:$', '20[0-9]{2}'); - - my $strTimestampRegExp = "[0-9]{4}-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]"; - - $strLine = $self->regExpReplace($strLine, 'TS_PATH', "PG\\_[0-9]\\.[0-9]\\_[0-9]{9}"); - my $strProjectVersion = PROJECT_VERSION; - $strProjectVersion =~ s/\./\\./g; - $strLine = $self->regExpReplace($strLine, 'VERSION', - "version[\"]{0,1}[ ]{0,1}[\:\=)]{1}[ ]{0,1}[\"]{0,1}" . $strProjectVersion, $strProjectVersion . '$'); - - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP', 'timestamp"[ ]{0,1}:[ ]{0,1}[0-9]{10}','[0-9]{10}$'); - - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP', - "timestamp-[a-z-]+[\"]{0,1}[ ]{0,1}[\:\=)]{1}[ ]{0,1}[\"]{0,1}[0-9]{10}", '[0-9]{10}$', false); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP', "start\" : [0-9]{10}", '[0-9]{10}$', false); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP', "stop\" : [0-9]{10}", '[0-9]{10}$', false); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP', TEST_GROUP . '\, [0-9]{10}', '[0-9]{10}$', false); - $strLine = $self->regExpReplace( - $strLine, 'TIMESTAMP', 'generated by pgBackRest restore on .*$', - '[0-9]{4}\-[0-9]{2}\-[0-9]{2} [0-9]{2}\:[0-9]{2}\:[0-9]{2}$', false); - $strLine = $self->regExpReplace($strLine, 'SIZE', "size\"[ ]{0,1}:[ ]{0,1}[0-9]+", '[0-9]+$', false); - $strLine = $self->regExpReplace($strLine, 'DELTA', "delta\"[ ]{0,1}:[ ]{0,1}[0-9]+", '[0-9]+$', false); - $strLine = $self->regExpReplace( - $strLine, 'TIMESTAMP-STR', "timestamp start\/stop: $strTimestampRegExp / $strTimestampRegExp", - "${strTimestampRegExp} / ${strTimestampRegExp}\$", false); - $strLine = $self->regExpReplace($strLine, 'CHECKSUM', 'checksum=[\"]{0,1}[0-f]{40}', '[0-f]{40}$', false); - - $strLine = $self->regExpReplace($strLine, 'LOG-LEVEL-FILE', 'log-level-file=[a-z]+', '[a-z]+$', false); - $strLine = $self->regExpReplace($strLine, 'LOG-SUBPROCESS', 'log-subprocess=[a-z]+', '[a-z]+$', false); - $strLine = $self->regExpReplace($strLine, '', ' --log-subprocess', undef, false); - $strLine = $self->regExpReplace($strLine, '', ' --no-log-subprocess', undef, false); - $strLine = $self->regExpReplace($strLine, 'BUFFER-SIZE', 'buffer-size=[0-9a-z]+', '[0-9a-z]+$', false); - - $strLine = $self->regExpReplace($strLine, 'REMOTE-PROCESS-TERMINATED-MESSAGE', - 'remote process terminated.*: (ssh.*|no output from terminated process)$', - '(ssh.*|no output from terminated process)$', false); - - # Full test time-based recovery - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', "\\, target \\'.*UTC", "[^\\']+UTC\$"); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', " \\-\\-target\\=\\\".*UTC", "[^\\\"]+UTC\$"); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', "^recovery_target_time \\= \\'.*UTC", "[^\\']+UTC\$"); - - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', "\\, target \\'.*\\+00", "[^\\']+\\+00\$"); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', " \\-\\-target\\=\\\".*\\+00", "[^\\\"]+\\+00\$"); - $strLine = $self->regExpReplace($strLine, 'TIMESTAMP-TARGET', "^recovery_target_time \\= \\'.*\\+00", "[^\\']+\\+00\$"); - - # Full test xid-based recovery (this expressions only work when time-based expressions above have already been applied - $strLine = $self->regExpReplace($strLine, 'XID-TARGET', "\\, target \\'[0-9]+", "[0-9]+\$"); - $strLine = $self->regExpReplace($strLine, 'XID-TARGET', " \\-\\-target\\=\\\"[0-9]+", "[0-9]+\$"); - $strLine = $self->regExpReplace($strLine, 'XID-TARGET', "^recovery_target_xid \\= \\'[0-9]+", "[0-9]+\$"); - - $strLine = $self->regExpReplace( - $strLine, 'MODIFICATION-TIME', '(' . (substr(time(), 0, 5) - 1) . '[0-9]{5}|' . substr(time(), 0, 5) . '[0-9]{5})', - '^[0-9]{10}$'); - - return $strLine; -} - -1; diff --git a/test/lib/pgBackRestTest/Common/RunTest.pm b/test/lib/pgBackRestTest/Common/RunTest.pm index 1f156d7ad..c1017b448 100644 --- a/test/lib/pgBackRestTest/Common/RunTest.pm +++ b/test/lib/pgBackRestTest/Common/RunTest.pm @@ -23,7 +23,6 @@ use pgBackRestDoc::ProjectInfo; use pgBackRestTest::Common::BuildTest; use pgBackRestTest::Common::DefineTest; use pgBackRestTest::Common::ExecuteTest; -use pgBackRestTest::Common::LogTest; use pgBackRestTest::Common::Storage; use pgBackRestTest::Common::StoragePosix; use pgBackRestTest::Common::VmTest; @@ -124,7 +123,6 @@ sub process $self->{bOutput}, $self->{bDryRun}, $self->{bCleanup}, - $self->{bLogForce}, $self->{strLogLevelTestFile}, $self->{strPgUser}, $self->{strGroup}, @@ -146,7 +144,6 @@ sub process {name => 'bOutput'}, {name => 'bDryRun'}, {name => 'bCleanup'}, - {name => 'bLogForce'}, {name => 'strLogLevelTestFile'}, {name => 'strPgUser'}, {name => 'strGroup'}, @@ -159,10 +156,9 @@ sub process $oStorage = new pgBackRestTest::Common::Storage( $self->testPath(), new pgBackRestTest::Common::StoragePosix({bFileSync => false, bPathSync => false})); - # Init, run, and end the test(s) + # Init, run, and clean the test(s) $self->initModule(); $self->run(); - $self->end(); $self->cleanModule(); # Make sure the correct number of tests ran @@ -193,34 +189,13 @@ sub begin ( $strOperation, $strDescription, - $bExpect, ) = logDebugParam ( __PACKAGE__ . '->begin', \@_, {name => 'strDescription'}, - {name => 'bExpect', required => false}, ); - # Save the previous expect log - $self->end(); - - # If bExpect is defined then it is an override of the default - $self->{bExpect} = false; - - if ($self->vm() eq VM_EXPECT) - { - if (defined($bExpect)) - { - $self->{bExpect} = $bExpect; - } - # Else get the default expect setting - else - { - $self->{bExpect} = (testDefModuleTest($self->{strModule}, $self->{strModuleTest}))->{&TESTDEF_EXPECT}; - } - } - # Increment the run counter; $self->{iRun}++; @@ -238,17 +213,6 @@ sub begin return false; } - # Create an ExpectTest object - if ($self->doExpect()) - { - $self->{oExpect} = new pgBackRestTest::Common::LogTest( - $self->module(), $self->moduleTest(), $self->runCurrent(), $self->doLogForce(), $strDescription, - $self->{strBackRestExe}, $self->pgBinPath(), $self->testPath(), $self->basePath()); - - &log(INFO, ' expect log: ' . $self->{oExpect}->{strFileName}); - } - - if (!$self->{bFirstTest}) { $self->cleanTest(); @@ -260,21 +224,6 @@ sub begin return true; } -#################################################################################################################################### -# end -#################################################################################################################################### -sub end -{ - my $self = shift; - - # Save the previous test log - if (defined($self->expect())) - { - $self->expect()->logWrite($self->basePath(), $self->testPath()); - delete($self->{oExpect}); - } -} - #################################################################################################################################### # testResult #################################################################################################################################### @@ -290,8 +239,6 @@ sub testResult $strExpected, $strDescription, $iWaitSeconds, - $strLogExpect, - $strLogLevel, ) = logDebugParam ( @@ -300,8 +247,6 @@ sub testResult {name => 'strExpected', required => false, trace => true}, {name => 'strDescription', trace => true}, {name => 'iWaitSeconds', optional => true, default => 0, trace => true}, - {name => 'strLogExpect', optional => true, trace => true}, - {name => 'strLogLevel', optional => true, default => WARN, trace => true}, ); &log(INFO, ' ' . $strDescription); @@ -311,10 +256,6 @@ sub testResult my $oWait = waitInit($iWaitSeconds); my $bDone = false; - # Save the current log levels and set the file level to strLogLevel, console to off, and timestamp false - my ($strLogLevelFile, $strLogLevelConsole, $strLogLevelStdErr, $bLogTimestamp) = logLevel(); - logLevelSet($strLogLevel, OFF, undef, false); - # Clear the cache for this test logFileCacheClear(); @@ -335,15 +276,10 @@ sub testResult $strActual = ${logDebugBuild(\@stryResult)}; } - # Restore the log level - logLevelSet($strLogLevelFile, $strLogLevelConsole, $strLogLevelStdErr, $bLogTimestamp); return true; } or do { - # Restore the log level - logLevelSet($strLogLevelFile, $strLogLevelConsole, $strLogLevelStdErr, $bLogTimestamp); - if (!isException(\$EVAL_ERROR)) { confess "unexpected standard Perl exception" . (defined($EVAL_ERROR) ? ": ${EVAL_ERROR}" : ''); @@ -367,23 +303,6 @@ sub testResult } } while (!$bDone); - # If we get here then test any warning message - if (defined($strLogExpect)) - { - my $strLogMessage = trim(logFileCache()); - - # Strip leading Process marker and whitespace from each line - $strLogMessage =~ s/^(P[0-9]{2})*\s+//mg; - - # If the expected message does not exactly match the logged message or is not at least contained in it, then error - if (!($strLogMessage eq $strLogExpect || $strLogMessage =~ $strLogExpect)) - { - confess &log(ERROR, - "the log message:\n$strLogMessage\ndoes not match or does not contain the expected message:\n" . - $strLogExpect); - } - } - # Return from function and log return values if any return logDebugReturn ( @@ -392,60 +311,6 @@ sub testResult ); } -#################################################################################################################################### -# testException -#################################################################################################################################### -sub testException -{ - my $self = shift; - my $fnSub = shift; - my $iCodeExpected = shift; - my $strMessageExpected = shift; - - # Output first line of the error message - &log(INFO, - " [${iCodeExpected}] " . (defined($strMessageExpected) ? (split('\n', $strMessageExpected))[0] : 'undef error message')); - - my $bError = false; - my $strError = - "exception ${iCodeExpected}, " . (defined($strMessageExpected) ? "'${strMessageExpected}'" : '[UNDEF]') . " was expected"; - - eval - { - logDisable(); - $fnSub->(); - logEnable(); - return true; - } - or do - { - logEnable(); - - if (!isException(\$EVAL_ERROR)) - { - confess "${strError} but actual was standard Perl exception" . (defined($EVAL_ERROR) ? ": ${EVAL_ERROR}" : ''); - } - - if (!($EVAL_ERROR->code() == $iCodeExpected && - (!defined($strMessageExpected) && !defined($EVAL_ERROR->message()) || - (defined($strMessageExpected) && defined($EVAL_ERROR->message()) && - ($EVAL_ERROR->message() eq $strMessageExpected || $EVAL_ERROR->message() =~ "^${strMessageExpected}" || - $EVAL_ERROR->message() =~ "^${strMessageExpected} at "))))) - { - confess - "${strError} but actual was " . $EVAL_ERROR->code() . ', ' . - (defined($EVAL_ERROR->message()) ? qw{'} . $EVAL_ERROR->message() . qw{'} : '[UNDEF]'); - } - - $bError = true; - }; - - if (!$bError) - { - confess "${strError} but no exception was thrown"; - } -} - #################################################################################################################################### # testRunName # @@ -544,12 +409,9 @@ sub backrestExeHelper {return shift->{strBackRestExeHelper}} sub basePath {return shift->{strBasePath}} sub dataPath {return shift->basePath() . '/test/data'} sub doCleanup {return shift->{bCleanup}} -sub doExpect {return shift->{bExpect}} -sub doLogForce {return shift->{bLogForce}} sub logLevelTestFile {return shift->{strLogLevelTestFile}} sub group {return shift->{strGroup}} sub isDryRun {return shift->{bDryRun}} -sub expect {return shift->{oExpect}} sub module {return shift->{strModule}} sub moduleTest {return shift->{strModuleTest}} sub pgBinPath {return shift->{strPgBinPath}} diff --git a/test/lib/pgBackRestTest/Common/VmTest.pm b/test/lib/pgBackRestTest/Common/VmTest.pm index 30e47b458..3c11172b1 100644 --- a/test/lib/pgBackRestTest/Common/VmTest.pm +++ b/test/lib/pgBackRestTest/Common/VmTest.pm @@ -93,10 +93,6 @@ use constant VM_U20 => 'u20'; use constant VM_D9 => 'd9'; push @EXPORT, qw(VM_D9); -# Defines the vm that will be used for expect testing -use constant VM_EXPECT => VM_RH7; - push @EXPORT, qw(VM_EXPECT); - # VM aliases for run matrices (numbered oldest to newest) use constant VM2 => VM_D9; push @EXPORT, qw(VM2); diff --git a/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm b/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm index 2d65dbada..e93777ed3 100644 --- a/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm +++ b/test/lib/pgBackRestTest/Env/ExpireEnvTest.pm @@ -49,7 +49,6 @@ sub new $self->{strBackRestExe}, $self->{oStorageRepo}, $self->{strPgPath}, - $self->{oLogTest}, $self->{oRunTest}, ) = logDebugParam @@ -59,7 +58,6 @@ sub new {name => 'strBackRestExe', trace => true}, {name => 'oStorageRepo', trace => true}, {name => 'strPgPath', trace => true}, - {name => 'oLogTest', required => false, trace => true}, {name => 'oRunTest', required => false, trace => true}, ); @@ -578,70 +576,6 @@ sub archiveCreate ); } -#################################################################################################################################### -# supplementalLog -#################################################################################################################################### -sub supplementalLog -{ - my $self = shift; - - # Assign function parameters, defaults, and log debug info - my - ( - $strOperation, - $strStanza - ) = - logDebugParam - ( - __PACKAGE__ . '->supplementalLog', \@_, - {name => 'strStanza'} - ); - - my $oStanza = $self->{oStanzaHash}{$strStanza}; - - if (defined($self->{oLogTest})) - { - $self->{oLogTest}->supplementalAdd( - $self->{oHostBackup}->repoPath() . "/backup/${strStanza}/backup.info", $$oStanza{strBackupDescription}, - ${storageRepo->get($self->{oHostBackup}->repoPath() . "/backup/${strStanza}/backup.info")}); - - # Output backup list - $self->{oLogTest}->logAdd( - 'ls ' . $self->{oHostBackup}->repoPath() . "/backup/${strStanza} | grep -v \"backup.*\"", undef, - join("\n", grep(!/^backup\.info.*$/i, storageRepo()->list("backup/${strStanza}")))); - - # Output archive manifest - my $rhManifest = storageRepo()->manifest($self->{oHostBackup}->repoArchivePath()); - my $strManifest; - my $strPrefix = ''; - - foreach my $strEntry (sort(keys(%{$rhManifest}))) - { - # Skip files - next if $strEntry eq ARCHIVE_INFO_FILE || $strEntry eq ARCHIVE_INFO_FILE . INI_COPY_EXT; - - if ($rhManifest->{$strEntry}->{type} eq 'd') - { - $strEntry = $self->{oHostBackup}->repoArchivePath($strEntry eq '.' ? undef : $strEntry); - - # &log(WARN, "DIR $strEntry"); - $strManifest .= (defined($strManifest) ? "\n" : '') . "${strEntry}:\n"; - $strPrefix = $strEntry; - } - else - { - # &log(WARN, "FILE $strEntry"); - $strManifest .= basename($strEntry) . "\n"; - } - } - - $self->{oLogTest}->logAdd( - 'ls -R ' . $self->{oHostBackup}->repoPath() . "/archive/${strStanza} | grep -v \"archive.info\"", undef, $strManifest); - } - - return logDebugReturn($strOperation); -} - #################################################################################################################################### # process #################################################################################################################################### @@ -673,8 +607,6 @@ sub process my $oStanza = $self->{oStanzaHash}{$strStanza}; - $self->supplementalLog($strStanza); - undef($$oStanza{strBackupDescription}); my $strCommand = @@ -706,9 +638,7 @@ sub process $strCommand .= ' expire'; - $self->{oHostBackup}->executeSimple($strCommand, {strComment => $strDescription, oLogTest => $self->{oLogTest}}); - - $self->supplementalLog($strStanza); + $self->{oHostBackup}->executeSimple($strCommand, {strComment => $strDescription}); # Return from function and log return values if any return logDebugReturn($strOperation); diff --git a/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm b/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm index 7d5c21fdd..a76435d55 100644 --- a/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostBackupTest.pm @@ -182,9 +182,6 @@ sub new # Set conf file $self->{strBackRestConfig} = $self->testPath() . '/' . PROJECT_CONF; - # Set LogTest object - $self->{oLogTest} = $$oParam{oLogTest}; - # Set synthetic $self->{bSynthetic} = defined($$oParam{bSynthetic}) && $$oParam{bSynthetic} ? true : false; @@ -341,8 +338,7 @@ sub backupBegin (defined($oParam->{iRepo}) ? ' --repo=' . $oParam->{iRepo} : '') . ($strType ne 'incr' ? " --type=${strType}" : '') . ' --stanza=' . (defined($oParam->{strStanza}) ? $oParam->{strStanza} : $self->stanza()) . ' backup', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, - oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()}); + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); $oExecuteBackup->begin(); @@ -509,39 +505,6 @@ sub backupEnd } } - # Add files to expect log - if (defined($self->{oLogTest}) && (!defined($$oParam{bSupplemental}) || $$oParam{bSupplemental})) - { - my $oHostGroup = hostGroupGet(); - - if (defined($oHostGroup->hostGet(HOST_DB_PRIMARY, true))) - { - $self->{oLogTest}->supplementalAdd($oHostGroup->hostGet(HOST_DB_PRIMARY)->testPath() . '/' . PROJECT_CONF); - } - - if (defined($oHostGroup->hostGet(HOST_DB_STANDBY, true))) - { - $self->{oLogTest}->supplementalAdd($oHostGroup->hostGet(HOST_DB_STANDBY)->testPath() . '/' . PROJECT_CONF); - } - - if (defined($oHostGroup->hostGet(HOST_BACKUP, true))) - { - $self->{oLogTest}->supplementalAdd($oHostGroup->hostGet(HOST_BACKUP)->testPath() . '/' . PROJECT_CONF); - } - - if ($self->synthetic() && $bManifestCompare) - { - $self->{oLogTest}->supplementalAdd( - $self->repoBackupPath("${strBackup}/" . FILE_MANIFEST), undef, - ${storageRepo()->get( - storageRepo()->openRead( - $self->repoBackupPath("${strBackup}/" . FILE_MANIFEST), - {strCipherPass => $self->cipherPassManifest()}))}); - $self->{oLogTest}->supplementalAdd( - $self->repoBackupPath(FILE_BACKUP_INFO), undef, ${storageRepo->get($self->repoBackupPath(FILE_BACKUP_INFO))}); - } - } - # Return from function and log return values if any return logDebugReturn ( @@ -805,8 +768,7 @@ sub check (defined($$oParam{iTimeout}) ? " --archive-timeout=$$oParam{iTimeout}" : '') . (defined($$oParam{strOptionalParam}) ? " $$oParam{strOptionalParam}" : '') . ' --stanza=' . $self->stanza() . ' check', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}); + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); @@ -850,8 +812,7 @@ sub expire (defined($$oParam{strOptionalParam}) ? " $$oParam{strOptionalParam}" : '') . ' --repo=' . (defined($oParam->{iRepo}) ? $oParam->{iRepo} : '1') . ' --stanza=' . $self->stanza() . ' expire', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}); + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); } #################################################################################################################################### @@ -886,7 +847,7 @@ sub info ' --log-level-console=warn' . (defined($$oParam{strStanza}) ? " --stanza=$$oParam{strStanza}" : '') . (defined($$oParam{strOutput}) ? " --output=$$oParam{strOutput}" : '') . ' info', - {strComment => $strComment, oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()}); + {strComment => $strComment, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); @@ -924,30 +885,16 @@ sub stanzaCreate ' --stanza=' . $self->stanza() . (defined($$oParam{strOptionalParam}) ? " $$oParam{strOptionalParam}" : '') . ' stanza-create', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}); + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); if (storageRepo()->exists('backup/' . $self->stanza() . qw{/} . FILE_BACKUP_INFO)) { - # If the info file was created, then add it to the expect log - if (defined($self->{oLogTest}) && $self->synthetic()) - { - $self->{oLogTest}->supplementalAdd( - $self->repoBackupPath(FILE_BACKUP_INFO), undef, ${storageRepo()->get($self->repoBackupPath(FILE_BACKUP_INFO))}); - } - # Get the passphrase for accessing the manifest file $self->{strCipherPassManifest} = (new pgBackRestTest::Env::BackupInfo($self->repoBackupPath()))->cipherPassSub(); } if (storageRepo()->exists('archive/' . $self->stanza() . qw{/} . ARCHIVE_INFO_FILE)) { - # If the info file was created, then add it to the expect log - if (defined($self->{oLogTest}) && $self->synthetic()) - { - $self->{oLogTest}->supplementalAdd( - $self->repoArchivePath(ARCHIVE_INFO_FILE), undef, ${storageRepo()->get($self->repoArchivePath(ARCHIVE_INFO_FILE))}); - } # Get the passphrase for accessing the archived files $self->{strCipherPassArchive} = @@ -990,23 +937,7 @@ sub stanzaUpgrade ' --stanza=' . $self->stanza() . (defined($$oParam{strOptionalParam}) ? " $$oParam{strOptionalParam}" : '') . ' stanza-upgrade', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}); - - # If the info file was created, then add it to the expect log - if (defined($self->{oLogTest}) && $self->synthetic() && - storageRepo()->exists('backup/' . $self->stanza() . qw{/} . FILE_BACKUP_INFO)) - { - $self->{oLogTest}->supplementalAdd( - $self->repoBackupPath(FILE_BACKUP_INFO), undef, ${storageRepo()->get($self->repoBackupPath(FILE_BACKUP_INFO))}); - } - - if (defined($self->{oLogTest}) && $self->synthetic() && - storageRepo()->exists('archive/' . $self->stanza() . qw{/} . ARCHIVE_INFO_FILE)) - { - $self->{oLogTest}->supplementalAdd( - $self->repoArchivePath(ARCHIVE_INFO_FILE), undef, ${storageRepo()->get($self->repoArchivePath(ARCHIVE_INFO_FILE))}); - } + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); @@ -1045,18 +976,7 @@ sub stanzaDelete ' --stanza=' . $self->stanza() . (defined($$oParam{strOptionalParam}) ? " $$oParam{strOptionalParam}" : '') . ' stanza-delete', - {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}); - - if (defined($self->{oLogTest}) && $self->synthetic()) - { - $self->{oLogTest}->logAdd( - 'list backup', $self->stanza() . ' must not exist for successful delete', - join("\n", storageRepo()->list('backup'))); - $self->{oLogTest}->logAdd( - 'list archive', $self->stanza() . ' must not exist for successful delete', - join("\n", storageRepo()->list('archive'))); - } + {strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus}, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); @@ -1090,7 +1010,7 @@ sub start $self->backrestExe() . ' --config=' . $self->backrestConfig() . (defined($$oParam{strStanza}) ? " --stanza=$$oParam{strStanza}" : '') . ' start', - {strComment => $strComment, oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()}); + {strComment => $strComment, bLogOutput => $self->synthetic()}); } #################################################################################################################################### @@ -1122,7 +1042,7 @@ sub stop ' --config=' . $self->backrestConfig() . (defined($$oParam{strStanza}) ? " --stanza=$$oParam{strStanza}" : '') . (defined($$oParam{bForce}) && $$oParam{bForce} ? ' --force' : '') . ' stop', - {strComment => $strComment, oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()}); + {strComment => $strComment, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); @@ -1904,8 +1824,7 @@ sub restore (defined($strTargetAction) && $strTargetAction ne 'pause' ? " --target-action=${strTargetAction}" : '') . (defined($iRepo) ? " --repo=${iRepo}" : '') . " --stanza=" . $self->stanza() . ' restore', - {strComment => $strComment, iExpectedExitStatus => $iExpectedExitStatus, oLogTest => $self->{oLogTest}, - bLogOutput => $self->synthetic()}, + {strComment => $strComment, iExpectedExitStatus => $iExpectedExitStatus, bLogOutput => $self->synthetic()}, $strUser); if (!defined($iExpectedExitStatus)) @@ -1916,13 +1835,6 @@ sub restore { $self->restoreCompare($strBackupExpected, dclone($rhExpectedManifest), $bTablespace); } - - if (defined($self->{oLogTest})) - { - $self->{oLogTest}->supplementalAdd( - $rhExpectedManifest->{&MANIFEST_SECTION_BACKUP_TARGET}{&MANIFEST_TARGET_PGDATA}{&MANIFEST_SUBKEY_PATH} . - "/recovery.conf"); - } } } diff --git a/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm index 73484031d..9418f35ce 100644 --- a/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbCommonTest.pm @@ -75,7 +75,6 @@ sub new strImage => $$oParam{strImage}, bTls => $oParam->{bTls}, strBackupDestination => $$oParam{strBackupDestination}, - oLogTest => $$oParam{oLogTest}, bSynthetic => $$oParam{bSynthetic}, bRepoLocal => $oParam->{bRepoLocal}, bRepoEncrypt => $oParam->{bRepoEncrypt}, @@ -154,7 +153,7 @@ sub archivePush ($bAsync ? '' : ' --no-archive-async') . " archive-push" . (defined($strSourceFile) ? " ${strSourceFile}" : '') . (defined($strOptionalParam) ? " ${strOptionalParam}" : ''), - {iExpectedExitStatus => $iExpectedError, oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()}); + {iExpectedExitStatus => $iExpectedError, bLogOutput => $self->synthetic()}); # Return from function and log return values if any return logDebugReturn($strOperation); diff --git a/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm index 2965e2945..ed6af2de3 100644 --- a/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbSyntheticTest.pm @@ -57,7 +57,6 @@ sub new strImage => containerRepo() . ':' . testRunGet()->vm() . "-test", bTls => $oParam->{bTls}, strBackupDestination => $$oParam{strBackupDestination}, - oLogTest => $$oParam{oLogTest}, bSynthetic => true, bStandby => $$oParam{bStandby}, bRepoLocal => $oParam->{bRepoLocal}, diff --git a/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm b/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm index 15ebcfd52..4d61d180d 100644 --- a/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm +++ b/test/lib/pgBackRestTest/Env/Host/HostDbTest.pm @@ -64,7 +64,6 @@ sub new strImage => containerRepo() . ':' . testRunGet()->vm() . "-test", bTls => $oParam->{bTls}, strBackupDestination => $$oParam{strBackupDestination}, - oLogTest => $$oParam{oLogTest}, bStandby => $$oParam{bStandby}, bRepoLocal => $oParam->{bRepoLocal}, bRepoEncrypt => $oParam->{bRepoEncrypt}, diff --git a/test/lib/pgBackRestTest/Env/HostEnvTest.pm b/test/lib/pgBackRestTest/Env/HostEnvTest.pm index 81997edbb..8f2ab4887 100644 --- a/test/lib/pgBackRestTest/Env/HostEnvTest.pm +++ b/test/lib/pgBackRestTest/Env/HostEnvTest.pm @@ -52,7 +52,6 @@ sub setup { my $self = shift; my $bSynthetic = shift; - my $oLogTest = shift; my $oConfigParam = shift; # Start object server first since it takes the longest @@ -87,7 +86,7 @@ sub setup $strBackupDestination = defined($$oConfigParam{strBackupDestination}) ? $$oConfigParam{strBackupDestination} : HOST_BACKUP; $oHostBackup = new pgBackRestTest::Env::Host::HostBackupTest( - {strBackupDestination => $strBackupDestination, bSynthetic => $bSynthetic, oLogTest => $oLogTest, + {strBackupDestination => $strBackupDestination, bSynthetic => $bSynthetic, bRepoLocal => $oConfigParam->{strStorage} eq POSIX, bRepoEncrypt => $bRepoEncrypt, bTls => $oConfigParam->{bTls}}); $oHostGroup->hostAdd($oHostBackup); } @@ -103,14 +102,14 @@ sub setup if ($bSynthetic) { $oHostDbPrimary = new pgBackRestTest::Env::Host::HostDbSyntheticTest( - {strBackupDestination => $strBackupDestination, oLogTest => $oLogTest, + {strBackupDestination => $strBackupDestination, bRepoLocal => $oConfigParam->{strStorage} eq POSIX, bRepoEncrypt => $bRepoEncrypt, bTls => $oConfigParam->{bTls}}); } else { $oHostDbPrimary = new pgBackRestTest::Env::Host::HostDbTest( - {strBackupDestination => $strBackupDestination, oLogTest => $oLogTest, bRepoLocal => - $oConfigParam->{strStorage} eq POSIX, bRepoEncrypt => $bRepoEncrypt, bTls => $oConfigParam->{bTls}}); + {strBackupDestination => $strBackupDestination, bRepoLocal => $oConfigParam->{strStorage} eq POSIX, + bRepoEncrypt => $bRepoEncrypt, bTls => $oConfigParam->{bTls}}); } $oHostGroup->hostAdd($oHostDbPrimary); @@ -121,8 +120,8 @@ sub setup if (defined($$oConfigParam{bStandby}) && $$oConfigParam{bStandby}) { $oHostDbStandby = new pgBackRestTest::Env::Host::HostDbTest( - {strBackupDestination => $strBackupDestination, bStandby => true, oLogTest => $oLogTest, - bRepoLocal => $oConfigParam->{strStorage} eq POSIX, bTls => $oConfigParam->{bTls}}); + {strBackupDestination => $strBackupDestination, bStandby => true, bRepoLocal => $oConfigParam->{strStorage} eq POSIX, + bTls => $oConfigParam->{bTls}}); $oHostGroup->hostAdd($oHostDbStandby); } diff --git a/test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm b/test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm index 2ce082a51..bfd4130ad 100644 --- a/test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm +++ b/test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm @@ -229,7 +229,7 @@ sub run # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), + true, {bHostBackup => $bRemote, bTls => $bTls, strStorage => $strStorage, bRepoEncrypt => $bEncrypt, strCompressType => NONE}); @@ -439,8 +439,8 @@ sub run #--------------------------------------------------------------------------------------------------------------------------- if ($self->runCurrent() == 1) { - $oHostDbPrimary->executeSimple($self->backrestExe() . " version", {oLogTest => $self->expect()}); - $oHostDbPrimary->executeSimple($self->backrestExe() . " help version", {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($self->backrestExe() . " version"); + $oHostDbPrimary->executeSimple($self->backrestExe() . " help version"); } # Full backup @@ -851,12 +851,6 @@ sub run $oManifest{&MANIFEST_SECTION_BACKUP_OPTION}{&MANIFEST_KEY_PROCESS_MAX} = $strStorage eq S3 ? 2 : 1; - if (!$bRemote) - { - # Remove the size-changed test file to avoid expect log churn - $oHostDbPrimary->manifestFileRemove(\%oManifest, MANIFEST_TARGET_PGDATA, 'changesize.txt'); - } - # Drop tablespace 11 #--------------------------------------------------------------------------------------------------------------------------- $strType = CFGOPTVAL_BACKUP_TYPE_DIFF; @@ -1100,9 +1094,7 @@ sub run #--------------------------------------------------------------------------------------------------------------------------- if (!$bRemote && $strStorage eq POSIX) { - executeTest( - 'ls -1Rtr ' . $oHostBackup->repoBackupPath(PATH_BACKUP_HISTORY), - {oLogTest => $self->expect(), bRemote => $bRemote}); + executeTest('ls -1Rtr ' . $oHostBackup->repoBackupPath(PATH_BACKUP_HISTORY), {bRemote => $bRemote}); } # Test backup from standby warning that standby not configured so option reset diff --git a/test/lib/pgBackRestTest/Module/Mock/MockArchiveStopTest.pm b/test/lib/pgBackRestTest/Module/Mock/MockArchiveStopTest.pm index a1261e05a..eb781db88 100644 --- a/test/lib/pgBackRestTest/Module/Mock/MockArchiveStopTest.pm +++ b/test/lib/pgBackRestTest/Module/Mock/MockArchiveStopTest.pm @@ -69,7 +69,7 @@ sub run # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), + true, {bHostBackup => $bRemote, bTls => $bTls, strCompressType => $strCompressType, bArchiveAsync => true, strStorage => $strStorage, bRepoEncrypt => $bEncrypt}); diff --git a/test/lib/pgBackRestTest/Module/Mock/MockArchiveTest.pm b/test/lib/pgBackRestTest/Module/Mock/MockArchiveTest.pm index 808d1a82c..e220486e3 100644 --- a/test/lib/pgBackRestTest/Module/Mock/MockArchiveTest.pm +++ b/test/lib/pgBackRestTest/Module/Mock/MockArchiveTest.pm @@ -105,7 +105,7 @@ sub run # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), + true, {bHostBackup => $bRemote, bTls => $bTls, strStorage => $strStorage, bRepoEncrypt => $bEncrypt, strCompressType => NONE}); @@ -136,12 +136,10 @@ sub run my $strArchiveFile1 = $self->walGenerate($strWalPath, PG_VERSION_94, 1, $strSourceFile1); $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile1}", - {iExpectedExitStatus => ERROR_REPO_INVALID, oLogTest => $self->expect()}); + $strCommandPush . " ${strWalPath}/${strSourceFile1}", {iExpectedExitStatus => ERROR_REPO_INVALID}); $oHostDbPrimary->executeSimple( - $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", - {iExpectedExitStatus => ERROR_REPO_INVALID, oLogTest => $self->expect()}); + $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => ERROR_REPO_INVALID}); #--------------------------------------------------------------------------------------------------------------------------- $oHostBackup->stanzaCreate('stanza create', {strOptionalParam => '--no-online'}); @@ -155,8 +153,7 @@ sub run $oHostDbPrimary->executeSimple( $strCommandPush . ($bRemote ? ' --cmd-ssh=/usr/bin/ssh' : '') . - " --compress-type=${strCompressType} ${strWalPath}/${strSourceFile}", - {oLogTest => $self->expect()}); + " --compress-type=${strCompressType} ${strWalPath}/${strSourceFile}"); push(@stryExpectedWAL, "${strSourceFile}-${strArchiveChecksum}.${strCompressType}"); # Test that the WAL was pushed @@ -172,14 +169,13 @@ sub run &log(INFO, ' get missing WAL'); $oHostDbPrimary->executeSimple( - $strCommandGet . " 700000007000000070000000 ${strWalPath}/RECOVERYXLOG", - {iExpectedExitStatus => 1, oLogTest => $self->expect()}); + $strCommandGet . " 700000007000000070000000 ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => 1}); #--------------------------------------------------------------------------------------------------------------------------- &log(INFO, ' get first WAL'); $oHostDbPrimary->executeSimple( - $strCommandGet . " ${strSourceFile} ${strWalPath}/RECOVERYXLOG", {oLogTest => $self->expect()}); + $strCommandGet . " ${strSourceFile} ${strWalPath}/RECOVERYXLOG"); # Check that the destination file exists if (storageTest()->exists("${strWalPath}/RECOVERYXLOG")) @@ -221,9 +217,7 @@ sub run # Push the WAL $oHostDbPrimary->executeSimple( - "${strCommandPush} --compress-type=${strCompressType} --archive-async --process-max=2" . - " ${strWalPath}/${strSourceFile}", - {oLogTest => $self->expect()}); + "${strCommandPush} --compress-type=${strCompressType} --archive-async --process-max=2 ${strWalPath}/${strSourceFile}"); push(@stryExpectedWAL, "${strSourceFile}-${strArchiveChecksum}.${strCompressType}"); # Make sure the temp file no longer exists if it was created @@ -259,9 +253,7 @@ sub run storageTest()->put("${strWalPath}/00000002.history", 'HISTORYDATA'); storageTest()->put("${strWalPath}/archive_status/00000002.history.ready", undef); - $oHostDbPrimary->executeSimple( - "${strCommandPush} --archive-async ${strWalPath}/00000002.history", - {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple("${strCommandPush} --archive-async ${strWalPath}/00000002.history"); if (!storageRepo()->exists($oHostBackup->repoArchivePath(PG_VERSION_94 . '-1/00000002.history'))) { @@ -279,8 +271,7 @@ sub run {&INFO_ARCHIVE_SECTION_DB_HISTORY => {'1' => {&INFO_ARCHIVE_KEY_DB_VERSION => '8.0'}}}); $oHostDbPrimary->executeSimple( - $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", - {iExpectedExitStatus => ERROR_REPO_INVALID, oLogTest => $self->expect()}); + $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => ERROR_REPO_INVALID}); # Restore the file to its original condition $oHostBackup->infoRestore($oHostBackup->repoArchivePath(ARCHIVE_INFO_FILE)); @@ -294,12 +285,10 @@ sub run &INFO_ARCHIVE_SECTION_DB_HISTORY => {'1' => {&INFO_ARCHIVE_KEY_DB_ID => 5000900090001855000}}}); $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}", - {iExpectedExitStatus => ERROR_REPO_INVALID, oLogTest => $self->expect()}); + $strCommandPush . " ${strWalPath}/${strSourceFile}", {iExpectedExitStatus => ERROR_REPO_INVALID}); $oHostDbPrimary->executeSimple( - $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", - {iExpectedExitStatus => ERROR_REPO_INVALID, oLogTest => $self->expect()}); + $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => ERROR_REPO_INVALID}); # Restore the file to its original condition $oHostBackup->infoRestore($oHostBackup->repoArchivePath(ARCHIVE_INFO_FILE)); @@ -309,13 +298,10 @@ sub run $oHostDbPrimary->stop({strStanza => $oHostDbPrimary->stanza()}); - $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}", - {iExpectedExitStatus => ERROR_STOP, oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}", {iExpectedExitStatus => ERROR_STOP}); $oHostDbPrimary->executeSimple( - $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", - {iExpectedExitStatus => ERROR_STOP, oLogTest => $self->expect()}); + $strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => ERROR_STOP}); $oHostDbPrimary->start({strStanza => $oHostDbPrimary->stanza()}); @@ -324,7 +310,7 @@ sub run #--------------------------------------------------------------------------------------------------------------------------- &log(INFO, ' WAL duplicate ok'); - $oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}", {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}"); #--------------------------------------------------------------------------------------------------------------------------- &log(INFO, ' WAL duplicate error'); @@ -332,8 +318,7 @@ sub run $strArchiveFile = $self->walGenerate($strWalPath, PG_VERSION_94, 1, $strSourceFile); $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}", - {iExpectedExitStatus => ERROR_ARCHIVE_DUPLICATE, oLogTest => $self->expect()}); + $strCommandPush . " ${strWalPath}/${strSourceFile}", {iExpectedExitStatus => ERROR_ARCHIVE_DUPLICATE}); # Remove WAL storageTest()->remove("${strWalPath}/${strSourceFile}", {bIgnoreMissing => false}); @@ -343,8 +328,7 @@ sub run $oHostDbPrimary->executeSimple( $strCommandGet . ($bRemote ? ' --cmd-ssh=/usr/bin/ssh' : '') . " --archive-async" . - ($strStorage eq POSIX ? " --repo-type=cifs" : '') . " ${strSourceFile} ${strWalPath}/RECOVERYXLOG", - {oLogTest => $self->expect()}); + ($strStorage eq POSIX ? " --repo-type=cifs" : '') . " ${strSourceFile} ${strWalPath}/RECOVERYXLOG"); # Check that the destination file exists if (storageTest()->exists("${strWalPath}/RECOVERYXLOG")) @@ -365,12 +349,9 @@ sub run &log(INFO, " get history file"); $oHostDbPrimary->executeSimple( - $strCommandGet . " --archive-async 00000001.history ${strWalPath}/00000001.history", - {iExpectedExitStatus => 1, oLogTest => $self->expect()}); + $strCommandGet . " --archive-async 00000001.history ${strWalPath}/00000001.history", {iExpectedExitStatus => 1}); - $oHostDbPrimary->executeSimple( - $strCommandGet . " --archive-async 00000002.history ${strWalPath}/00000002.history", - {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommandGet . " --archive-async 00000002.history ${strWalPath}/00000002.history"); if (${storageTest()->get("${strWalPath}/00000002.history")} ne 'HISTORYDATA') { @@ -381,9 +362,7 @@ sub run &log(INFO, ' .partial WAL'); $strArchiveFile = $self->walGenerate($strWalPath, PG_VERSION_94, 2, "${strSourceFile}.partial"); - $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}.partial", - {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}.partial"); $self->archiveCheck($oHostBackup, "${strSourceFile}.partial", $strArchiveChecksum); push(@stryExpectedWAL, "${strSourceFile}.partial-${strArchiveChecksum}"); @@ -391,8 +370,7 @@ sub run #--------------------------------------------------------------------------------------------------------------------------- &log(INFO, ' .partial WAL duplicate'); - $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}.partial", {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}.partial"); $self->archiveCheck($oHostBackup, "${strSourceFile}.partial", $strArchiveChecksum); #--------------------------------------------------------------------------------------------------------------------------- @@ -400,8 +378,7 @@ sub run $strArchiveFile = $self->walGenerate($strWalPath, PG_VERSION_94, 1, "${strSourceFile}.partial"); $oHostDbPrimary->executeSimple( - $strCommandPush . " ${strWalPath}/${strSourceFile}.partial", - {iExpectedExitStatus => ERROR_ARCHIVE_DUPLICATE, oLogTest => $self->expect()}); + $strCommandPush . " ${strWalPath}/${strSourceFile}.partial", {iExpectedExitStatus => ERROR_ARCHIVE_DUPLICATE}); #--------------------------------------------------------------------------------------------------------------------------- $self->testResult( diff --git a/test/lib/pgBackRestTest/Module/Mock/MockExpireTest.pm b/test/lib/pgBackRestTest/Module/Mock/MockExpireTest.pm index 6a946b5d4..a74b3500f 100644 --- a/test/lib/pgBackRestTest/Module/Mock/MockExpireTest.pm +++ b/test/lib/pgBackRestTest/Module/Mock/MockExpireTest.pm @@ -57,21 +57,16 @@ sub run my $strStorage = $rhRun->{storage}; my $bEncrypt = $rhRun->{encrypt}; - if ($strStorage ne POSIX && ($self->vm() eq VM3)) - { - confess &log("cannot configure non-posix storage for expect log tests"); - } - ############################################################################################################################ if ($self->begin("simple, enc ${bEncrypt}, storage ${strStorage}")) { # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), {strStorage => $strStorage, bRepoEncrypt => $bEncrypt}); + true, {strStorage => $strStorage, bRepoEncrypt => $bEncrypt}); # Create the test object my $oExpireTest = new pgBackRestTest::Env::ExpireEnvTest( - $oHostBackup, $self->backrestExe(), storageRepo(), $oHostDbPrimary->dbPath(), $self->expect(), $self); + $oHostBackup, $self->backrestExe(), storageRepo(), $oHostDbPrimary->dbPath(), $self); $oExpireTest->stanzaCreate($self->stanza(), PG_VERSION_92); @@ -159,11 +154,11 @@ sub run { # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), {strStorage => $strStorage, bRepoEncrypt => $bEncrypt}); + true, {strStorage => $strStorage, bRepoEncrypt => $bEncrypt}); # Create the test object my $oExpireTest = new pgBackRestTest::Env::ExpireEnvTest( - $oHostBackup, $self->backrestExe(), storageRepo(), $oHostDbPrimary->dbPath(), $self->expect(), $self); + $oHostBackup, $self->backrestExe(), storageRepo(), $oHostDbPrimary->dbPath(), $self); $oExpireTest->stanzaCreate($self->stanza(), PG_VERSION_92); diff --git a/test/lib/pgBackRestTest/Module/Mock/MockStanzaTest.pm b/test/lib/pgBackRestTest/Module/Mock/MockStanzaTest.pm index 18c8bcc1b..915ad0bb2 100644 --- a/test/lib/pgBackRestTest/Module/Mock/MockStanzaTest.pm +++ b/test/lib/pgBackRestTest/Module/Mock/MockStanzaTest.pm @@ -64,7 +64,7 @@ sub run # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - true, $self->expect(), + true, {bHostBackup => $bRemote, bTls => $bTls, strStorage => $strStorage, bRepoEncrypt => $bEncrypt, strCompressType => $strCompressType}); @@ -129,7 +129,7 @@ sub run my $strCommand = $oHostDbPrimary->backrestExe() . ' --config=' . $oHostDbPrimary->backrestConfig() . ' --stanza=db archive-push'; - $oHostDbPrimary->executeSimple($strCommand . " ${strSourceFile}", {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommand . " ${strSourceFile}"); # With data existing in the archive dir, move the info files and confirm failure forceStorageMove(storageRepo(), $strArchiveInfoFile, $strArchiveInfoOldFile, {bRecurse => false}); @@ -149,7 +149,7 @@ sub run #-------------------------------------------------------------------------------------------------------------------------- $strArchiveFile = $self->walSegment(1, 1, 2); $strSourceFile = $self->walGenerate($strWalPath, PG_VERSION_93, 1, $strArchiveFile); - $oHostDbPrimary->executeSimple($strCommand . " ${strSourceFile}", {oLogTest => $self->expect()}); + $oHostDbPrimary->executeSimple($strCommand . " ${strSourceFile}"); # Fail on archive push due to mismatch of DB since stanza not upgraded #-------------------------------------------------------------------------------------------------------------------------- @@ -178,8 +178,7 @@ sub run # Attempt to get the last archive log that was pushed to this repo $oHostDbPrimary->executeSimple( $oHostDbPrimary->backrestExe() . ' --config=' . $oHostDbPrimary->backrestConfig() . - " --stanza=db archive-get ${strArchiveFile} " . $oHostDbPrimary->dbBasePath() . '/pg_xlog/RECOVERYXLOG', - {oLogTest => $self->expect()}); + " --stanza=db archive-get ${strArchiveFile} " . $oHostDbPrimary->dbBasePath() . '/pg_xlog/RECOVERYXLOG'); # Copy the new pg_control back so the tests can continue with the upgraded stanza $self->controlGenerate($oHostDbPrimary->dbBasePath(), PG_VERSION_94); diff --git a/test/lib/pgBackRestTest/Module/Real/RealAllTest.pm b/test/lib/pgBackRestTest/Module/Real/RealAllTest.pm index aa3b645f9..126a7da61 100644 --- a/test/lib/pgBackRestTest/Module/Real/RealAllTest.pm +++ b/test/lib/pgBackRestTest/Module/Real/RealAllTest.pm @@ -81,22 +81,20 @@ sub run my $iRepoTotal = $rhRun->{repo}; my $bBundle = $rhRun->{bnd}; - # Use a specific VM and version of PostgreSQL for expect testing. This version will also be used to run tests that are not - # version specific. - my $bExpectVersion = $self->vm() eq VM_EXPECT && $self->pgVersion() eq PG_VERSION_96; + # Some tests are not version specific so only run them on a single version of PostgreSQL + my $bNonVersionSpecific = $self->pgVersion() eq PG_VERSION_96; # Increment the run, log, and decide whether this unit test should be run - next if (!$self->begin( + next if !$self->begin( "bkp ${bHostBackup}, sby ${bHostStandby}, tls ${bTls}, dst ${strBackupDestination}, cmp ${strCompressType}" . - ", storage ${strStorage}, enc ${bRepoEncrypt}", - $bExpectVersion)); + ", storage ${strStorage}, enc ${bRepoEncrypt}"); # Create hosts, file object, and config my ($oHostDbPrimary, $oHostDbStandby, $oHostBackup) = $self->setup( - false, $self->expect(), + false, {bHostBackup => $bHostBackup, bStandby => $bHostStandby, bTls => $bTls, strBackupDestination => $strBackupDestination, - strCompressType => $strCompressType, bArchiveAsync => false, strStorage => $strStorage, - bRepoEncrypt => $bRepoEncrypt, iRepoTotal => $iRepoTotal, bBundle => $bBundle}); + strCompressType => $strCompressType, bArchiveAsync => false, strStorage => $strStorage, + bRepoEncrypt => $bRepoEncrypt, iRepoTotal => $iRepoTotal, bBundle => $bBundle}); # Some commands will fail because of the bogus host created when a standby is present. These options reset the bogus host # so it won't interfere with commands that won't tolerate a connection failure. @@ -209,9 +207,9 @@ sub run } # Make a new backup with expire-auto disabled then run the expire command and compare backup numbers to ensure that expire - # was really disabled. This test is not version specific so is run on only the expect version. + # was really disabled. This test is not version specific so is run on only one version. #--------------------------------------------------------------------------------------------------------------------------- - if ($bExpectVersion) + if ($bNonVersionSpecific) { my $oBackupInfo = new pgBackRestTest::Env::BackupInfo($oHostBackup->repoBackupPath()); push(my @backupLst1, $oBackupInfo->list()); @@ -350,8 +348,8 @@ sub run #--------------------------------------------------------------------------------------------------------------------------- # Restart the cluster to check for any errors before continuing since the stop tests will definitely create errors and the # logs will need to be deleted to avoid causing issues further down the line. This test is not version specific so is run on - # only the expect version. - if ($bExpectVersion) + # only one version. + if ($bNonVersionSpecific) { confess "test must be performed on posix storage" if $strStorage ne POSIX; @@ -752,9 +750,9 @@ sub run $oHostDbPrimary->clusterStop(); # Stanza-delete --force without access to pgbackrest on database host. This test is not version specific so is run on only - # the expect version. + # one version. #--------------------------------------------------------------------------------------------------------------------------- - if ($bExpectVersion) + if ($bNonVersionSpecific) { # Make sure this test has a backup host to work with confess "test must run with backup dst = " . HOST_BACKUP if !$bHostBackup; diff --git a/test/test.pl b/test/test.pl index 554cdeb11..821e52549 100755 --- a/test/test.pl +++ b/test/test.pl @@ -70,7 +70,6 @@ test.pl [options] --clean clean working and result paths for a completely fresh build --clean-only execute --clean and exit --pg-version version of postgres to test (all, defaults to minimal) - --log-force force overwrite of current test log files --build-only build the binary (and honor --build-package) but don't run tests --build-package build the package --build-max max processes to use for builds (default 4) @@ -81,7 +80,6 @@ test.pl [options] --no-gen do not run code generation --gen-check check that auto-generated files are correct (used in CI to detect changes) --code-count generate code counts - --expect --vm=rh7 --pg-version=9.6 --log-force --no-valgrind don't run valgrind on C unit tests (saves time) --no-coverage don't run coverage on C unit tests (saves time) --no-coverage-report run coverage but don't generate coverage report (saves time) @@ -143,7 +141,6 @@ my $bVersion = false; my $bHelp = false; my $bQuiet = false; my $strPgVersion = 'minimal'; -my $bLogForce = false; my $strVm; my $bVmBuild = false; my $bVmForce = false; @@ -163,7 +160,6 @@ my $bNoGen = false; my $bCodeCount = false; my $bBackTrace = false; my $bProfile = false; -my $bExpect = false; my $bNoValgrind = false; my $bNoOptimize = false; my $bNoDebug = false; @@ -198,7 +194,6 @@ GetOptions ('q|quiet' => \$bQuiet, 'dry-run' => \$bDryRun, 'no-cleanup' => \$bNoCleanup, 'pg-version=s' => \$strPgVersion, - 'log-force' => \$bLogForce, 'build-only' => \$bBuildOnly, 'build-package' => \$bBuildPackage, 'build-max=s' => \$iBuildMax, @@ -215,7 +210,6 @@ GetOptions ('q|quiet' => \$bQuiet, 'code-count' => \$bCodeCount, 'backtrace' => \$bBackTrace, 'profile' => \$bProfile, - 'expect' => \$bExpect, 'no-valgrind' => \$bNoValgrind, 'no-optimize' => \$bNoOptimize, 'no-debug', => \$bNoDebug, @@ -279,16 +273,6 @@ eval $bNoCoverage = true; } - ################################################################################################################################ - # Update options for --expect - ################################################################################################################################ - if ($bExpect) - { - $strVm = VM_EXPECT; - $strPgVersion = '9.6'; - $bLogForce = true; - } - ################################################################################################################################ # Setup ################################################################################################################################ @@ -1032,8 +1016,8 @@ eval my $oJob = new pgBackRestTest::Common::JobTest( $oStorageTest, $strBackRestBase, $strTestPath, $$oyTestRun[$iTestIdx], $bDryRun, $bVmOut, $iVmIdx, $iVmMax, $strMakeCmd, $iTestIdx, $iTestMax, $strLogLevel, $strLogLevelTest, $strLogLevelTestFile, !$bNoLogTimestamp, - $bLogForce, $bShowOutputAsync, $bNoCleanup, $iRetry, !$bNoValgrind, !$bNoCoverage, $bCoverageSummary, - !$bNoOptimize, $bBackTrace, $bProfile, $iScale, $strTimeZone, !$bNoDebug, $bDebugTestTrace, + $bShowOutputAsync, $bNoCleanup, $iRetry, !$bNoValgrind, !$bNoCoverage, $bCoverageSummary, !$bNoOptimize, + $bBackTrace, $bProfile, $iScale, $strTimeZone, !$bNoDebug, $bDebugTestTrace, $iBuildMax / $iVmMax < 1 ? 1 : int($iBuildMax / $iVmMax)); $iTestIdx++; @@ -1096,7 +1080,7 @@ eval $strPgVersion ne 'minimal' ? $strPgSqlBin: undef, # Pg bin path $strPgVersion ne 'minimal' ? $strPgVersion: undef, # Pg version $stryModule[0], $stryModuleTest[0], \@iyModuleTestRun, # Module info - $bVmOut, $bDryRun, $bNoCleanup, $bLogForce, # Test options + $bVmOut, $bDryRun, $bNoCleanup, # Test options $strLogLevelTestFile, # Log options TEST_USER, TEST_GROUP); # User/group info
Remove integration expect log testing.