X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=doc%2Fimagex-export.1.in;h=164b1d01d2c33c029a7822d2aa8318b54eee6d5b;hb=6bfd39a86273062b28536d4aec66893bc2fecdc0;hp=4bedcb9c63745b0c5b011c8a16fbeb093a9823e8;hpb=4f9947253f6a08f4a922d3efe0880e3039b3eb5e;p=wimlib diff --git a/doc/imagex-export.1.in b/doc/imagex-export.1.in index 4bedcb9c..164b1d01 100644 --- a/doc/imagex-export.1.in +++ b/doc/imagex-export.1.in @@ -1,6 +1,6 @@ -.TH IMAGEX "1" "May 2012" "imagex (wimlib) wimlib @VERSION@" "User Commands" +.TH IMAGEX "1" "October 2012" "imagex (wimlib) wimlib @VERSION@" "User Commands" .SH NAME -imagex export \- Exports an image from a WIM archive to an existing or new WIM archive +imagex-export \- Exports an image from a WIM archive to an existing or new WIM archive .SH SYNOPSIS \fBimagex export\fR \fISRC_WIMFILE\fR (\fISRC_IMAGE_NUM\fR | \ @@ -29,10 +29,15 @@ If given, \fIDEST_IMAGE_DESCRIPTION\fR specifies the description to give the image being exported to \fIDEST_WIMFILE\fR. The default is its description in \fISRC_WIMFILE\fR. +\fBimagex export\fR supports exporting images from stand-alone WIMs as well as +from split WIMs. However, you cannot export an image to a split WIM. See +\fBSPLIT WIMS\fR. + .SH OPTIONS .TP 6 \fB--boot\fR -Specifies that the exported image is to be the bootable image of the WIM archive. +Specifies that the exported image is to be the bootable image of the destination +WIM archive. If multiple images are being exported, this flag indicates that the image in the \fISRC_WIMFILE\fR that is currently marked as bootable is to be made bootable in @@ -45,26 +50,62 @@ present; additionally, when writing \fIDEST_WIMFILE\fR with the new image added, write an integrity table. If this option is not specified, no integrity table is included in \fIDEST_WIMFILE\fR, even if there was one before. .TP -\fB--compress\fR[=\fITYPE\fR] +\fB--compress\fR=\fITYPE\fR Specifies the compression type for \fIDEST_WIMFILE\fR. This is only valid if -\fIDEST_WIMFILE\fR does not yet exist. +\fIDEST_WIMFILE\fR does not yet exist, since if \fIDEST_WIMFILE\fR exists, the +compression type must be the same as that of \fIDEST_WIMFILE\fR. -\fITYPE\fR may be "none", -"maximum", or "fast". By default, the compression type is "none". If \fB--compress\fR -is specified but \fITYPE\fR is not, the compression type is taken to be -"maximum", which is LZX compression. "fast" compression is XPRESS compression. +\fITYPE\fR may be "none", "maximum", or "fast". By default, it is the same as +that of the input WIM file. -.SH NOTES +You may also specify the actual names of the compression algorithms, "XPRESS" +and "LZX", instead of "fast" and "maximum", respectively. -\fBimagex export\fR does not support split WIMs. +.TP +\fB--ref\fR="\fIGLOB\fR" +File glob of additional split WIM parts that are part of the split WIM being +exported. See \fBSPLIT_WIMS\fR. -.SH EXAMPLES -.IP -image export boot.wim 2 image2.wim --compress=maximum -.LP -Export the second image of 'boot.wim' to the new WIM file 'image2.wim', and -change the compression type to maximum, if it wasn't maximum already. +.SH SPLIT WIMS + +You may use \fBimagex export\fR to export images from a split WIM. The +\fISRC_WIMFILE\fR argument is used to specify the first part of the split WIM, and +the \fB--refs\fR="\fIGLOB\fR" option is used to provide a shell-style file glob +that specifies the additional parts of the split WIM. \fIGLOB\fR is expected to +be a single string on the command line, so \fIGLOB\fR must be quoted so that it +is protected against shell expansion. \fIGLOB\fR must expand to all parts of +the split WIM, except optionally the first part which may either omitted or +included in the glob (but the first part MUST be specified as \fISRC_WIMFILE\fR as +well). + +Here's an example. The names for the split WIMs usually go something like: + +.RS +.PP +.nf +mywim.swm +mywim2.swm +mywim3.swm +mywim4.swm +mywim5.swm +.RE +To export the first image of this split WIM to a new or existing WIM file +"other.wim", run: +.PP +.RS +imagex export mywim.swm 1 other.wim --ref="mywim*.swm" +.RE +.PP + +.SH EXAMPLES +Export the second image of 'boot.wim' to the new WIM file 'new.wim', and +change the compression type to maximum, if it wasn't maximum already: +.RS +.PP +image export boot.wim 2 new.wim --compress=maximum +.RE +.PP .SH SEE ALSO .BR imagex (1)