{"kind": "tool", "major": "18", "item": {"slug": "pg-verifybackup", "name": "pg_verifybackup", "name_zh": "", "category": "\u5ba2\u6237\u7aef\u7a0b\u5e8f", "summary": "pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027", "aliases": ["pg_verifybackup"], "content_hash": "64e2a15b404ebd5736e5e3ccaac8c4bd7edff95cce441fba1baa239313afc185", "versions": {"13": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "13.23"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "9"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/13/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/13/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/13/postgresql-13-A4.pdf", "bytes": 13843239, "pages": 2826, "sha256": "171cc09f90936dbc1cbd503a98ff07ae72ea58ab9771ff051313f1217737799c", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/13/postgresql-13-US.pdf", "bytes": 13739572, "pages": 2984, "sha256": "48d09c6e197d9db4220f41afe83efe848a8661b1b168d3b89419751ecaf6c24d", "built_at": "2026-09-26"}}, "tree": "13", "index": "index.html", "major": "13", "pages": 1139, "release": "13.23", "source_url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "revision": "614ee3133270254e476c118cdf6f72af78d4e4b8bbd9b28ed9ab1e14e4e9c0f6", "evidence_kind": "English manual and source declarations", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sources": [{"url": "https://pg.center/docs/13/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "13.23 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "749e0de461763eaca49b3b7e119d8ce9250a1a3a4afa1a0cd21e72936feb47ad", "language": "en", "original_url": "/docs/13/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/13/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "2a16c2982d9803edd4bd6920f76b66083e7f2959182d6a3bcec7ccfbac0a9ad8", "language": "en", "original_url": "/docs/13/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\">pg_verifybackup</span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.18.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.18.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u7528\u4e8e\u68c0\u67e5\u901a\u8fc7<code class=\"command\">pg_basebackup</code>\u83b7\u53d6\u7684\u6570\u636e\u5e93\u96c6\u7c07\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff0c\u68c0\u67e5\u4f9d\u636e\u662f\u670d\u52a1\u5668\u5728\u5907\u4efd\u65f6\u751f\u6210\u7684<code class=\"literal\">backup_manifest</code>\u3002\u5907\u4efd\u5fc5\u987b\u4ee5\u201c\u666e\u901a\u6587\u4ef6\u201d\u683c\u5f0f\u5b58\u50a8\uff1b\u201ctar\u201d\u683c\u5f0f\u7684\u5907\u4efd\u53ef\u4ee5\u5728\u89e3\u5305\u540e\u68c0\u67e5\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.18.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.18.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.18.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/13/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/13/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "cda9be9d93a0750a3d34f6b6f10ec76120d8bc24730c0141d352c89b69081688", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[1]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/13/facts/0/label": "Documented executable", "/versions/13/facts/1/label": "Executable version", "/versions/13/facts/2/label": "Reference inventory", "/versions/13/facts/2/value": "Client applications", "/versions/13/facts/3/label": "Option definition groups", "/versions/13/tables/0/title": "Documented options", "/versions/13/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/13/tables/0/rows/1/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/13/tables/0/rows/2/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/13/tables/0/rows/3/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/13/tables/0/rows/4/summary": "Don't print anything when a backup is successfully verified.", "/versions/13/tables/0/rows/5/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/13/tables/0/rows/6/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/13/tables/0/rows/7/summary": "Print the pg_verifybackup version and exit.", "/versions/13/tables/0/rows/8/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/13/tables/0/columns/0/label": "Option and arguments", "/versions/13/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e8739042c530fe3c0629185b2c37e2ba335a9f8bb94050680930ab85b72d288e"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "832af70614d167c4bd53a1b8a58c9cf578f3bc133481f31489615ce84b582c84", "manual_language": "zh"}, "14": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "14.24"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "9"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/14/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/14/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/14/postgresql-14-A4.pdf", "bytes": 14354704, "pages": 2944, "sha256": "8bc6b9dd7b246888bb77f0a5e8c39a2eae52e9926569832669c7d1600becb27c", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/14/postgresql-14-US.pdf", "bytes": 14242178, "pages": 3102, "sha256": "b7ecb5a5f62d8b9f73a69e25a7d26ba285373bc53168a553bff7b77955506db4", "built_at": "2026-09-26"}}, "tree": "14", "index": "index.html", "major": "14", "pages": 1158, "release": "14.24", "source_url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "revision": "588700d46356d8837c77c7c0a4e71e645fe6535983b8f1830aa8f2e4e41c40ae", "evidence_kind": "English manual and source declarations", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sources": [{"url": "https://pg.center/docs/14/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "14.24 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "c0c64a56983aa9a6cfccec021302532dd4ee573f16b85554222ad9d520f1ffff", "language": "en", "original_url": "/docs/14/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/14/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "5a13567a052954dfe494dfaab9f50919faa1ae56023930fdbb78d45e53feccde", "language": "en", "original_url": "/docs/14/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.19.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u7528\u4e8e\u68c0\u67e5\u901a\u8fc7<code class=\"command\">pg_basebackup</code>\u83b7\u53d6\u7684\u6570\u636e\u5e93\u96c6\u7c07\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff0c\u68c0\u67e5\u4f9d\u636e\u662f\u670d\u52a1\u5668\u5728\u5907\u4efd\u65f6\u751f\u6210\u7684<code class=\"literal\">backup_manifest</code>\u3002\u5907\u4efd\u5fc5\u987b\u4ee5\u201c\u666e\u901a\u6587\u4ef6\u201d\u683c\u5f0f\u5b58\u50a8\uff1b\u201ctar\u201d\u683c\u5f0f\u7684\u5907\u4efd\u53ef\u4ee5\u5728\u89e3\u5305\u540e\u68c0\u67e5\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/14/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/14/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "1d47377fa4512bb6cf549a20445c1d757b586236caab11a64de1a159203fbf96", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[1]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/14/facts/0/label": "Documented executable", "/versions/14/facts/1/label": "Executable version", "/versions/14/facts/2/label": "Reference inventory", "/versions/14/facts/2/value": "Client applications", "/versions/14/facts/3/label": "Option definition groups", "/versions/14/tables/0/title": "Documented options", "/versions/14/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/14/tables/0/rows/1/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/14/tables/0/rows/2/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/14/tables/0/rows/3/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/14/tables/0/rows/4/summary": "Don't print anything when a backup is successfully verified.", "/versions/14/tables/0/rows/5/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/14/tables/0/rows/6/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/14/tables/0/rows/7/summary": "Print the pg_verifybackup version and exit.", "/versions/14/tables/0/rows/8/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/14/tables/0/columns/0/label": "Option and arguments", "/versions/14/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "eada94189d3383cf6f0a6b8fd8d788018258842236d9ef95be0e19ba3230f4e6"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "832af70614d167c4bd53a1b8a58c9cf578f3bc133481f31489615ce84b582c84", "manual_language": "zh"}, "15": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "15.19"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "9"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/15/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/15/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/15/postgresql-15-A4.pdf", "bytes": 14609140, "pages": 2987, "sha256": "66228564a4d16efb47d6a914085716ecfe22ca1566db56bc7c3d82f790646d72", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/15/postgresql-15-US.pdf", "bytes": 14495690, "pages": 3153, "sha256": "645a498c2390d47a6223ec74770631185807a19c484edb0fc5a295d9f460bc02", "built_at": "2026-09-26"}}, "tree": "15", "index": "index.html", "major": "15", "pages": 1168, "release": "15.19", "source_url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "revision": "6af958c6520151fc7697d56e0616b03fb00522c4568158674d452ae0644ba545", "evidence_kind": "English manual and source declarations", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sources": [{"url": "https://pg.center/docs/15/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "15.19 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "4e08301bb2f511c075bd01d569c2810707b690de6f9dc5d484c54df627e77d88", "language": "en", "original_url": "/docs/15/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/15/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "015b2ea2bd205946a55a1b837e735570631bac831c92074a6bf58444f9a3cb98", "language": "en", "original_url": "/docs/15/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.19.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u7528\u4e8e\u68c0\u67e5\u901a\u8fc7<code class=\"command\">pg_basebackup</code>\u83b7\u53d6\u7684\u6570\u636e\u5e93\u96c6\u7c07\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff0c\u68c0\u67e5\u4f9d\u636e\u662f\u670d\u52a1\u5668\u5728\u5907\u4efd\u65f6\u751f\u6210\u7684<code class=\"literal\">backup_manifest</code>\u3002\u5907\u4efd\u5fc5\u987b\u4ee5\u201c\u666e\u901a\u6587\u4ef6\u201d\u683c\u5f0f\u5b58\u50a8\uff1b\u201ctar\u201d\u683c\u5f0f\u7684\u5907\u4efd\u53ef\u4ee5\u5728\u89e3\u5305\u540e\u68c0\u67e5\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/15/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/15/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "a39202eb6244823de8fb73ec7cf51bbdbcd77a88fac2ca4f4bfdf73d31a5f95b", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[1]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/15/facts/0/label": "Documented executable", "/versions/15/facts/1/label": "Executable version", "/versions/15/facts/2/label": "Reference inventory", "/versions/15/facts/2/value": "Client applications", "/versions/15/facts/3/label": "Option definition groups", "/versions/15/tables/0/title": "Documented options", "/versions/15/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/15/tables/0/rows/1/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/15/tables/0/rows/2/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/15/tables/0/rows/3/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/15/tables/0/rows/4/summary": "Don't print anything when a backup is successfully verified.", "/versions/15/tables/0/rows/5/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/15/tables/0/rows/6/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/15/tables/0/rows/7/summary": "Print the pg_verifybackup version and exit.", "/versions/15/tables/0/rows/8/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/15/tables/0/columns/0/label": "Option and arguments", "/versions/15/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1d5d9de2b6e762990274b3d8dc1e65ffb641db3148ba090460876bc5c5afab8c"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "832af70614d167c4bd53a1b8a58c9cf578f3bc133481f31489615ce84b582c84", "manual_language": "zh"}, "16": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "16.15"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/16/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/16/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/16/postgresql-16-A4.pdf", "bytes": 15282337, "pages": 3055, "sha256": "4bb6c1f63deedac98736d8c4c7bc0fad0ac24e85b07e21ee10411872f06afd06", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/16/postgresql-16-US.pdf", "bytes": 15164148, "pages": 3220, "sha256": "5b6b6166c89991199e144bb0ae34c17a5f29826251dbf19db1abc0df3a3e771b", "built_at": "2026-09-26"}}, "tree": "16", "index": "index.html", "major": "16", "pages": 1169, "release": "16.15", "source_url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "svg_assets": 3, "source_mode": "en HTML verified against the pinned official archive", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "revision": "3c21e58b35318021716440e67bb8bafd392b6a2b965a244d90e9e33c99e0bdef", "evidence_kind": "English manual and source declarations", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sources": [{"url": "https://pg.center/docs/16/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "16.15 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "a3cea0b4b27796f53c6bca3819a5a892a7e66a2f2ac41f5b44cac1c7365467fc", "language": "en", "original_url": "/docs/16/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/16/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "a28c30c3c0f8783e16d56413a0b6fd39487e336da1683b29b60abf1c229cef26", "language": "en", "original_url": "/docs/16/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.19.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u7528\u4e8e\u68c0\u67e5\u901a\u8fc7<code class=\"command\">pg_basebackup</code>\u83b7\u53d6\u7684\u6570\u636e\u5e93\u96c6\u7c07\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff0c\u68c0\u67e5\u4f9d\u636e\u662f\u670d\u52a1\u5668\u5728\u5907\u4efd\u65f6\u751f\u6210\u7684<code class=\"literal\">backup_manifest</code>\u3002\u5907\u4efd\u5fc5\u987b\u4ee5\u201c\u666e\u901a\u6587\u4ef6\u201d\u683c\u5f0f\u5b58\u50a8\uff1b\u201ctar\u201d\u683c\u5f0f\u7684\u5907\u4efd\u53ef\u4ee5\u5728\u89e3\u5305\u540e\u68c0\u67e5\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.19.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/16/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/16/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "80e5d478dd5f720e14a6856348d525529e5443120ab3bc4b5929c353ab5f8ccf", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[1]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/16/facts/0/label": "Documented executable", "/versions/16/facts/1/label": "Executable version", "/versions/16/facts/2/label": "Reference inventory", "/versions/16/facts/2/value": "Client applications", "/versions/16/facts/3/label": "Option definition groups", "/versions/16/tables/0/title": "Documented options", "/versions/16/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/16/tables/0/rows/1/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/16/tables/0/rows/2/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/16/tables/0/rows/3/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/16/tables/0/rows/4/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/16/tables/0/rows/5/summary": "Don't print anything when a backup is successfully verified.", "/versions/16/tables/0/rows/6/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/16/tables/0/rows/7/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/16/tables/0/rows/8/summary": "Print the pg_verifybackup version and exit.", "/versions/16/tables/0/rows/9/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/16/tables/0/columns/0/label": "Option and arguments", "/versions/16/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c00ec537c1a82c06083b1c22bef387880980f3533a174164dde8eed55b758e07"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "48bb7d594decc268ad3ee38a9301d5efa80e368332a577bdd94a67ca1b6792c0", "manual_language": "zh"}, "17": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "17.11"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "10"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/17/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/17/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/17/postgresql-17-A4.pdf", "bytes": 15521293, "pages": 3099, "sha256": "1991354df0dc89e70ec39328c28988ef8b19c6a93671dab3893650b63e9f4e36", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/17/postgresql-17-US.pdf", "bytes": 15398150, "pages": 3270, "sha256": "07696c8f38abf31babf22d2db337093936e7c472d2af36d050b000c49bbcf52c", "built_at": "2026-09-26"}}, "tree": "17", "index": "index.html", "major": "17", "pages": 1143, "release": "17.11", "source_url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "revision": "58419c9b0dd42cb34c8d53695bb025a7e582edf55ccd4c5bcb1c2c7c71a37487", "evidence_kind": "English manual and source declarations", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sources": [{"url": "https://pg.center/docs/17/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "17.11 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "acd640784f42752549dd3977506e36ace4d9c5c15076d3f7e657d6c53292b9fd", "language": "en", "original_url": "/docs/17/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/17/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "3194fc72ddad8e2fcba55f8e007f83413cb352146cb65aaa9457a18d0314ee1b", "language": "en", "original_url": "/docs/17/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.20.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u7528\u4e8e\u68c0\u67e5\u901a\u8fc7<code class=\"command\">pg_basebackup</code>\u83b7\u53d6\u7684\u6570\u636e\u5e93\u96c6\u7c07\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff0c\u68c0\u67e5\u4f9d\u636e\u662f\u670d\u52a1\u5668\u5728\u5907\u4efd\u65f6\u751f\u6210\u7684<code class=\"literal\">backup_manifest</code>\u3002\u5907\u4efd\u5fc5\u987b\u4ee5\u201c\u666e\u901a\u6587\u4ef6\u201d\u683c\u5f0f\u5b58\u50a8\uff1b\u201ctar\u201d\u683c\u5f0f\u7684\u5907\u4efd\u53ef\u4ee5\u5728\u89e3\u5305\u540e\u68c0\u67e5\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\u3001\u5176\u7cfb\u7edf\u6807\u8bc6\u7b26\u4e0e\u5907\u4efd\u76ee\u5f55\u4e2d\u7684<code class=\"filename\">pg_control</code> \u4e0d\u5339\u914d\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/17/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/17/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "36430ede88e98ca90d1c00a5aaf248a71827c185b94992ba52ca79a8f1c863a8", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[1]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/17/facts/0/label": "Documented executable", "/versions/17/facts/1/label": "Executable version", "/versions/17/facts/2/label": "Reference inventory", "/versions/17/facts/2/value": "Client applications", "/versions/17/facts/3/label": "Option definition groups", "/versions/17/tables/0/title": "Documented options", "/versions/17/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/17/tables/0/rows/1/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/17/tables/0/rows/2/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/17/tables/0/rows/3/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/17/tables/0/rows/4/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/17/tables/0/rows/5/summary": "Don't print anything when a backup is successfully verified.", "/versions/17/tables/0/rows/6/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/17/tables/0/rows/7/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/17/tables/0/rows/8/summary": "Print the pg_verifybackup version and exit.", "/versions/17/tables/0/rows/9/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/17/tables/0/columns/0/label": "Option and arguments", "/versions/17/tables/0/columns/1/label": "Description"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "14f164b5beab53550bbe1cdfaff53b734d111886e39f0f79e61fb144cb4eecd2"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "48bb7d594decc268ad3ee38a9301d5efa80e368332a577bdd94a67ca1b6792c0", "manual_language": "zh"}, "18": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002 format \u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-F format --format= format"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "summary": "Specifies the format of the backup. format can be one of the following:", "signature": "-F format --format= format", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/18/postgresql-18-A4.pdf", "bytes": 15865106, "pages": 3154, "sha256": "19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/18/postgresql-18-US.pdf", "bytes": 15748059, "pages": 3328, "sha256": "facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319", "built_at": "2026-09-26"}}, "tree": "18", "index": "index.html", "major": "18", "pages": 1148, "release": "18.6", "source_url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8", "evidence_kind": "English manual and source declarations", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "https://pg.center/docs/18/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "18.6 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "70a0a36060ff1d19bfcd8f8b8abee2060423f7e768f5554fd53b7a84851c0a58", "language": "en", "original_url": "/docs/18/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/18/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "68f726af77272fe73a827be2b7b5958d0f2239a6f8ed44264e9d42496bfa4fd0", "language": "en", "original_url": "/docs/18/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.20.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\">pg_verifybackup \u6839\u636e\u5907\u4efd\u65f6\u7531\u670d\u52a1\u5668\u751f\u6210\u7684 backup_manifest\uff0c\u68c0\u67e5\u4f7f\u7528 pg_basebackup \u5236\u4f5c\u7684\u6570\u636e\u5e93\u96c6\u7fa4\u5907\u4efd\u7684\u5b8c\u6574\u6027\u3002\u5907\u4efd\u53ef\u4ee5\u91c7\u7528 \"plain\" \u6216 \"tar\" \u683c\u5f0f\uff0c\u4e5f\u5305\u62ec\u4f7f\u7528 pg_basebackup \u652f\u6301\u7684\u4efb\u4f55\u7b97\u6cd5\u538b\u7f29\u7684 tar \u683c\u5f0f\u5907\u4efd\u3002\u4e0d\u8fc7\uff0c\u76ee\u524d\u53ea\u6709 plain \u683c\u5f0f\u7684\u5907\u4efd\u652f\u6301 WAL \u9a8c\u8bc1\u3002\u56e0\u6b64\uff0c\u5982\u679c\u5907\u4efd\u91c7\u7528 tar \u683c\u5f0f\uff0c\u5e94\u4f7f\u7528 -n, --no-parse-wal \u9009\u9879\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\u3001\u5176\u7cfb\u7edf\u6807\u8bc6\u7b26\u4e0e\u5907\u4efd\u76ee\u5f55\u4e2d\u7684<code class=\"filename\">pg_control</code> \u4e0d\u5339\u914d\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-F <em class=\"replaceable\"><code>format</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--format=<em class=\"replaceable\"><code>format</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002<em class=\"replaceable\"><code>format</code></em>\u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">p</code><br/></span><span class=\"term\"><code class=\"literal\">plain</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531\u666e\u901a\u6587\u4ef6\u7ec4\u6210\uff0c\u5176\u5e03\u5c40\u4e0e\u6e90\u670d\u52a1\u5668\u7684\u6570\u636e\u76ee\u5f55\u548c\u8868\u7a7a\u95f4\u76f8\u540c\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"literal\">t</code><br/></span><span class=\"term\"><code class=\"literal\">tar</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531 tar \u6587\u4ef6\u7ec4\u6210\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u7ecf\u8fc7\u538b\u7f29\u3002\u6709\u6548\u7684\u5907\u4efd\u5305\u62ec\u5b58\u653e\u5728 <code class=\"filename\">base.tar</code>\u6587\u4ef6\u4e2d\u7684\u4e3b\u6570\u636e\u76ee\u5f55\u3001\u5b58\u653e\u5728 <code class=\"filename\">pg_wal.tar</code>\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u5bf9\u5e94\u7684\u5355\u72ec tar \u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4ee5\u8be5\u8868\u7a7a\u95f4\u7684 OID \u547d\u540d\u3002\u5982\u679c\u5907\u4efd\u88ab\u538b\u7f29\uff0c\u5219\u4f1a\u5728\u6bcf\u4e2a\u6587\u4ef6\u540d\u672b\u5c3e\u8ffd\u52a0\u76f8\u5e94\u7684\u538b\u7f29\u6269\u5c55\u540d\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/18/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "d2a0424c540907f7ca77f935f235ae09c84632371a39e1d9dc653312cfd56afc", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/18/facts/0/label": "Documented executable", "/versions/18/facts/1/label": "Executable version", "/versions/18/facts/2/label": "Reference inventory", "/versions/18/facts/2/value": "Client applications", "/versions/18/facts/3/label": "Option definition groups", "/versions/18/tables/0/title": "Documented options", "/versions/18/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/18/tables/0/rows/1/summary": "Specifies the format of the backup. format can be one of the following:", "/versions/18/tables/0/rows/2/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/18/tables/0/rows/3/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/18/tables/0/rows/4/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/18/tables/0/rows/5/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/18/tables/0/rows/6/summary": "Don't print anything when a backup is successfully verified.", "/versions/18/tables/0/rows/7/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/18/tables/0/rows/8/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/18/tables/0/rows/9/summary": "Print the pg_verifybackup version and exit.", "/versions/18/tables/0/columns/0/label": "Option and arguments", "/versions/18/tables/0/columns/1/label": "Description", "/versions/18/tables/0/rows/10/summary": "Show help about pg_verifybackup command line arguments, and exit."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1b0ff781a4a0cb42a63529eab385d0321370996444162370d2cdd9c7e0105e43"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "signature": "-F format --format= format", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "713579f713732d850e7621f55d2508d075087e1f20aa56ca669fbd749c9a737c", "manual_language": "zh"}, "19": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "19beta4"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002 format \u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-F format --format= format"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u6216 tar \u5f52\u6863\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-w path --wal-path= path --wal-directory= path \uff08\u5df2\u5f03\u7528\uff09"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/19/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "summary": "Specifies the format of the backup. format can be one of the following:", "signature": "-F format --format= format", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-path= path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-path= path --wal-directory= path (deprecated)", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/19/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/19/postgresql-19-A4.pdf", "bytes": 16064841, "pages": 3052, "sha256": "4dd099e4125c591128fc5f3ebd02178dc24781f9e5ae629f96d67c4c8547427b", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/19/postgresql-19-US.pdf", "bytes": 15974616, "pages": 3225, "sha256": "61971fa857f0956d47341a0388fa6af9ae10acf691d4b2fc009007d384b0342b", "built_at": "2026-09-26"}}, "tree": "19", "index": "index.html", "major": "19", "pages": 1155, "release": "19beta4", "source_url": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "svg_assets": 5, "source_mode": "en SGML built with pinned official archive", "source_sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, "revision": "1bbbbf4133d426f0e4304010688d2984c30fb67df0cc3a61b3e37eb3f6f37833", "evidence_kind": "English manual and source declarations", "source_sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, "sources": [{"url": "https://pg.center/docs/19/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "19beta4 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "8574c3aa40433a7be6d35979f1efefd340c446e56dcb24456965134decb61746", "language": "en", "original_url": "/docs/19/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/19/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "c827f460db781b39da305303c88e73729a419cd2b2b9dedb126d8ad5cbf02c95", "language": "en", "original_url": "/docs/19/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.20.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\">pg_verifybackup \u6839\u636e\u5907\u4efd\u65f6\u7531\u670d\u52a1\u5668\u751f\u6210\u7684 backup_manifest\uff0c\u68c0\u67e5\u4f7f\u7528 pg_basebackup \u5236\u4f5c\u7684\u6570\u636e\u5e93\u96c6\u7fa4\u5907\u4efd\u7684\u5b8c\u6574\u6027\u3002\u5907\u4efd\u53ef\u4ee5\u91c7\u7528 \"plain\" \u6216 \"tar\" \u683c\u5f0f\uff0c\u4e5f\u5305\u62ec\u4f7f\u7528 pg_basebackup \u652f\u6301\u7684\u4efb\u4f55\u7b97\u6cd5\u538b\u7f29\u7684 tar \u683c\u5f0f\u5907\u4efd\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\u3001\u5176\u7cfb\u7edf\u6807\u8bc6\u7b26\u4e0e\u5907\u4efd\u76ee\u5f55\u4e2d\u7684<code class=\"filename\">pg_control</code> \u4e0d\u5339\u914d\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-F <em class=\"replaceable\"><code>format</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--format=<em class=\"replaceable\"><code>format</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002<em class=\"replaceable\"><code>format</code></em>\u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">p</code><br/></span><span class=\"term\"><code class=\"literal\">plain</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531\u666e\u901a\u6587\u4ef6\u7ec4\u6210\uff0c\u5176\u5e03\u5c40\u4e0e\u6e90\u670d\u52a1\u5668\u7684\u6570\u636e\u76ee\u5f55\u548c\u8868\u7a7a\u95f4\u76f8\u540c\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"literal\">t</code><br/></span><span class=\"term\"><code class=\"literal\">tar</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531 tar \u6587\u4ef6\u7ec4\u6210\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u7ecf\u8fc7\u538b\u7f29\u3002\u6709\u6548\u7684\u5907\u4efd\u5305\u62ec\u5b58\u653e\u5728 <code class=\"filename\">base.tar</code>\u6587\u4ef6\u4e2d\u7684\u4e3b\u6570\u636e\u76ee\u5f55\u3001\u5b58\u653e\u5728 <code class=\"filename\">pg_wal.tar</code>\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u5bf9\u5e94\u7684\u5355\u72ec tar \u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4ee5\u8be5\u8868\u7a7a\u95f4\u7684 OID \u547d\u540d\u3002\u5982\u679c\u5907\u4efd\u88ab\u538b\u7f29\uff0c\u5219\u4f1a\u5728\u6bcf\u4e2a\u6587\u4ef6\u540d\u672b\u5c3e\u8ffd\u52a0\u76f8\u5e94\u7684\u538b\u7f29\u6269\u5c55\u540d\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\"><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-path=<em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code>\uff08\u5df2\u5f03\u7528\uff09</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u6216 tar \u5f52\u6863\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/19/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/19/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "c315726018c0fd6d6f07a583df89ab637cd1d5f2cb2f4fee22dc47de87b79ea4", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dt[16]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/19/facts/0/label": "Documented executable", "/versions/19/facts/1/label": "Executable version", "/versions/19/facts/2/label": "Reference inventory", "/versions/19/facts/2/value": "Client applications", "/versions/19/facts/3/label": "Option definition groups", "/versions/19/tables/0/title": "Documented options", "/versions/19/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/19/tables/0/rows/1/summary": "Specifies the format of the backup. format can be one of the following:", "/versions/19/tables/0/rows/2/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/19/tables/0/rows/3/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/19/tables/0/rows/4/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/19/tables/0/rows/5/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/19/tables/0/rows/6/summary": "Don't print anything when a backup is successfully verified.", "/versions/19/tables/0/rows/7/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/19/tables/0/rows/8/summary": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/19/tables/0/rows/9/summary": "Print the pg_verifybackup version and exit.", "/versions/19/tables/0/columns/0/label": "Option and arguments", "/versions/19/tables/0/columns/1/label": "Description", "/versions/19/tables/0/rows/10/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/19/tables/0/rows/8/signature/text": "-w path --wal-path= path --wal-directory= path (deprecated)"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1a3b9c776d2d6991d3bd5b7d93a03d76c85712ec55a8a88d4c4e96bdd8663ce6"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "signature": "-F format --format= format", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-path= path", "--wal-directory= path"], "signature": "-w path --wal-path= path --wal-directory= path (deprecated)", "description": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "5fb479089b62758358b13f4e646ba51483839cae4bd63c8635a266a2474ac303", "manual_language": "zh"}, "20": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "20devel"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002 format \u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-F format --format= format"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u6216 tar \u5f52\u6863\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-w path --wal-path= path --wal-directory= path \uff08\u5df2\u5f03\u7528\uff09"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/devel/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "summary": "Specifies the format of the backup. format can be one of the following:", "signature": "-F format --format= format", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-path= path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-path= path --wal-directory= path (deprecated)", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/devel/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/20/postgresql-20-A4.pdf", "bytes": 16030631, "pages": 3052, "sha256": "bd5d82c0ce38fc18f92a0447818a91a193a261776bca1c37564bf9a683e177d0", "built_at": "2026-09-28"}, "US": {"url": "/files/documentation/pdf/20/postgresql-20-US.pdf", "bytes": 15936613, "pages": 3223, "sha256": "d97d9e0db479a02f4234b175f50fcad70c3661619afc8d6df9b9437882e3c299", "built_at": "2026-09-28"}}, "tree": "0", "index": "index.html", "major": "20", "pages": 1156, "release": "20devel", "source_url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "svg_assets": 6, "source_mode": "en SGML built with pinned official archive", "source_sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "source_snapshot_utc": "26-Sep-2026 20:22"}, "revision": "2eba5e0fd4c3bffb2803247b6cd537878e9d6ee5a6dfbe3c50ece8b421b80918", "evidence_kind": "English manual and source declarations", "source_sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, "sources": [{"url": "https://pg.center/docs/devel/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "20devel English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "78355d05a42088cd9c1ab41ac1559d1d7d4edc122af2149443fd3f3a5d6f46d4", "language": "en", "original_url": "/docs/devel/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/devel/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "a6c7ba748fa1d9feac5bb7cde41d1d36a1f4c26d5963e07fb103d02918b2a8ca", "language": "en", "original_url": "/docs/devel/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.20.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\">pg_verifybackup \u6839\u636e\u5907\u4efd\u65f6\u7531\u670d\u52a1\u5668\u751f\u6210\u7684 backup_manifest\uff0c\u68c0\u67e5\u4f7f\u7528 pg_basebackup \u5236\u4f5c\u7684\u6570\u636e\u5e93\u96c6\u7fa4\u5907\u4efd\u7684\u5b8c\u6574\u6027\u3002\u5907\u4efd\u53ef\u4ee5\u91c7\u7528 \"plain\" \u6216 \"tar\" \u683c\u5f0f\uff0c\u4e5f\u5305\u62ec\u4f7f\u7528 pg_basebackup \u652f\u6301\u7684\u4efb\u4f55\u7b97\u6cd5\u538b\u7f29\u7684 tar \u683c\u5f0f\u5907\u4efd\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\u3001\u5176\u7cfb\u7edf\u6807\u8bc6\u7b26\u4e0e\u5907\u4efd\u76ee\u5f55\u4e2d\u7684<code class=\"filename\">pg_control</code> \u4e0d\u5339\u914d\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-F <em class=\"replaceable\"><code>format</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--format=<em class=\"replaceable\"><code>format</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002<em class=\"replaceable\"><code>format</code></em>\u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">p</code><br/></span><span class=\"term\"><code class=\"literal\">plain</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531\u666e\u901a\u6587\u4ef6\u7ec4\u6210\uff0c\u5176\u5e03\u5c40\u4e0e\u6e90\u670d\u52a1\u5668\u7684\u6570\u636e\u76ee\u5f55\u548c\u8868\u7a7a\u95f4\u76f8\u540c\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"literal\">t</code><br/></span><span class=\"term\"><code class=\"literal\">tar</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531 tar \u6587\u4ef6\u7ec4\u6210\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u7ecf\u8fc7\u538b\u7f29\u3002\u6709\u6548\u7684\u5907\u4efd\u5305\u62ec\u5b58\u653e\u5728 <code class=\"filename\">base.tar</code>\u6587\u4ef6\u4e2d\u7684\u4e3b\u6570\u636e\u76ee\u5f55\u3001\u5b58\u653e\u5728 <code class=\"filename\">pg_wal.tar</code>\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u5bf9\u5e94\u7684\u5355\u72ec tar \u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4ee5\u8be5\u8868\u7a7a\u95f4\u7684 OID \u547d\u540d\u3002\u5982\u679c\u5907\u4efd\u88ab\u538b\u7f29\uff0c\u5219\u4f1a\u5728\u6bcf\u4e2a\u6587\u4ef6\u540d\u672b\u5c3e\u8ffd\u52a0\u76f8\u5e94\u7684\u538b\u7f29\u6269\u5c55\u540d\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt lang=\"zh\"><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-path=<em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code>\uff08\u5df2\u5f03\u7528\uff09</span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u6216 tar \u5f52\u6863\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/devel/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/devel/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "9a68db8a390e8a18b5b9297684478c04bef2d1d3f42f3352ecd63287012a411e", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dt[16]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/summary": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/category": "Client applications", "/versions/20/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/20/facts/0/label": "Documented executable", "/versions/20/facts/1/label": "Executable version", "/versions/20/facts/2/label": "Reference inventory", "/versions/20/facts/2/value": "Client applications", "/versions/20/facts/3/label": "Option definition groups", "/versions/20/tables/0/title": "Documented options", "/versions/20/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/20/tables/0/rows/1/summary": "Specifies the format of the backup. format can be one of the following:", "/versions/20/tables/0/rows/2/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/20/tables/0/rows/3/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/20/tables/0/rows/4/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/20/tables/0/rows/5/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/20/tables/0/rows/6/summary": "Don't print anything when a backup is successfully verified.", "/versions/20/tables/0/rows/7/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/20/tables/0/rows/8/summary": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/20/tables/0/rows/9/summary": "Print the pg_verifybackup version and exit.", "/versions/20/tables/0/columns/0/label": "Option and arguments", "/versions/20/tables/0/columns/1/label": "Description", "/versions/20/tables/0/rows/10/summary": "Show help about pg_verifybackup command line arguments, and exit.", "/versions/20/tables/0/rows/8/signature/text": "-w path --wal-path= path --wal-directory= path (deprecated)"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e24f21b4eccf5ac13ec7c5294c0a451f248354f3ab9c869c50a3614ec1645875"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "signature": "-F format --format= format", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-path= path", "--wal-directory= path"], "signature": "-w path --wal-path= path --wal-directory= path (deprecated)", "description": "Try to parse WAL files stored in the specified directory or tar archive, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "5fb479089b62758358b13f4e646ba51483839cae4bd63c8635a266a2474ac303", "manual_language": "zh"}}}, "snapshot": {"facts": [{"label": "\u624b\u518c\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f", "value": "pg_verifybackup"}, {"label": "\u7a0b\u5e8f\u7248\u672c", "value": "18.6"}, {"label": "\u53c2\u8003\u6e05\u5355", "value": "\u5ba2\u6237\u7aef\u7a0b\u5e8f"}, {"label": "\u9009\u9879\u5b9a\u4e49\u7ec4", "value": "11"}], "tables": [{"key": "options", "rows": [{"summary": "\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c pg_verifybackup \u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-e --exit-on-error"}}, {"summary": "\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002 format \u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-F format --format= format"}}, {"summary": "\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e backup_manifest \u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-i path --ignore= path"}}, {"summary": "\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-m path --manifest-path= path"}}, {"summary": "\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-n --no-parse-wal"}}, {"summary": "\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-P --progress"}}, {"summary": "\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-q --quiet"}}, {"summary": "\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-s --skip-checksums"}}, {"summary": "\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f pg_wal \u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-w path --wal-directory= path"}}, {"summary": "\u6253\u5370 pg_verifybackup \u7248\u672c\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-V --version"}}, {"summary": "\u663e\u793a\u6709\u5173 pg_verifybackup \u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002", "signature": {"url": "/docs/18/app-pgverifybackup.html", "text": "-? --help"}}], "title": "\u624b\u518c\u4e2d\u7684\u9009\u9879", "columns": [{"key": "signature", "label": "\u9009\u9879\u4e0e\u53c2\u6570"}, {"key": "summary", "label": "\u8bf4\u660e"}]}], "options": [{"names": ["-e", "--exit-on-error"], "summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "signature": "-e --exit-on-error", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "summary": "Specifies the format of the backup. format can be one of the following:", "signature": "-F format --format= format", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "signature": "-i path --ignore= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "signature": "-m path --manifest-path= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "signature": "-n --no-parse-wal", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "signature": "-P --progress", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "summary": "Don't print anything when a backup is successfully verified.", "signature": "-q --quiet", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "signature": "-s --skip-checksums", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "signature": "-w path --wal-directory= path", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "summary": "Print the pg_verifybackup version and exit.", "signature": "-V --version", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "summary": "Show help about pg_verifybackup command line arguments, and exit.", "signature": "-? --help", "source_url": "/docs/18/app-pgverifybackup.html", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "manifest": {"pdf": {"A4": {"url": "/files/documentation/pdf/18/postgresql-18-A4.pdf", "bytes": 15865106, "pages": 3154, "sha256": "19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190", "built_at": "2026-09-26"}, "US": {"url": "/files/documentation/pdf/18/postgresql-18-US.pdf", "bytes": 15748059, "pages": 3328, "sha256": "facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319", "built_at": "2026-09-26"}}, "tree": "18", "index": "index.html", "major": "18", "pages": 1148, "release": "18.6", "source_url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "svg_assets": 3, "source_mode": "en SGML built with pinned official archive", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "revision": "ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8", "evidence_kind": "English manual and source declarations", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "https://pg.center/docs/18/app-pgverifybackup.html", "file": "app-pgverifybackup.html", "label": "18.6 English manual \u00b7 app-pgverifybackup.html", "anchor": "", "sha256": "70a0a36060ff1d19bfcd8f8b8abee2060423f7e768f5554fd53b7a84851c0a58", "language": "en", "original_url": "/docs/18/app-pgverifybackup.html"}, {"url": "https://pg.center/docs/18/reference-client.html", "file": "reference-client.html", "label": "Client applications inventory", "anchor": "", "sha256": "68f726af77272fe73a827be2b7b5958d0f2239a6f8ed44264e9d42496bfa4fd0", "language": "en", "original_url": "/docs/18/reference-client.html"}], "sections": [], "synopsis": ["pg_verifybackup [ option ...]"], "signature": "pg_verifybackup [ option ...]", "description": ["pg_verifybackup \u2014 \u9a8c\u8bc1 PostgreSQL \u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027"], "environment": [], "manual_html": "<div><div class=\"refentry\" id=\"APP-PGVERIFYBACKUP\">\n<div class=\"titlepage\"></div>\n<div class=\"refnamediv\">\n<h2><span class=\"refentrytitle\"><span class=\"application\">pg_verifybackup</span></span></h2>\n<p lang=\"zh\">pg_verifybackup \u2014 \u9a8c\u8bc1<span class=\"productname\">PostgreSQL</span>\u96c6\u7c07\u57fa\u7840\u5907\u4efd\u7684\u5b8c\u6574\u6027</p>\n</div>\n<div class=\"refsynopsisdiv\">\n<h2 lang=\"zh\">\u5927\u7eb2</h2>\n<div class=\"cmdsynopsis\">\n<p id=\"id-1.9.4.20.4.1\"><code class=\"command\">pg_verifybackup</code> [<em class=\"replaceable\"><code>option</code></em>...]</p>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.5\">\n<h2 lang=\"zh\">\u8bf4\u660e</h2>\n<p lang=\"zh\">pg_verifybackup \u6839\u636e\u5907\u4efd\u65f6\u7531\u670d\u52a1\u5668\u751f\u6210\u7684 backup_manifest\uff0c\u68c0\u67e5\u4f7f\u7528 pg_basebackup \u5236\u4f5c\u7684\u6570\u636e\u5e93\u96c6\u7fa4\u5907\u4efd\u7684\u5b8c\u6574\u6027\u3002\u5907\u4efd\u53ef\u4ee5\u91c7\u7528 \"plain\" \u6216 \"tar\" \u683c\u5f0f\uff0c\u4e5f\u5305\u62ec\u4f7f\u7528 pg_basebackup \u652f\u6301\u7684\u4efb\u4f55\u7b97\u6cd5\u538b\u7f29\u7684 tar \u683c\u5f0f\u5907\u4efd\u3002\u4e0d\u8fc7\uff0c\u76ee\u524d\u53ea\u6709 plain \u683c\u5f0f\u7684\u5907\u4efd\u652f\u6301 WAL \u9a8c\u8bc1\u3002\u56e0\u6b64\uff0c\u5982\u679c\u5907\u4efd\u91c7\u7528 tar \u683c\u5f0f\uff0c\u5e94\u4f7f\u7528 -n, --no-parse-wal \u9009\u9879\u3002</p>\n<p lang=\"zh\">\u9700\u8981\u6ce8\u610f\uff0c<span class=\"application\">pg_verifybackup</span>\u6267\u884c\u7684\u9a8c\u8bc1\u5e76\u672a\u3001\u4e5f\u4e0d\u53ef\u80fd\u6db5\u76d6\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5668\u5728\u5c1d\u8bd5\u4f7f\u7528\u8be5\u5907\u4efd\u65f6\u4f1a\u6267\u884c\u7684\u6bcf\u4e00\u9879\u68c0\u67e5\u3002\u5373\u4f7f\u4f7f\u7528\u4e86\u6b64\u5de5\u5177\uff0c\u4f60\u4ecd\u5e94\u8fdb\u884c\u6d4b\u8bd5\u6062\u590d\uff0c\u5e76\u786e\u8ba4\u751f\u6210\u7684\u6570\u636e\u5e93\u6309\u9884\u671f\u5de5\u4f5c\u4e14\u770b\u8d77\u6765\u5305\u542b\u6b63\u786e\u7684\u6570\u636e\u3002\u4e0d\u8fc7\uff0c<span class=\"application\">pg_verifybackup</span>\u80fd\u591f\u68c0\u6d4b\u51fa\u8bb8\u591a\u56e0\u5b58\u50a8\u95ee\u9898\u6216\u7528\u6237\u9519\u8bef\u800c\u5e38\u89c1\u7684\u95ee\u9898\u3002</p>\n<p lang=\"zh\">\u5907\u4efd\u9a8c\u8bc1\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\u3002\u9996\u5148\uff0c<code class=\"literal\">pg_verifybackup</code>\u8bfb\u53d6 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u3002\u5982\u679c\u8be5\u6587\u4ef6\u4e0d\u5b58\u5728\u3001\u65e0\u6cd5\u8bfb\u53d6\u3001\u683c\u5f0f\u4e0d\u6b63\u786e\u3001\u5176\u7cfb\u7edf\u6807\u8bc6\u7b26\u4e0e\u5907\u4efd\u76ee\u5f55\u4e2d\u7684<code class=\"filename\">pg_control</code> \u4e0d\u5339\u914d\uff0c\u6216\u8005\u672a\u80fd\u901a\u8fc7\u5176\u81ea\u8eab\u5185\u90e8\u6821\u9a8c\u548c\u7684\u9a8c\u8bc1\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c31\u4f1a\u4ee5\u81f4\u547d\u9519\u8bef\u7ec8\u6b62\u3002</p>\n<p lang=\"zh\">\u5176\u6b21\uff0c<code class=\"literal\">pg_verifybackup</code>\u5c06\u5c1d\u8bd5\u9a8c\u8bc1\u5f53\u524d\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u6587\u4ef6\u4e0e\u670d\u52a1\u5668\u539f\u672c\u6253\u7b97\u53d1\u9001\u7684\u6570\u636e\u6587\u4ef6\u5b8c\u5168\u4e00\u81f4\uff0c\u4f46\u4e0b\u6587\u6240\u8ff0\u7684\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u9664\u5916\u3002\u9664\u4e86\u5c11\u6570\u4f8b\u5916\u60c5\u51b5\u4e4b\u5916\uff0c\u591a\u4f59\u6587\u4ef6\u548c\u7f3a\u5931\u6587\u4ef6\u90fd\u4f1a\u88ab\u68c0\u6d4b\u51fa\u6765\u3002\u6b64\u6b65\u9aa4\u4f1a\u5ffd\u7565<code class=\"literal\">postgresql.auto.conf</code>\u3001<code class=\"literal\">standby.signal</code>\u548c<code class=\"literal\">recovery.signal</code> \u7684\u5b58\u5728\u6216\u7f3a\u5931\uff0c\u4ee5\u53ca\u5bf9\u5b83\u4eec\u7684\u4efb\u4f55\u4fee\u6539\uff0c\u56e0\u4e3a\u9884\u8ba1\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u5728\u6267\u884c\u5907\u4efd\u7684\u8fc7\u7a0b\u4e2d\u521b\u5efa\u6216\u4fee\u6539\u7684\u3002\u5b83\u4e5f\u4e0d\u4f1a\u56e0\u76ee\u6807\u76ee\u5f55\u4e2d\u7684 <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\uff0c\u6216<code class=\"literal\">pg_wal</code> \u4e2d\u7684\u4efb\u4f55\u5185\u5bb9\u800c\u62a5\u544a\u95ee\u9898\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6587\u4ef6\u4e0d\u4f1a\u5217\u5728\u5907\u4efd\u6e05\u5355\u4e2d\u3002\u8fd9\u91cc\u53ea\u68c0\u67e5\u6587\u4ef6\uff1b\u9664\u95f4\u63a5\u60c5\u51b5\u5916\uff0c\u4e0d\u4f1a\u9a8c\u8bc1\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff1a\u5982\u679c\u67d0\u4e2a\u76ee\u5f55\u7f3a\u5931\uff0c\u5219\u5b83\u672c\u5e94\u5305\u542b\u7684\u4efb\u4f55\u6587\u4ef6\u4e5f\u5fc5\u7136\u4f1a\u7f3a\u5931\u3002</p>\n<p lang=\"zh\">\u63a5\u7740\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u4e3a\u6240\u6709\u6587\u4ef6\u8ba1\u7b97\u6821\u9a8c\u548c\uff0c\u5c06\u5176\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5bf9\u8ba1\u7b97\u7ed3\u679c\u4e0e\u5907\u4efd\u6e05\u5355\u4e2d\u4fdd\u5b58\u7684\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u6587\u4ef6\u62a5\u9519\u3002\u5bf9\u4e8e\u4e0a\u4e00\u6b65\u5df2\u4ea7\u751f\u9519\u8bef\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u6267\u884c\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u6587\u4ef6\u5df2\u7ecf\u786e\u5b9a\u5b58\u5728\u95ee\u9898\u3002\u5728\u4e0a\u4e00\u6b65\u4e2d\u88ab\u5ffd\u7565\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4e5f\u4f1a\u88ab\u5ffd\u7565\u3002</p>\n<p lang=\"zh\">\u6700\u540e\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u5907\u4efd\u6e05\u5355\u9a8c\u8bc1\u4ece\u8be5\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u80fd\u591f\u88ab\u8bfb\u53d6\u548c\u89e3\u6790\u3002<code class=\"literal\">backup_manifest</code>\u5305\u542b\u5173\u4e8e\u6240\u9700\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c<code class=\"literal\">pg_verifybackup</code>\u4f1a\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8c03\u7528 <code class=\"literal\">pg_waldump</code>\u6765\u89e3\u6790\u8fd9\u4e9b\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\u3002\u8c03\u7528\u65f6\u4f1a\u4f7f\u7528 <code class=\"literal\">--quiet</code>\u6807\u5fd7\uff0c\u8fd9\u6837<code class=\"literal\">pg_waldump</code> \u53ea\u4f1a\u62a5\u544a\u9519\u8bef\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u5176\u4ed6\u8f93\u51fa\u3002\u8fd9\u4e2a\u5c42\u6b21\u7684\u9a8c\u8bc1\u8db3\u4ee5\u53d1\u73b0\u8bf8\u5982\u6587\u4ef6\u7f3a\u5931\u6216\u6587\u4ef6\u5185\u90e8\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u4e4b\u7c7b\u7684\u660e\u663e\u95ee\u9898\uff0c\u4f46\u8fd8\u4e0d\u591f\u5168\u9762\uff0c\u65e0\u6cd5\u68c0\u6d4b\u6062\u590d\u65f6\u53ef\u80fd\u53d1\u751f\u7684\u6bcf\u4e00\u79cd\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e2d\u7684 bug \u751f\u6210\u4e86\u6821\u9a8c\u548c\u6b63\u786e\u3001\u4f46\u6307\u5b9a\u7684\u52a8\u4f5c\u6beb\u65e0\u610f\u4e49\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u8bb0\u5f55\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c31\u65e0\u6cd5\u68c0\u6d4b\u51fa\u6765\u3002</p>\n<p lang=\"zh\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u5b58\u5728\u6062\u590d\u8be5\u5907\u4efd\u5e76\u4e0d\u9700\u8981\u7684\u989d\u5916 WAL \u6587\u4ef6\uff0c\u6b64\u5de5\u5177\u4e0d\u4f1a\u68c0\u67e5\u5b83\u4eec\uff1b\u4e0d\u8fc7\uff0c\u53ef\u4ee5\u4e3a\u6b64\u5355\u72ec\u8c03\u7528\u4e00\u6b21<code class=\"literal\">pg_waldump</code>\u3002\u8fd8\u8981\u6ce8\u610f\uff0cWAL \u9a8c\u8bc1\u4e0e\u7248\u672c\u76f8\u5173\uff1a\u4f60\u5fc5\u987b\u4f7f\u7528\u4e0e\u88ab\u68c0\u67e5\u5907\u4efd\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_verifybackup</code>\uff0c\u56e0\u6b64\u4e5f\u5fc5\u987b\u4f7f\u7528\u5bf9\u5e94\u7248\u672c\u7684 <code class=\"literal\">pg_waldump</code>\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u6570\u636e\u6587\u4ef6\u5b8c\u6574\u6027\u68c0\u67e5\u5e94\u5f53\u9002\u7528\u4e8e\u4efb\u4f55\u80fd\u591f\u751f\u6210<code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u7684\u670d\u52a1\u5668\u7248\u672c\u3002</p>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.6\">\n<h2 lang=\"zh\">\u9009\u9879</h2>\n<p lang=\"zh\"><span class=\"application\">pg_verifybackup</span>\u63a5\u53d7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-e</code><br/></span><span class=\"term\"><code class=\"option\">--exit-on-error</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e00\u65e6\u68c0\u6d4b\u5230\u5907\u4efd\u5b58\u5728\u95ee\u9898\u5c31\u7acb\u5373\u9000\u51fa\u3002\u5982\u679c\u672a\u6307\u5b9a\u6b64\u9009\u9879\uff0c<code class=\"literal\">pg_verifybackup</code>\u5373\u4f7f\u5728\u53d1\u73b0\u95ee\u9898\u4e4b\u540e\u4e5f\u4f1a\u7ee7\u7eed\u68c0\u67e5\u5907\u4efd\uff0c\u5e76\u5c06\u68c0\u6d4b\u5230\u7684\u6240\u6709\u95ee\u9898\u62a5\u544a\u4e3a\u9519\u8bef\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-F <em class=\"replaceable\"><code>format</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--format=<em class=\"replaceable\"><code>format</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\u6307\u5b9a\u5907\u4efd\u683c\u5f0f\u3002<em class=\"replaceable\"><code>format</code></em>\u53ef\u4ee5\u662f\u4e0b\u5217\u503c\u4e4b\u4e00\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">p</code><br/></span><span class=\"term\"><code class=\"literal\">plain</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531\u666e\u901a\u6587\u4ef6\u7ec4\u6210\uff0c\u5176\u5e03\u5c40\u4e0e\u6e90\u670d\u52a1\u5668\u7684\u6570\u636e\u76ee\u5f55\u548c\u8868\u7a7a\u95f4\u76f8\u540c\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"literal\">t</code><br/></span><span class=\"term\"><code class=\"literal\">tar</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5907\u4efd\u7531 tar \u6587\u4ef6\u7ec4\u6210\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u7ecf\u8fc7\u538b\u7f29\u3002\u6709\u6548\u7684\u5907\u4efd\u5305\u62ec\u5b58\u653e\u5728 <code class=\"filename\">base.tar</code>\u6587\u4ef6\u4e2d\u7684\u4e3b\u6570\u636e\u76ee\u5f55\u3001\u5b58\u653e\u5728 <code class=\"filename\">pg_wal.tar</code>\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7a7a\u95f4\u5bf9\u5e94\u7684\u5355\u72ec tar \u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4ee5\u8be5\u8868\u7a7a\u95f4\u7684 OID \u547d\u540d\u3002\u5982\u679c\u5907\u4efd\u88ab\u538b\u7f29\uff0c\u5219\u4f1a\u5728\u6bcf\u4e2a\u6587\u4ef6\u540d\u672b\u5c3e\u8ffd\u52a0\u76f8\u5e94\u7684\u538b\u7f29\u6269\u5c55\u540d\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-i <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--ignore=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5728\u5c06\u5907\u4efd\u4e2d\u5b9e\u9645\u5b58\u5728\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u4e0e <code class=\"literal\">backup_manifest</code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6570\u636e\u6587\u4ef6\u5217\u8868\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5ffd\u7565\u6307\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1b\u5b83\u4eec\u5e94\u4ee5\u76f8\u5bf9\u8def\u5f84\u540d\u8868\u793a\u3002\u5982\u679c\u6307\u5b9a\u7684\u662f\u76ee\u5f55\uff0c\u5219\u6b64\u9009\u9879\u4f1a\u5f71\u54cd\u4ee5\u8be5\u4f4d\u7f6e\u4e3a\u6839\u7684\u6574\u4e2a\u5b50\u6811\u3002\u5982\u679c\u76f8\u5bf9\u8def\u5f84\u540d\u4e0e\u6307\u5b9a\u7684\u8def\u5f84\u540d\u5339\u914d\uff0c\u5219\u5173\u4e8e\u989d\u5916\u6587\u4ef6\u3001\u7f3a\u5931\u6587\u4ef6\u3001\u6587\u4ef6\u5927\u5c0f\u5dee\u5f02\u6216\u6821\u9a8c\u548c\u4e0d\u5339\u914d\u7684\u62a5\u9519\u5c06\u88ab\u6291\u5236\u3002\u6b64\u9009\u9879\u53ef\u6307\u5b9a\u591a\u6b21\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-m <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--manifest-path=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4f7f\u7528\u6307\u5b9a\u8def\u5f84\u4e0a\u7684\u5907\u4efd\u6e05\u5355\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u5907\u4efd\u76ee\u5f55\u6839\u90e8\u7684\u90a3\u4efd\u6587\u4ef6\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-n</code><br/></span><span class=\"term\"><code class=\"option\">--no-parse-wal</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u8981\u5c1d\u8bd5\u89e3\u6790\u4ece\u6b64\u5907\u4efd\u6267\u884c\u6062\u590d\u6240\u9700\u7684\u9884\u5199\u5f0f\u65e5\u5fd7\u6570\u636e\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-P</code><br/></span><span class=\"term\"><code class=\"option\">--progress</code></span></dt>\n<dd>\n<p lang=\"zh\">\u542f\u7528\u8fdb\u5ea6\u62a5\u544a\u3002\u542f\u7528\u6b64\u9009\u9879\u540e\uff0c\u5728\u9a8c\u8bc1\u6821\u9a8c\u548c\u65f6\u4f1a\u8f93\u51fa\u8fdb\u5ea6\u62a5\u544a\u3002</p>\n<p lang=\"zh\">\u6b64\u9009\u9879\u4e0d\u80fd\u4e0e<code class=\"option\">--quiet</code>\u4e00\u8d77\u4f7f\u7528\u3002</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-q</code><br/></span><span class=\"term\"><code class=\"option\">--quiet</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5f53\u5907\u4efd\u6210\u529f\u901a\u8fc7\u9a8c\u8bc1\u65f6\u4e0d\u8f93\u51fa\u4efb\u4f55\u5185\u5bb9\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-s</code><br/></span><span class=\"term\"><code class=\"option\">--skip-checksums</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u4e0d\u9a8c\u8bc1\u6570\u636e\u6587\u4ef6\u7684\u6821\u9a8c\u548c\u3002\u4ecd\u4f1a\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u4ee5\u53ca\u8fd9\u4e9b\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u6837\u4f1a\u5feb\u5f97\u591a\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u672c\u8eab\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-w <em class=\"replaceable\"><code>path</code></em></code><br/></span><span class=\"term\"><code class=\"option\">--wal-directory=<em class=\"replaceable\"><code>path</code></em></code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5c1d\u8bd5\u89e3\u6790\u5b58\u50a8\u5728\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684 WAL \u6587\u4ef6\uff0c\u800c\u4e0d\u662f <code class=\"literal\">pg_wal</code>\u4e2d\u7684 WAL \u6587\u4ef6\u3002\u5982\u679c\u5907\u4efd\u4e0e WAL \u5f52\u6863\u5206\u5f00\u5b58\u653e\uff0c\u8fd9\u4f1a\u5f88\u6709\u7528\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">\u5176\u4ed6\u9009\u9879\u4e5f\u53ef\u7528\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"option\">-V</code><br/></span><span class=\"term\"><code class=\"option\">--version</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u6253\u5370<span class=\"application\">pg_verifybackup</span>\u7248\u672c\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n<dt><span class=\"term\"><code class=\"option\">-?</code><br/></span><span class=\"term\"><code class=\"option\">--help</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u663e\u793a\u6709\u5173<span class=\"application\">pg_verifybackup</span>\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e2e\u52a9\u5e76\u9000\u51fa\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.7\">\n<h2 lang=\"zh\">\u793a\u4f8b</h2>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5e76\u9a8c\u8bc1\u8be5\u5907\u4efd\u7684\u5b8c\u6574\u6027\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup /usr/local/pgsql/data</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u4e3a\u4f4d\u4e8e<code class=\"literal\">mydbserver</code>\u7684\u670d\u52a1\u5668\u521b\u5efa\u57fa\u7840\u5907\u4efd\uff0c\u5c06\u5907\u4efd\u6e05\u5355\u79fb\u5230\u5907\u4efd\u76ee\u5f55\u4e4b\u5916\u7684\u4f4d\u7f6e\uff0c\u7136\u540e\u9a8c\u8bc1\u8be5\u5907\u4efd\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/backup1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>mv /usr/local/pgsql/backup1234/backup_manifest /my/secure/location/backup_manifest.1234</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup -m /my/secure/location/backup_manifest.1234 /usr/local/pgsql/backup1234</code></strong>\n</pre>\n<p lang=\"zh\">\u8981\u5728\u9a8c\u8bc1\u5907\u4efd\u65f6\u5ffd\u7565\u4e00\u4e2a\u624b\u5de5\u6dfb\u52a0\u5230\u5907\u4efd\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u540c\u65f6\u8df3\u8fc7\u6821\u9a8c\u548c\u9a8c\u8bc1\uff1a</p>\n<pre class=\"screen\"><code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>edit /usr/local/pgsql/data/note.to.self</code></strong>\n<code class=\"prompt\">$</code> <strong class=\"userinput\"><code>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</code></strong>\n</pre>\n</div>\n<div class=\"refsect1\" id=\"id-1.9.4.20.8\">\n<h2 lang=\"zh\">\u53e6\u89c1</h2><span class=\"simplelist\"><a class=\"xref\" href=\"https://pg.center/docs/18/app-pgbasebackup.html\" title=\"pg_basebackup\"><span class=\"refentrytitle\"><span class=\"application\">pg_basebackup</span></span></a></span>\n</div>\n</div></div>", "manual_path": "app-pgverifybackup.html", "localization": {"status": "complete", "sources": [{"url": "/docs/18/app-pgverifybackup.html", "method": "same-major semantic node", "sha256": "d2a0424c540907f7ca77f935f235ae09c84632371a39e1d9dc653312cfd56afc", "language": "zh", "matched_nodes": ["#APP-PGVERIFYBACKUP/div[2]/p[1]", "#APP-PGVERIFYBACKUP/div[3]/h2[0]", "#APP-PGVERIFYBACKUP/div[4]/p[2]", "#APP-PGVERIFYBACKUP/div[4]/p[3]", "#APP-PGVERIFYBACKUP/div[4]/p[4]", "#APP-PGVERIFYBACKUP/div[4]/p[5]", "#APP-PGVERIFYBACKUP/div[4]/p[6]", "#APP-PGVERIFYBACKUP/div[4]/p[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[11]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[13]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[15]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[17]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/div[1]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[3]/p[0]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[5]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[7]", "#APP-PGVERIFYBACKUP/div[5]/div[2]/dl[0]/dd[9]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[1]", "#APP-PGVERIFYBACKUP/div[5]/div[4]/dl[0]/dd[3]", "#APP-PGVERIFYBACKUP/div[5]/p[1]", "#APP-PGVERIFYBACKUP/div[5]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/h2[0]", "#APP-PGVERIFYBACKUP/div[6]/p[1]", "#APP-PGVERIFYBACKUP/div[6]/p[3]", "#APP-PGVERIFYBACKUP/div[6]/p[5]", "#APP-PGVERIFYBACKUP/div[7]/h2[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "pg_verifybackup \u2014 verify the integrity of a base backup of a PostgreSQL cluster", "/versions/18/facts/0/label": "Documented executable", "/versions/18/facts/1/label": "Executable version", "/versions/18/facts/2/label": "Reference inventory", "/versions/18/facts/2/value": "Client applications", "/versions/18/facts/3/label": "Option definition groups", "/versions/18/tables/0/title": "Documented options", "/versions/18/tables/0/rows/0/summary": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors.", "/versions/18/tables/0/rows/1/summary": "Specifies the format of the backup. format can be one of the following:", "/versions/18/tables/0/rows/2/summary": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.", "/versions/18/tables/0/rows/3/summary": "Use the manifest file at the specified path, rather than one located in the root of the backup directory.", "/versions/18/tables/0/rows/4/summary": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup.", "/versions/18/tables/0/rows/5/summary": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums.", "/versions/18/tables/0/rows/6/summary": "Don't print anything when a backup is successfully verified.", "/versions/18/tables/0/rows/7/summary": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read.", "/versions/18/tables/0/rows/8/summary": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive.", "/versions/18/tables/0/rows/9/summary": "Print the pg_verifybackup version and exit.", "/versions/18/tables/0/columns/0/label": "Option and arguments", "/versions/18/tables/0/columns/1/label": "Description", "/versions/18/tables/0/rows/10/summary": "Show help about pg_verifybackup command line arguments, and exit."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1b0ff781a4a0cb42a63529eab385d0321370996444162370d2cdd9c7e0105e43"}, "comparison_data": {"options": [{"names": ["-e", "--exit-on-error"], "signature": "-e --exit-on-error", "description": "Exit as soon as a problem with the backup is detected. If this option is not specified, pg_verifybackup will continue checking the backup even after a problem has been detected, and will report all problems detected as errors."}, {"names": ["-F format", "--format= format"], "signature": "-F format --format= format", "description": "Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name."}, {"names": ["-i path", "--ignore= path"], "signature": "-i path --ignore= path", "description": "Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times."}, {"names": ["-m path", "--manifest-path= path"], "signature": "-m path --manifest-path= path", "description": "Use the manifest file at the specified path, rather than one located in the root of the backup directory."}, {"names": ["-n", "--no-parse-wal"], "signature": "-n --no-parse-wal", "description": "Don't attempt to parse write-ahead log data that will be needed to recover from this backup."}, {"names": ["-P", "--progress"], "signature": "-P --progress", "description": "Enable progress reporting. Turning this on will deliver a progress report while verifying checksums. This option cannot be used together with the option --quiet ."}, {"names": ["-q", "--quiet"], "signature": "-q --quiet", "description": "Don't print anything when a backup is successfully verified."}, {"names": ["-s", "--skip-checksums"], "signature": "-s --skip-checksums", "description": "Do not verify data file checksums. The presence or absence of files and the sizes of those files will still be checked. This is much faster, because the files themselves do not need to be read."}, {"names": ["-w path", "--wal-directory= path"], "signature": "-w path --wal-directory= path", "description": "Try to parse WAL files stored in the specified directory, rather than in pg_wal . This may be useful if the backup is stored in a separate location from the WAL archive."}, {"names": ["-V", "--version"], "signature": "-V --version", "description": "Print the pg_verifybackup version and exit."}, {"names": ["-?", "--help"], "signature": "-? --help", "description": "Show help about pg_verifybackup command line arguments, and exit."}], "synopsis": ["pg_verifybackup [ option ...]"], "environment": []}, "comparison_hash": "713579f713732d850e7621f55d2508d075087e1f20aa56ca669fbd749c9a737c", "manual_language": "zh"}, "comparison": {"left": "17", "right": "18", "status": "changed", "diff": "--- PostgreSQL 17\n+++ PostgreSQL 18\n@@ -8,6 +8,14 @@\n         \"--exit-on-error\"\n       ],\n       \"signature\": \"-e --exit-on-error\"\n+    },\n+    {\n+      \"description\": \"Specifies the format of the backup. format can be one of the following: p plain Backup consists of plain files with the same layout as the source server's data directory and tablespaces. t tar Backup consists of tar files, which may be compressed. A valid backup includes the main data directory in a file named base.tar , the WAL files in pg_wal.tar , and separate tar files for each tablespace, named after the tablespace's OID. If the backup is compressed, the relevant compression extension is added to the end of each file name.\",\n+      \"names\": [\n+        \"-F format\",\n+        \"--format= format\"\n+      ],\n+      \"signature\": \"-F format --format= format\"\n     },\n     {\n       \"description\": \"Ignore the specified file or directory, which should be expressed as a relative path name, when comparing the list of data files actually present in the backup to those listed in the backup_manifest file. If a directory is specified, this option affects the entire subtree rooted at that location. Complaints about extra files, missing files, file size differences, or checksum mismatches will be suppressed if the relative path name matches the specified path name. This option can be specified multiple times.\","}}