![]() |
![]() |
|
|
![]() |
![]() |
STORE and TurboSTORE/iX Products Manual: 900 Series HP 3000 Computer Systems > Chapter 5 Storing Files![]() Specifying Files in a STORE Command |
|
The files that you are allowed to store depend on your capability. In general, you may only store files that you have read access to. If you are a system manager, system supervisor, or system operator, you can store any file in the system. The following section describes how you specify which files you want to be stored. The entire set of files to be stored is known as a fileset list. The fileset list is the first argument to the store command. If no files are specified, the default set is all files in your current working directory, or "@". This is the default no matter what capabilities you may have.
If a fileset list is specified, it must follow certain guidelines. The list is made up of comma separated fileset items. Each item can be either a fileset or an indirect file. A fileset specifies a group of files to be stored. It can also include an exclusion set, which is a group of files to be excluded from the STORE operation. The syntax for a fileset is: filestostore [ - filestoexclude [ - .... ] ] Where filestore represents a fileset and filestoexclude represents an exclusion fileset. The filestostore and filestoexclude are specified using the same syntax. Any file that matches filestostore will be stored, unless the file also matches a filestoexclude. An unlimited number of filestoexclude may be specified. However, if the TRANSPORT option is also being used, only one filestoexclude may be specified.
Filesets and exclusion sets are specified using the same format. They can be specified two different ways:
A file is specified as: filename[.groupname[.accountname] ] If accountname is omitted, the file is looked for in your logon account. If groupname is omitted, the file is looked for in your current working directory. A lockword may be specified for a file, in the form: filename/lockword.group.account A file is specified as:
or
If the name begins with a dot ( . ), then it is fully qualified by replacing the dot with the current working directory (CWD). Each of the components dir_lev_i and filedesig can have a maximum of 255 characters with the full pathname being restricted to 1023 characters. Each of the components dir_lev_i and filedesig can use the following characters:
For HFS syntax, the lowercase letters are distinct from the uppercase letters (no upshifting). Names in MPE syntax are upshifted. Use wildcard characters to select multiple files to store. The wildcard character is expanded to include all files that match. Both MPE and HFS name components use the at sign (@), pound sign (#), and question mark (?) as wildcard characters. These wildcard characters have the following meaning:
The characters can be used as follows:
Also, character sets may be specified in the following syntax:
Examples of using character sets are:
You specify up to a maximum of sixteen characters for each character set, and you cannot nest brackets. Do not use character sets with the TRANSPORT option. A character set specifies a range for only one ASCII character. The range [a-d]@ gets all files that begin with the letter "a" through the letter "d". The range [ad-de] will cause unpredictable results.
When an MPE name component is a single @ wildcard, the @ includes all MPE and MPE-named files at that level and below. To specify only MPE-named files, use ?@ instead. The ? forces the first character of the filename to be an alphanumeric character, which only matches MPE-named files. MPE wildcards are not expanded in exclusion filesets. This means that @.@.@-@.@.@ is NOT an empty fileset. @.@.@ is the same as /. -@.@.@ does not have an HFS equivalent. -@.@.@ specifies all HFS-named files on the system, the resulting fileset is all of the HFS named files on the system. You can enter a fileset in any of the following formats and may use wildcard characters. Equivalent MPE and HFS formats are grouped together.
Examples:
If you back up the same information regularly, you might keep the STORE parameters and options you use in an indirect file. An indirect file is a text file containing filesets, exclusion sets, and parameters for a STORE command. Instead of listing the files you want to store and the options you want to use in a STORE command, enter them in a text file and name the text file in the STORE command. An indirect file must:
The following is an example of using an indirect file: Suppose you regularly back up all the files on your system, including the system directory and a nonsystem volume set's files and directory. The usual STORE command, as illustrated in the previous section, might be:
Using an indirect file can save time, especially if your STORE command is long or contains information that is difficult to remember. You enter the STORE files and parameters in a text file:
Give the text file a name that is easy to remember, and reference the text file name in a STORE command. The following STORE command references the file BACKUP as an indirect file:
The caret (^) is used prior to the filename to tell STORE that it is an indirect file. The exclamation point (!) can also be used, but it will be interpreted by the command interpreter (CI) as a variable deference. If you do not intend for it to be used that way, you should specify two exclamation points (!!) to cause a single exclamation point ( ! ) to be passed to STORE. However, the recommended character is the carat ( ^ ). Multiple indirect files can also be used. For example:
Indirect files can also be nested. The maximum nesting level is 3. For example:
Any commands that can be specified on the STORE command line can be specified in an indirect file. The one exception is the store device specification, which is usually specified immediately following the fileset list. The store device must always be specified on the command line. However, if multiple devices are being used for the backup, the STORESET option can be specified in the indirect file. Options can be specified on both the command line and in the indirect file. Any options that are specified apply to all filesets in all indirect files, as well as any filesets specified on the command line. Each line in the indirect file can contain fileset lists separated by commas, and options separated by semicolons. Fileset lists must always be specified first on a line. An option can also be specified first on a line, but once an option is specified, no fileset lists may follow them on the line. Negative filesets can also be specified in indirect files. They should always immediately follow a fileset specification. Although one or more negative filesets can be specified on their own line, no options should be specified between the fileset and its associated negative filesets. As when specifying negative filesets on the command line, there is no limit to the number of negative filesets that can be specified. Do not specify any continuation characters, such as ",", ";", "+", or "&", at the end of an indirect file line. If you need to specify more file sets than can fit on a line, just continue specifying them on additional lines. Do not start a line with the "," character. CI variables are not expanded in indirect files, so do not specify filesets using them. Blank lines are not allowed in indirect files. An example of a more complicated indirect file is:
If the RENAME option is specified, the fileset syntax is expanded to allow new filenames and creators to be specified. The RENAME syntax is: filestostore [ - filestoexclude [- ...] ][=targetname] The target name field specifies the new name and creator for the file on the store media. It has the form: filename [:creator[.creatoraccount]] The filename can be any legal MPE filename or HFS pathname. The creator and creatoraccount must be legal creator and account names, respectively. The only wildcard character allowed is a single at sign (@) for each component of the filename, creator or creatoraccount. The wildcard character @ indicates that the source value for that component should be used. An HFS pathname which ends in a / is considered an HFS directory and no wildcard characters are allowed. The RENAME option must be specified if the targetname is used. Refer to the RENAME section in Chapter 6, "STORE and TurboSTORE Command Options," for more details. As of Release 5.0 and later, MPE/iX supports symbolic links and device links. When storing symbolic links, TurboSTORE only follows the link if it is not the last component of an HFS filename. If the symbolic link is the last component of an HFS filename, the only the link, or "container" will be stored. When storing device links, only the link is stored. For example, if you have a symbolic link named /SYS/TESTDIR which points to the directory /MYACCT/MYDIR, then issuing the following STORE command would store all of the files in /MYACCT/MYDIR:
If you had a symbolic link name /SYS/PUB/MYFILE, which pointed to /MYACCT/PUB/TARGET, then the following STORE command would only store the symbolic link MYFILE, not the target file TARGET:
For more information regarding symbolic links and device links, see the article "Symbolic Links on MPE/iX" in Chapter 5 of the Communicator 3000 MPE/iX General Release 5.0 (Core Software Release C.50.00) (30216-90124). Prior to MPE/iX Release 5.5, the only way to logically back up databases was by using the DBSTORE and DBRESTOR commands. However, the DBSTORE program only allowed certain STORE options, and could only store or restore one database at a time. The features of DBSTORE are now available when using STORE, TurboSTORE/iX II or TurboSTORE 7x24 True-Online Backup. To specify a complete database to be stored, only the root filename needs to be specified. (By default, STORE does not allow you to specify an incomplete TurboIMAGE database to be stored when you use the 7x24 true-online backup option ONLINE=START or ONLILNE=END.) When STORE encounters a database root file, it will use the database to determine what other files are part of the database. Third-party indexing files will also be included in this list, if available. If a wildcard that includes an entire database is specified, TurboSTORE/iX will still verify the file list with the database to ensure that all database files are being written to the backup. If database dataset files are specified for a backup, but their root file is not specified, those dataset files will not be stored. For each file specified, the following warning will be displayed:
If any of the dataset files are specified in addition to the root file, no warning will be displayed but the individual dataset files will be counted as redundantly specified files. If you are using the TurboSTORE/iX 7x24 true-online backup ONLINE option, then all TurboIMAGE databases fully specified, either by wildcards or by specifying the root file, are quiesced at the online backup sync point. If you want to back up part of an IMAGE database, you can specify the PARTIALDB option. For more information on PARTIALDB and storing databases with 7x24 true-online backup, see "Storing Database Files Using PARTIALDB or FULLDB" in Chapter 6, "STORE and TurboSTORE Command Options."
A similar convention exists for ALLBASE/SQL databases. Only the DBE file for an ALLBASE/SQL database needs to be specified. STORE will query the database to get the complete list of files to be stored. If an individual ALLBASE/SQL database file is specified without the DBE file, it will not be stored, and the following message will be issued:
If any of the dataset files are specified in addition to the root file, no warning will be displayed but the individual dataset files will be counted as redundantly specified files. If you are using the TurboSTORE/iX 7x24 true-online backup ONLINE option, then all ALLBASE/SQL databases fully specified, either by wildcards or by specifying the root file, are quiesced at the online backup sync point. If you want to back up part of an ALLBASE DBEnvironment database, you can specify the PARTIALDB option. For more information on PARTIALDB and storing databases with 7x24 true-online backup, see "Storing Database Files Using PARTIALDB or FULLDB" in Chapter 6, "STORE and TurboSTORE Command Options."
|
![]() |
||
![]() |
![]() |
![]() |
|||||||||
|