mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-16 10:20:02 +02:00
f2b3dda647
This is a better approach than 93320b8
(reverted in this commit) because it ensures that the remote type will be none so any functions that utilize optionRemoteTypeTest will work correctly.
This bug was only an issue when backup-host was not properly configured on the database host.
83 lines
8.3 KiB
Plaintext
83 lines
8.3 KiB
Plaintext
run 007 - rmt 1, cmp 1, exists 0
|
|
================================
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
INFO: archive-get start: --backup-host=backup --backup-user=backrest --cmd-remote=[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --config-remote=[TEST_PATH]/backup/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db
|
|
INFO: get WAL segment 000000010000000100000001
|
|
DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strSourceArchive = 000000010000000100000001
|
|
DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = [BACKREST-BIN] --command=archive-get --config=[TEST_PATH]/backup/pgbackrest.conf --repo-path=[TEST_PATH]/backup/repo --stanza=db remote, strHost = backup, strUser = [USER-1]
|
|
DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@backup '[BACKREST-BIN] --command=archive-get --config=[TEST_PATH]/backup/pgbackrest.conf --repo-path=[TEST_PATH]/backup/repo --stanza=db remote', strId = backup, strName = remote
|
|
DEBUG: File->new(): iThreadIdx = [undef], oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strRemote = backup, strStanza = db
|
|
DEBUG: Archive->getCheck(): oFile = [object], strDbVersion = [undef], ullDbSysId = [undef]
|
|
DEBUG: Db->info(): oFile = [object], strDbPath = [TEST_PATH]/db-master/db/base
|
|
DEBUG: Db->info=>: iCatalogVersion = 201306121, iControlVersion = 937, strDbVersion = 9.3, ullDbSysId = 6156904820763115222
|
|
ERROR: [130]: raised on backup host: archive.info does not exist but is required to get WAL segments
|
|
HINT: is archive_command configured in postgresql.conf?
|
|
HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
|
|
DEBUG: Exit::exitSafe(): iExitCode = 130, strSignal = [undef]
|
|
INFO: archive-get stop
|
|
DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
|
|
|
|
+ supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info
|
|
--------------------------------------------------------------------
|
|
[backrest]
|
|
backrest-checksum="[CHECKSUM]"
|
|
backrest-format=5
|
|
backrest-version="[VERSION-1]"
|
|
|
|
[db]
|
|
db-id=1
|
|
db-system-id=6156904820763115222
|
|
db-version="9.3"
|
|
|
|
[db:history]
|
|
1={"db-id":6156904820763115222,"db-version":"9.3"}
|
|
|
|
stop all stanzas (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
INFO: stop start: --backup-host=backup --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo
|
|
DEBUG: Exit::exitSafe(): iExitCode = 0, strSignal = [undef]
|
|
INFO: stop stop
|
|
DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
INFO: archive-get start: --backup-host=backup --backup-user=backrest --cmd-remote=[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --config-remote=[TEST_PATH]/backup/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db
|
|
INFO: get WAL segment 000000090000000900000009
|
|
DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009
|
|
ERROR: [137]: stop file exists for all stanzas
|
|
DEBUG: Exit::exitSafe(): iExitCode = 137, strSignal = [undef]
|
|
INFO: archive-get stop
|
|
DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
|
|
|
|
start all stanzas (db-master host)
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
INFO: start start: --backup-host=backup --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo
|
|
DEBUG: Exit::exitSafe(): iExitCode = 0, strSignal = [undef]
|
|
INFO: start stop
|
|
DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
|
|
|
|
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG
|
|
------------------------------------------------------------------------------------------------------------------------------------
|
|
INFO: archive-get start: --backup-host=backup --backup-user=backrest --cmd-remote=[BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --config-remote=[TEST_PATH]/backup/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db
|
|
INFO: get WAL segment 000000090000000900000009
|
|
DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009
|
|
DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = [BACKREST-BIN] --command=archive-get --config=[TEST_PATH]/backup/pgbackrest.conf --repo-path=[TEST_PATH]/backup/repo --stanza=db remote, strHost = backup, strUser = [USER-1]
|
|
DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@backup '[BACKREST-BIN] --command=archive-get --config=[TEST_PATH]/backup/pgbackrest.conf --repo-path=[TEST_PATH]/backup/repo --stanza=db remote', strId = backup, strName = remote
|
|
DEBUG: File->new(): iThreadIdx = [undef], oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strRemote = backup, strStanza = db
|
|
DEBUG: Archive->getCheck(): oFile = [object], strDbVersion = [undef], ullDbSysId = [undef]
|
|
DEBUG: Db->info(): oFile = [object], strDbPath = [TEST_PATH]/db-master/db/base
|
|
DEBUG: Db->info=>: iCatalogVersion = 201306121, iControlVersion = 937, strDbVersion = 9.3, ullDbSysId = 6156904820763115222
|
|
DEBUG: Archive->walFileName(): bPartial = false, iWaitSeconds = [undef], oFile = [object], strArchiveId = 9.3-1, strWalSegment = 000000090000000900000009
|
|
DEBUG: File->list(): bIgnoreMissing = true, strExpression = ^000000090000000900000009(-[0-f]+){0,1}(\.gz){0,1}$, strPath = [TEST_PATH]/backup/repo/archive/db/9.3-1/0000000900000009, strPathType = backup:absolute, strSortOrder = <forward>
|
|
DEBUG: File->list=>: stryFileList = ()
|
|
DEBUG: Archive->walFileName=>: strWalFileName = [undef]
|
|
INFO: unable to find 000000090000000900000009 in the archive
|
|
DEBUG: Archive->get=>: iResult = 1
|
|
DEBUG: Exit::exitSafe(): iExitCode = 1, strSignal = [undef]
|
|
INFO: archive-get stop
|
|
DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
|