{
    "mode": "man",
    "parameter": "xfs_mdrestore",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/xfs_mdrestore/8/json",
    "generated": "2026-05-30T08:17:53Z",
    "synopsis": "xfsmdrestore [ -gi ] source target\nxfsmdrestore -i source\nxfsmdrestore -V",
    "sections": {
        "NAME": {
            "content": "xfsmdrestore - restores an XFS metadump image to a filesystem image\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xfsmdrestore [ -gi ] source target\nxfsmdrestore -i source\nxfsmdrestore -V\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "xfsmdrestore 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",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-g",
                    "content": "",
                    "flag": "-g"
                },
                {
                    "name": "-i",
                    "content": "ing information.  Older metadumps man not include any descriptive information.\n",
                    "flag": "-i"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "xfsmdrestore returns an exit code of 0 if all the metadata is successfully restored or 1  if\nan error occurs.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "xfsmetadump(8), xfsrepair(8), xfs(5)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Email bug reports to linux-xfs@vger.kernel.org.\n\n\n\nxfsmdrestore(8)",
            "subsections": []
        }
    },
    "summary": "xfsmdrestore - restores an XFS metadump image to a filesystem image",
    "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"
        }
    ]
}