# xfs_mdrestore(8) - man - 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** ] _source_ _target_
       **xfs**___**mdrestore** **-i** _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/metadump/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.

### -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/metadump/8/markdown), **xfs**___**[repair**(8)](https://www.chedong.com/phpMan.php/man/repair/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)
