Use the Solaris Flash flar command to create a Solaris Flash archive and administer the archive
The flar command can be used with the following options:
flarcreate creates an archive
flar combin merges two archives
flar split breaks an archive into sections
flar info checks the structure of an archive
Use the flarcreate command to create a Solaris Flash archive from a master system. You can use this command when the master system is running in multiuser mode or single-user mode. You can also use flarcreate when the master system is booted from the following media.
Solaris Operating System DVD
Solaris Software - 1 CD
An image of the Solaris Software CDs and Solaris Languages CD
The master system should be in as stable a state as possible when you create a Solaris Flash archive.
You can create a Solaris Flash archive by using either of these command options:
As two words: flar with the create subcommand
As one word: flarcreate
The syntax of the command is as follows:
flarcreate
n
archive_name
[
R
root
] [
A
unchanged_master_image_dir
]
[
H
][
I
][
M
][[
S
]
c
][
t
[
p
posn
]
[
b
blocksize
]][
i
date
][
u
section
...][
m
master
][
f
[list_filename
| -] [
F
][
a
author
][
e
descr
|
E
descr_file
][
L
cpio][
T
type
][
U
key=val
...][
x
exclude_dir/filename
]
[
y
include_dir/filename
] [
z
list_filename
] [
X
list_filename
]path/filename
flar combine [
d
dir
] [
u
section...
] [
t
[
p
posn
] path/filename
flar split [
d
dir
] [
u
section...
] [
f
] [
S
section
] [
t
[
p
posn
] path/filename
flar info [
l
]
[
k
keyword
] [
t
[
p
posn
] path/filename
In the previous command lines, path
is the directory
in which you want the archive file to be saved. filename
is
the name of the archive file. If you do not specify a path, flarcreate saves the archive file
in the current directory.
Table 5.7. Command-Line Options for the flar Command
Option |
Description |
---|---|
Required Options | |
|
The value of this flag is the name of the archive. The |
Option for Compression | |
|
Compresses the archive by using compress(1). |
Options for Directories and Sizes | |
|
Creates the archive from the file system tree that is rooted at |
|
Omits sizing information in the archive. |
|
Does not generate the hash identifier. |
Options for Creating a Differential Archive | |
|
Creates a differential archive by comparing a new system image with the image
that is specified by the You can modify the effects of file selection for a differential archive by using the options for contents selection described in the next section of the table. |
|
Excludes the manifest file. When you use this option, no validation occurs on the differential archive. When creating a differential archive, flarcreate creates a long list of the files in the system that are unchanged, are changed, and are to be deleted from the archive. This list is stored in the manifest section of the archive. When the differential archive is deployed, the software uses this list to perform a file-by-file check, ensuring the integrity of the clone system. Use of this option avoids such a check and saves the space that is used by the manifest section in a differential archive. However, you must consider the savings in time and disk space against the loss of an integrity check upon installation. Because no validation occurs, avoid using this option. |
Options for Contents Selection | |
CautionUse the flarcreate file-exclusion options with caution. If you exclude some directories, others that you were unaware of might be left in the archive, such as system configuration files. The system would then be inconsistent and the installation would not work. Excluding directories and files is best used with data that can easily be removed without disrupting the system, such as large data files. | |
|
Adds to the archive those files and directories that are specified on the command line. This option is used when you have excluded a directory, but want to restore individual subdirectories or files.
|
|
Adds files and directories from a list to the archive.
|
|
Uses only the files in |
|
Excludes files and directories from the archive. These files and directories are specified at the command line. You can use multiple instances of this option to exclude more than one file or directory.
|
|
Excludes a list of files or directories from the archive.
|
|
Excludes or includes a list of files or directories from the archive. Each file or directory in the list is noted with a plus “+” or minus “-”. A plus indicates an included file or directory and the minus indicates an excluded file or directory.
|
|
Override the integrity check. To prevent you from excluding important system
files from an archive, flarcreate runs an integrity check. This check examines all files that are registered
in a system package database and stops archive creation if any of them are excluded.
Use of this option overrides this integrity check. Therefore, avoid the use of the |
Options for Splitting and Merging Archives | |
|
Retrieves the sections to copy from |
|
|
|
Extracts the archive section into a directory that is named |
|
Only copies the section that is named |
Option Used To Copy Files (Archive) | |
|
The pax utility
is the default copy method. For backward compatibility issues, you can create
a cpio archive with the |
Options Used With User-Defined Sections | |
|
Includes |
|
Retrieves the section file that is specified with |
Options Used With Tape Archives | |
|
Creates an archive on a tape device. The |
|
Use only with the |
|
Specifies the block size flarcreate uses when creating the archive. If you do not specify a block size, flarcreate uses the default block size of 64 KB. |
Options for Archive Identification These keywords and values appear in the archive identification section of the archive. | |
|
Includes user-defined keywords and values in the archive identification section. |
|
Uses |
|
Uses |
|
Uses |
|
Retrieves the value for the |
|
Uses |
|
Uses |