{
    "content": [
        {
            "type": "text",
            "text": "# xfs_mdrestore(8) (man)\n\n**Summary:** xfsmdrestore - restores an XFS metadump image to a filesystem image\n\n**Synopsis:** xfsmdrestore [ -gi ] source target\nxfsmdrestore -i source\nxfsmdrestore -V\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -g | — | — |  |\n| -i | — | — | ing information. Older metadumps man not include any descriptive information. |\n| -V | — | — |  |\n\n## See Also\n\n- xfsmetadump(8)\n- xfsrepair(8)\n- xfs(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (10 lines)\n- **OPTIONS** (1 lines) — 3 subsections\n  - -g (1 lines)\n  - -i (2 lines)\n  - -V (1 lines)\n- **DIAGNOSTICS** (3 lines)\n- **SEE ALSO** (2 lines)\n- **BUGS** (5 lines)\n\n## Full Content\n\n### NAME\n\nxfsmdrestore - restores an XFS metadump image to a filesystem image\n\n### SYNOPSIS\n\nxfsmdrestore [ -gi ] source target\nxfsmdrestore -i source\nxfsmdrestore -V\n\n### DESCRIPTION\n\nxfsmdrestore is a debugging tool that restores a metadata image generated by xfsmetadump(8)\nto a filesystem. The source argument specifies the location of the  metadump  image  and  the\ntarget argument specifies the destination for the filesystem image.  If the source is -, then\nthe metadata image is read from stdin. This allows the output of be another program such as a\ncompression  application  to be redirected to xfsmdrestore.  The target can be either a file\nor a device.\n\nxfsmdrestore should not be used to restore metadata onto an existing filesystem  unless  you\nare completely certain the target can be destroyed.\n\n### OPTIONS\n\n#### -g\n\n#### -i\n\ning information.  Older metadumps man not include any descriptive information.\n\n#### -V\n\n### DIAGNOSTICS\n\nxfsmdrestore returns an exit code of 0 if all the metadata is successfully restored or 1  if\nan error occurs.\n\n### SEE ALSO\n\nxfsmetadump(8), xfsrepair(8), xfs(5)\n\n### BUGS\n\nEmail bug reports to linux-xfs@vger.kernel.org.\n\n\n\nxfsmdrestore(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "xfs_mdrestore",
        "section": "8",
        "mode": "man",
        "summary": "xfsmdrestore - restores an XFS metadump image to a filesystem image",
        "synopsis": "xfsmdrestore [ -gi ] source target\nxfsmdrestore -i source\nxfsmdrestore -V",
        "flags": [
            {
                "flag": "-g",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-i",
                "long": null,
                "arg": null,
                "description": "ing information. Older metadumps man not include any descriptive information."
            },
            {
                "flag": "-V",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "xfsmetadump",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfsmetadump/8/json"
            },
            {
                "name": "xfsrepair",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/xfsrepair/8/json"
            },
            {
                "name": "xfs",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/xfs/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-g",
                        "lines": 1,
                        "flag": "-g"
                    },
                    {
                        "name": "-i",
                        "lines": 2,
                        "flag": "-i"
                    },
                    {
                        "name": "-V",
                        "lines": 1,
                        "flag": "-V"
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}