mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
1708f1d151
ScalityS3 has not received any maintenance in years and is slow to start which is bad for testing. Replace it with minio which starts quickly and ships as a single executable or a tiny container. Minio has stricter limits on allowable characters but should still provide enough coverage to show that our encoding is working correctly. This commit also includes the upgrade to openssl 1.1.1 in the Ubuntu 18.04 container.
735 lines
42 KiB
Plaintext
735 lines
42 KiB
Plaintext
run 002 - remote 1, s3 1, enc 1
|
|
===============================
|
|
|
|
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 stanza-create
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stanza-create command begin [BACKREST-VERSION]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [041]: raised from remote process on 'db-master': unable to open [TEST_PATH]/db-master/db/base/global/pg_control
|
|
P00 INFO: stanza-create command end: aborted with exception [041]
|
|
|
|
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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [055]: archive.info does not exist but is required to push/get WAL segments
|
|
HINT: is archive_command configured 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: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-upgrade command end: aborted with exception [055]
|
|
|
|
stanza-create db - successfully create the 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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
stanza-create db - do not fail on rerun of stanza-create - info files exist and DB section ok (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 INFO: stanza-create was already performed
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
stanza-create db - fail on database mismatch without force option (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [028]: backup info file or archive info file invalid
|
|
HINT: use stanza-upgrade if the database has been upgraded or use --force
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: aborted with exception [028]
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 INFO: the stanza data is already up to date
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-upgrade command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001] --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/db-master/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/db-master/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/db-master/log --log-subprocess --no-log-timestamp --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-user=[USER-2] --stanza=db
|
|
P00 INFO: pushed WAL file '000000010000000100000001' to the archive
|
|
P00 INFO: archive-push command end: completed successfully
|
|
|
|
stanza-create db - force create archive.info from gz file (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --force --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [055]: archive information missing and repo is encrypted and info file(s) are missing, --force cannot be used
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: aborted with exception [055]
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: archive-push command begin [BACKREST-VERSION]: [[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002] --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/db-master/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/db-master/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/db-master/log --log-subprocess --no-log-timestamp --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-user=[USER-2] --stanza=db
|
|
P00 INFO: pushed WAL file '000000010000000100000002' to the archive
|
|
P00 INFO: archive-push command end: completed successfully
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 ERROR: [044]: PostgreSQL version 9.4, system-id 1000000000000000094 do not match 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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-upgrade command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: archive-get command begin [BACKREST-VERSION]: [000000010000000100000002, [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG] --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/db-master/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/db-master/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/db-master/log --log-subprocess --no-log-timestamp --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-host=backup --repo1-host-cmd=[BACKREST-BIN] --repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf --repo1-host-user=[USER-2] --stanza=db
|
|
P00 INFO: found 000000010000000100000002 in the archive
|
|
P00 INFO: archive-get command end: completed successfully
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-master/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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=full
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG (16MB, 33%) checksum 488ba4b8b98acc510bce86b8f16e3c1ed9886a29
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 (16MB, 66%) checksum 488ba4b8b98acc510bce86b8f16e3c1ed9886a29
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 (16MB, 99%) checksum e40de8cea99dd469c3efb47f5f33a73c7390fb9c
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/global/pg_control (8KB, 100%) checksum 4c77c900f7af0d9ab13fa9982051a42e0b637f6c
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100%)
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100%)
|
|
P00 INFO: full backup size = 48MB
|
|
P00 INFO: new backup label = [BACKUP-FULL-1]
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: backup command end: completed successfully
|
|
P00 INFO: expire command begin
|
|
P00 INFO: remove archive path: /archive/db/9.3-1
|
|
P00 INFO: full backup total < 2 - using oldest full backup for 9.4-2 archive retention
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: expire command end: completed successfully
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
compress-level=3
|
|
compress-level-network=1
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=detail
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
log-subprocess=y
|
|
log-timestamp=n
|
|
protocol-timeout=60
|
|
repo1-host=backup
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
repo1-host-user=[USER-2]
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
-------------------------------------------------------
|
|
[db]
|
|
pg1-host=db-master
|
|
pg1-host-cmd=[BACKREST-BIN]
|
|
pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
pg1-host-user=[USER-1]
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
compress-level=3
|
|
compress-level-network=1
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=detail
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
log-subprocess=y
|
|
log-timestamp=n
|
|
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
|
|
|
|
stanza-create db - fail no force to recreate the stanza from backups (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [055]: backup information missing and repo is encrypted and info file(s) are missing, --force cannot be used
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: aborted with exception [055]
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
stanza-create db - use force to recreate the stanza from backups (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --force --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [055]: backup information missing and repo is encrypted and info file(s) are missing, --force cannot be used
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-create command end: aborted with exception [055]
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
stanza-upgrade db - successfully upgrade - no info file mismatch (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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: stanza-upgrade command end: completed successfully
|
|
|
|
+ supplemental file: /backup/db/backup.info
|
|
-------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[backup:current]
|
|
[BACKUP-FULL-1]={"backrest-format":5,"backrest-version":"[VERSION-1]","backup-archive-start":null,"backup-archive-stop":null,"backup-info-repo-size":[SIZE],"backup-info-repo-size-delta":[DELTA],"backup-info-size":[SIZE],"backup-info-size-delta":[DELTA],"backup-timestamp-start":[TIMESTAMP],"backup-timestamp-stop":[TIMESTAMP],"backup-type":"full","db-id":2,"option-archive-check":true,"option-archive-copy":true,"option-backup-standby":false,"option-checksum-page":false,"option-compress":true,"option-hardlink":false,"option-online":false}
|
|
|
|
[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"}
|
|
|
|
+ supplemental file: /archive/db/archive.info
|
|
---------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
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"}
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --archive-push-queue-max=33554432 --stanza=db archive-push [TEST_PATH]/db-master/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]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --no-online --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-retention-full=2 --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db --start-fast --type=diff
|
|
P00 WARN: no prior backup exists, diff backup has been changed to full
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG (16MB, 33%) checksum 488ba4b8b98acc510bce86b8f16e3c1ed9886a29
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 (16MB, 66%) checksum 488ba4b8b98acc510bce86b8f16e3c1ed9886a29
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 (16MB, 99%) checksum 65b64687e7bfd1a918c6144f84a133f03e50ac57
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/global/pg_control (8KB, 100%) checksum 4969435f3b36bfaa0f5a486bef97f1988a135520
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/archive_status/000000010000000100000002.ready (0B, 100%)
|
|
P01 INFO: backup file db-master:[TEST_PATH]/db-master/db/base/pg_xlog/archive_status/000000010000000100000001.ready (0B, 100%)
|
|
P00 INFO: full backup size = 48MB
|
|
P00 INFO: new backup label = [BACKUP-FULL-2]
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: backup command end: completed successfully
|
|
P00 INFO: expire command begin
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-STATISTICS]
|
|
P00 INFO: expire command end: completed successfully
|
|
|
|
+ supplemental file: [TEST_PATH]/db-master/pgbackrest.conf
|
|
----------------------------------------------------------
|
|
[db]
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
compress-level=3
|
|
compress-level-network=1
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/db-master/lock
|
|
log-level-console=detail
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/db-master/log
|
|
log-subprocess=y
|
|
log-timestamp=n
|
|
protocol-timeout=60
|
|
repo1-host=backup
|
|
repo1-host-cmd=[BACKREST-BIN]
|
|
repo1-host-config=[TEST_PATH]/backup/pgbackrest.conf
|
|
repo1-host-user=[USER-2]
|
|
spool-path=[TEST_PATH]/db-master/spool
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/pgbackrest.conf
|
|
-------------------------------------------------------
|
|
[db]
|
|
pg1-host=db-master
|
|
pg1-host-cmd=[BACKREST-BIN]
|
|
pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf
|
|
pg1-host-user=[USER-1]
|
|
pg1-path=[TEST_PATH]/db-master/db/base
|
|
|
|
[global]
|
|
compress-level=3
|
|
compress-level-network=1
|
|
db-timeout=45
|
|
lock-path=[TEST_PATH]/backup/lock
|
|
log-level-console=detail
|
|
log-level-file=trace
|
|
log-level-stderr=off
|
|
log-path=[TEST_PATH]/backup/log
|
|
log-subprocess=y
|
|
log-timestamp=n
|
|
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
|
|
|
|
info all stanzas - db upgraded - db-1 and db-2 listed (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --log-level-console=warn --output=json info
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
[
|
|
{
|
|
"archive" : [
|
|
{
|
|
"database" : {
|
|
"id" : 2
|
|
},
|
|
"id" : "9.4-2",
|
|
"max" : "000000010000000100000001",
|
|
"min" : "000000010000000100000001"
|
|
},
|
|
{
|
|
"database" : {
|
|
"id" : 3
|
|
},
|
|
"id" : "9.5-3",
|
|
"max" : "000000010000000100000001",
|
|
"min" : "000000010000000100000001"
|
|
}
|
|
],
|
|
"backup" : [
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 2
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-FULL-1]",
|
|
"prior" : null,
|
|
"reference" : null,
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "full"
|
|
},
|
|
{
|
|
"archive" : {
|
|
"start" : null,
|
|
"stop" : null
|
|
},
|
|
"backrest" : {
|
|
"format" : 5,
|
|
"version" : "[VERSION-1]"
|
|
},
|
|
"database" : {
|
|
"id" : 3
|
|
},
|
|
"info" : {
|
|
"delta" : [DELTA],
|
|
"repository" : {
|
|
"delta" : [DELTA],
|
|
"size" : [SIZE]
|
|
},
|
|
"size" : [SIZE]
|
|
},
|
|
"label" : "[BACKUP-FULL-2]",
|
|
"prior" : null,
|
|
"reference" : null,
|
|
"timestamp" : {
|
|
"start" : [TIMESTAMP],
|
|
"stop" : [TIMESTAMP]
|
|
},
|
|
"type" : "full"
|
|
}
|
|
],
|
|
"cipher" : "aes-256-cbc",
|
|
"db" : [
|
|
{
|
|
"id" : 1,
|
|
"system-id" : 1000000000000000093,
|
|
"version" : "9.3"
|
|
},
|
|
{
|
|
"id" : 2,
|
|
"system-id" : 1000000000000000094,
|
|
"version" : "9.4"
|
|
},
|
|
{
|
|
"id" : 3,
|
|
"system-id" : 1000000000000000095,
|
|
"version" : "9.5"
|
|
}
|
|
],
|
|
"name" : "db",
|
|
"status" : {
|
|
"code" : 0,
|
|
"message" : "ok"
|
|
}
|
|
}
|
|
]
|
|
|
|
stanza-delete db - fail on missing stop file (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stanza-delete
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 ERROR: [055]: stop file does not exist for stanza 'db'
|
|
HINT: has the pgbackrest stop command been run on this server?
|
|
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 (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stop
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stop command begin [BACKREST-VERSION]: --config=[TEST_PATH]/backup/pgbackrest.conf --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 INFO: stop command end: completed successfully
|
|
|
|
stanza-delete db - successfully delete the stanza (backup host)
|
|
> [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --stanza=db stanza-delete
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
P00 INFO: stanza-delete command begin [BACKREST-VERSION]: --compress-level=3 --compress-level-network=1 --config=[TEST_PATH]/backup/pgbackrest.conf --db-timeout=45 --lock-path=[TEST_PATH]/backup/lock --log-level-console=detail --log-level-file=trace --log-level-stderr=off --log-path=[TEST_PATH]/backup/log --log-subprocess --no-log-timestamp --pg1-host=db-master --pg1-host-cmd=[BACKREST-BIN] --pg1-host-config=[TEST_PATH]/db-master/pgbackrest.conf --pg1-host-user=[USER-1] --pg1-path=[TEST_PATH]/db-master/db/base --protocol-timeout=60 --repo1-cipher-pass=<redacted> --repo1-cipher-type=aes-256-cbc --repo1-path=/ --repo1-s3-bucket=pgbackrest-dev --repo1-s3-endpoint=s3.amazonaws.com --repo1-s3-key=<redacted> --repo1-s3-key-secret=<redacted> --repo1-s3-region=us-east-1 --no-repo1-s3-verify-tls --repo1-type=s3 --stanza=db
|
|
P00 DETAIL: tls statistics:[TLS-STATISTICS]
|
|
P00 INFO: http statistics:[HTTP-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
|
|
------------------------------------------------------------------------------------------------------------------------------------
|