HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

f
ftio(1) ftio(1)
cpio Compatibility
ftio uses the same archive format as cpio
. However, by default ftio creates tape headers and uses a
tape block size of 16KB.
cpio by default uses 512-byte blocks. When used with the
-B option, cpio
uses 5120 byte blocks. To achieve full compatibility with
cpio in either input or output mode, the user
should specify the
M modifier. ftio -oM
creates a single- or multi-tape archive that has no tape
headers, and, by default, the same block size as
cpio -[oi]B. An archive created by a cpio -oB
command can be restored using ftio -iM. If the
M modifier of ftio is combined with a -B 512
block-size specification, full compatibility with
cpio -[oi
] (no -B)isachieved.
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the collating sequence used in evaluating pattern matching notation for file
name generation.
LC_CTYPE determines the characters matched by character class expressions in pattern matching nota-
tion.
LC_TIME determines the format and contents of date and time strings.
LANG determines the language in which messages are displayed.
If LC_COLLATE, LC_CTYPE, or LC_TIME is not specified in the environment or is set to the empty
string, the value of LANG is used as a default for each unspecified or empty variable. If
LANG is not
specified or is set to the empty string, a default of C (see lang(5)) is used instead of
LANG. If any interna-
tionalization variable contains an invalid setting,
ftio behaves as if all internationalization variables are
set to C. See environ(5).
International Code Set Support
Single-byte character code sets are supported.
EXAMPLES
Copy the entire contents of the file system (including special files) onto tape drive
/dev/rmt/c0t0d0BEST
:
ftio -ox /dev/rmt/c0t0d0BEST /
Restore all the files on /dev/rmt/c0t0d0BEST
, relative to the current directory:
ftio -idxE /dev/rmt/c0t0d0BEST
List the contents of a backup set created using ftio -o. Note that use of the
v modifier gives a more
detailed listing, and displays the contents of tape headers.
ftio -itv /dev/rmt/c0t0d0BEST
Show how to use the .ftiorc file:
Assume a .ftiorc file exists in the user’s home directory and contains the following:
# Sample .ftiorc file.
I= cdmuvEpp -B 16k -S /usr/local/bin/ftio.change
O= cavEpp -Z 8 -B 16k -S /usr/local/bin/ftio.change
Invoke ftio with the following command line to back up the user’s home directory and the operat-
ing system commands directory:
ftio -O /dev/rmt/c0t0d0BEST /home/my_home /usr/sbin
Specifying the -O option causes ftio to check the .ftiorc file for additional options. In this
case, character headers are generated, access times are reset, a listing of the files copied are printed
to standard output, all file names are copied to /dev/rmt/c0t0d0BEST with path names relative
to
/, performance data is printed when the backup is complete (and at every tape change), and, if the
backup goes beyond one media the script, /usr/local/bin/ftio.change is invoked by
ftio
after each media is completed.
WARNINGS
Because of industry standards and interoperability goals, ftio does not support the archival of files larger
than 2GB or files that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K
are archived and restored under the user/group ID of the current process.
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 1303