
Chapter 3 Archiving 65
Example. The lines in CODE EXAMPLE 3-8 specify that all files of at least 500 kilobytes,
but less than 100 megabytes, belong to the archive set big_files. Files bigger than
100 megabytes belong to the archive set huge_files.
Owner and Group search-criterion: -user and -group
The ownership and group affiliation can be used to determine archive set
membership through the -user name and –group name characteristics. In
CODE EXAMPLE 3-9, all files belonging to user sysadmin belong to archive set
adm_set, and all files with the group name of marketing are in the archive set
mktng_set.
File Name search-criterion Using Pattern Matching:
-name regex
The names of files to be included in an archive set can be specified by regular
expressions. The -name regex specification as a search-criterion directive specifies that
any complete path matching the regular expression regex is to be a member of the
archive set.
The regex argument follows the conventions outlined in the regexp(5) man page.
Note that regular expressions do not follow the same conventions as UNIX
wildcards.
T Terabytes
P Petabytes
E Exabytes
CODE EXAMPLE 3-8 Using the -minsize and -maxsize Directive Examples
big_files . -minsize 500k -maxsize 100M
huge_files . -minsize 100M
CODE EXAMPLE 3-9 Using the -user and -group Directive Examples
adm_set . -user sysadmin
mktng_set . -group marketing
TABLE 3-10 -minsize and -maxsize size Suffixes (Continued)
Letter Meaning
Comentarios a estos manuales