# xfs_mdrestore - restores an XFS metadump image to a filesystem image - man(8) - [phpMan]

[_xfs_mdrestore_(8)](https://www.chedong.com/phpMan.php/man/xfsmdrestore/8/markdown)                       System Manager's Manual                      [_xfs_mdrestore_(8)](https://www.chedong.com/phpMan.php/man/xfsmdrestore/8/markdown)

## NAME
       xfs_mdrestore - restores an XFS metadump image to a filesystem image

## SYNOPSIS
       **xfs_mdrestore **[ **-gi **] [ **-l _**logdev_ ] _source_ _target_
       **xfs_mdrestore -i **[ **-l _**logdev_ ] _source_
### xfs_mdrestore -V

## DESCRIPTION
       **xfs_mdrestore **is a debugging tool that restores a metadata image generated by [**xfs_metadump**(8)](https://www.chedong.com/phpMan.php/man/xfsmetadump/8/markdown)
       to  a  filesystem.  The  _source_ argument specifies the location of the metadump image and the
       _target_ argument specifies the destination for the filesystem image.  If the _source_ is -, then
       the metadata image is read from stdin. This allows the output of be another program such as a
       compression application to be redirected to **xfs_mdrestore**.  The _target_ can be either  a  file
       or a device.

       **xfs_mdrestore  **should  not be used to restore metadata onto an existing filesystem unless you
       are completely certain the _target_ can be destroyed.

## OPTIONS
### -g     

### -i     
              ing information.  Older metadumps man not include any descriptive information.

### -l _
              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.

### -V     

## DIAGNOSTICS
       **xfs_mdrestore **returns an exit code of 0 if all the metadata is successfully restored or 1  if
       an error occurs.

## SEE ALSO
       [**xfs_metadump**(8)](https://www.chedong.com/phpMan.php/man/xfsmetadump/8/markdown), [**xfs_repair**(8)](https://www.chedong.com/phpMan.php/man/xfsrepair/8/markdown), [**xfs**(5)](https://www.chedong.com/phpMan.php/man/xfs/5/markdown)

## BUGS
       Email bug reports to **<linux-xfs@vger.kernel.org>**.

                                                                                    [_xfs_mdrestore_(8)](https://www.chedong.com/phpMan.php/man/xfsmdrestore/8/markdown)
