.\" Text automatically generated by txt2man .TH era_restore 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBera_restore \fP- restore era metadata file to device or file. \fB .SH SYNOPSIS .nf .fam C \fBera_restore\fP [\fIoptions\fP] \fB-i\fP {xml file} \fB-o\fP {device|file} .fam T .fi .fam T .fi .SH DESCRIPTION \fBera_restore\fP restores era metadata created by the respective device-mapper target dumped into an XML formatted (see \fBera_dump\fP(8)) file, which optionally can be preprocessed before the restore to another device or file. If restored to a metadata device, the metadata can be processed by the device-mapper target. .PP This tool cannot be run on live metadata. .SH OPTIONS .TP .B \fB-h\fP, \fB--help\fP Print help and exit. .TP .B \fB-V\fP, \fB--version\fP Print version information and exit. .TP .B \fB-q\fP, \fB--quiet\fP Don't print any output. Check the exit code to test for success. .TP .B \fB-i\fP, \fB--input\fP {xml file} Specify input file containing xml metadata. .TP .B \fB-o\fP, \fB--output\fP {device|file} Output device or file for restored binary metadata. .PP .nf .fam C If a file is used, then it must be preallocated, and large enough to hold the metadata. .fam T .fi .SH EXAMPLE Restores the XML formatted era metadata on file metadata to logical volume /dev/vg/metadata for further processing by the respective device-mapper target: .PP .nf .fam C $ era_restore -i metadata -o /dev/vg/metadata .fam T .fi .SH DIAGNOSTICS \fBera_restore\fP returns an exit code of 0 for success or 1 for error. .SH SEE ALSO \fBera_dump\fP(8), \fBera_check\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen