{
    "mode": "man",
    "parameter": "xfs_mdrestore",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/xfs_mdrestore/8/json",
    "generated": "2026-10-06T17:01:47Z",
    "synopsis": "xfsmdrestore [ -gi ] [ -l logdev ] source target\nxfsmdrestore -i [ -l logdev ] source",
    "sections": {
        "NAME": {
            "content": "xfsmdrestore - restores an XFS metadump image to a filesystem image\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xfsmdrestore [ -gi ] [ -l logdev ] source target\nxfsmdrestore -i [ -l logdev ] source",
            "subsections": [
                {
                    "name": "xfs_mdrestore -V",
                    "content": ""
                }
            ]
        },
        "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": "-l _",
                    "content": "Metadump in v2 format can contain metadata dumped from an external  log.   In  such  a\nscenario,  the  user has to provide a device to which the log device contents from the\nmetadump file are copied.\n",
                    "flag": "-l"
                },
                {
                    "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\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": "-l",
            "long": null,
            "arg": null,
            "description": "Metadump in v2 format can contain metadata dumped from an external log. In such a scenario, the user has to provide a device to which the log device contents from the metadump file are copied."
        },
        {
            "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"
        }
    ]
}