File-System Archives
File-system archives are also known as i-node archives due to the method used to archive the files. A file-system name is specified with the backup command, and the files within that file system are archived based on their structure and layout within the file system. The restore command restores the files on a file-system archive without any special understanding of the underlying structure of the file system.
The File parameter is ignored when using either the -r or the -R flag.
File-Name Archives
File-name archives are created by specifying a list of file names to archive to the backup command. The restore command restores the files from a file-name archive without any special understanding of the underlying structure of the file system. The restore command allows for metacharacters to be used when specifying files for archive extraction. This provides the capability to extract files from an archive based on pattern matching. A pattern filename must be enclosed in single quotations, and patterns must be enclosed in brackets (...).
About Sparse Files
Sparse files are generally created by database applications. Since whenever a database file is created it is formatted with NULLs. These fragments may be either filled with allocated or unallocated NULLs.
Item | Description |
---|---|
-a | Specified with the t and/or T option, the -a option displays the list of files in the archive, along with their permissions. |
-B | Specifies that the archive must be read from standard input. Normally, the restore command examines the actual medium to determine the backup format. When using a | (pipe), this examination cannot occur. As a result, the archive is assumed to be in file-system format, and the device is assumed to be standard input (-f -). |
-b Number | For backups done by name, specifies the number of 512-byte
blocks; for backups done by i-node, specifies the number of 1024-byte
blocks to read in a single output operation. When the restore command
reads from tape devices, the default is 100 for backups by name and
32 for backups by i-node. The read size is the number of blocks multiplied by the block size. The default read size for the restore command reading from tape devices is 51200 (100 * 512) for backups by name and 32768 (32 * 1024) for backups by i-node. The read size must be an even multiple of the tapes physical block size. If the read size is not an even multiple of the tapes physical block size and it is in fixed block mode (nonzero), the restore command tries to determine a valid value for Number. If successful, the restore command changes Number to the new value, writes a message about the change to standard output, and continues. If unsuccessful in finding a valid value for Number, the restore command writes an error message to standard error and exits with a nonzero return code. Larger values for the Number parameter result in larger physical transfers from the tape device. The value of the -b flag is always ignored when the restore command reads from diskette. In this case, the command always reads in clusters that occupy a complete track. |
-d | Indicates that, if the File parameter is a directory, all files in that directory must be restored. This flag can only be used when the archive is in file-name format. |
-e | Restores the non-sparse files as non-sparse as they were
archived by the name format of backup command for both packed
and unpacked files. It is necessary to know the sparseness/non-sparseness
of the file(s) before archiving the files, since enabling this flag
restores the sparse files as non-sparse. This flag must be enabled only if files are to be restored are non-sparse consisting of more than 4K NULLs. If the -e flag is specified during restore, it successfully restores all normal files normally and non-sparse database files as non-sparse. |
-E | The -E option extracts beginning at
a specified volume number and requires one of the following arguments.
If you omit the -E option, warn is the default behavior.
|
-f Device | Specifies the input device. To receive input from a named
device, specify the Device variable as a path name (such as /dev/rmt0).
To receive input from the standard output device, specify a - (minus
sign). The - (minus) feature enables you to pipe the input of the restore command
from the dd command.
You can also specify a range of archive devices. The range specification must be in the following format:
where XXX and YYY are whole numbers, and XXX must always be less than YYY; for example, /dev/rfd0-3. All devices in the specified range must be of the same type. For example, you can use a set of 8mm, 2.3GB tapes or a set of 1.44MB diskettes. All tape devices must be set to the same physical tape block size. If the Device variable specifies a range, the restore command automatically goes from one device in the range to the next. After exhausting all of the specified devices, the restore command halts and requests that new volumes be mounted on the range of devices. |
-h | Restores only the actual directory, not the files contained in it. This flag can only be used when the archive is in file-system format. This flag is ignored when used with the -r or -R flags. |
-I Label | The restore command applies this integrity label for files without security labels in the archive. The label that is supplied must exist on the system. This option is valid only for restoring files by name on Trusted AIX®. |
-i | Allows you to interactively restore selected files from a
file-system archive. The subcommands for the -i flag are:
|
-l | Specified with the -t and -T option. When specified, displays a detailed list of files, which includes the timestamp, file permissions, file size, owner, and group. The -l option overrides the -a option. |
-L Label | The restore command applies this sensitivity label for files without security labels in the archive. The label that is supplied must exist on the system. This option is valid only for restoring files by name on Trusted AIX. |
-M | Sets the access and modification times of restored files to the time of restoration. If a restored file is an archive created by the html |