You can export all server control information or a subset of server control information by specifying one or more of the following export commands:
When you export data, you must specify the device class to which export data will be written. You must also list the volumes in the order in which they are to be mounted when the data is imported. See Labeling Removable Media Volumes for information on labeling tape volumes.
You can specify the USEDVOLUMELIST parameter to indicate the name of a file where a list of volumes used in a successful export operation will be stored. If the specified file is created without errors, it can be used as input to the IMPORT command on the VOLUMENAMES=FILE:filename parameter. This file will contain comment lines with the date and time the export was done, and the command issued to create the export.
Note: | If you specify this parameter with an existing filename, the existing file is overwritten with the new information. |
When you issue an EXPORT command, the operation runs as a background process. This process allows you to continue performing administrative tasks. In addition, users can continue to back up, archive, migrate, restore, retrieve, or recall files from TSM.
If you choose to perform an export operation during normal working hours, be aware that administrators can change server definitions and users may modify files that are in server storage. If administrators or users modify data shortly after it has been exported, then the information copied to tape may not be consistent with data stored on the source server.
If you want to export an exact point-in-time copy of server control information, you can prevent administrative and other client nodes from accessing the server. See Preventing Administrative Clients from Accessing the Server and Preventing Client Nodes from Accessing the Server.
Administrators can change administrator, policy, or client node definitions during an export process. To prevent administrators from modifying these definitions, you can lock out administrator access to the server and cancel any administrative sessions before issuing an EXPORT command. After the export process is complete, unlock administrator access.
For more information on canceling sessions, see Canceling a Client Session. For more information on locking or unlocking administrators from the server, see Locking and Unlocking Administrators from the Server.
If client node information is exported while that client is backing up, archiving, or migrating files, the latest file copies for the client may not be exported to tape. To prevent users from accessing the server during export operations, cancel existing client sessions as described in Canceling a Client Session. Then you can do one of the following:
This option is useful when you export all client node information from the source server and want to prevent all client nodes from accessing the server.
This option is useful when you export a subset of client node information from the source server and want to prevent particular client nodes from accessing the server until the export operation is complete.
After the export operation is complete, allow client nodes to access the server again by:
When you issue the EXPORT SERVER command, the server exports all server control information. You can also export file data information with the EXPORT SERVER command.
For example, you want to export server data to four defined tape cartridges, which are supported by the TAPECLASS device class. You want the server to use scratch volumes if the four volumes are not enough, and so you use the default of SCRATCH=YES. To issue this command, enter:
export server devclass=tapeclass volumenames=dsm001,dsm002,dsm003,dsm004 filedata=all
During the export process, the server exports definition information before it exports file data information. This ensures that definition information is stored on the first tape volumes. This process allows you to mount a minimum number of tapes during the import process, if your goal is to copy only control information to the target server.
In the example above, the server exports:
When you issue the EXPORT ADMIN command, the server exports administrator definitions. Each administrator definition includes:
You can specify a list of administrator names, or you can export all administrator names.
In the following example, definitions for the DAVEHIL and PENNER administrator IDs will be exported to the DSM001 tape volume, which is supported by the TAPECLASS device class. Do not allow any scratch media to be used during this export process. To issue this command, enter:
export admin davehil,penner devclass=tapeclass volumenames=dsm001 scratch=no
When you issue the EXPORT NODE command, the server exports client node definitions. Each client node definition includes:
You can also specify whether to export file data. File data includes file space definitions and authorization rules. You can request that file data be exported in any of the following groupings of files:
When client file data is exported, the server copies files to export volumes in the order of their physical location in server storage. This process minimizes the number of mounts required during the export process.
If you do not specify that you want to export file data, then the server only exports client node definitions.
For example, suppose you want to do the following:
To issue this command, enter:
export node filespace=* domains=engpoldom filedata=backupactive devclass=tapeclass
In this example, the server exports:
When you issue the EXPORT POLICY command, the server exports the following information belonging to each specified policy domain:
For example, suppose you want to export policy and scheduling definitions from the policy domain named ENGPOLDOM. You want to use tape volumes DSM001 and DSM002, which belong to the TAPECLASS device class, but allow the server to use scratch tape volumes if necessary. To issue this command, enter:
export policy engpoldom devclass=tapeclass volumenames=dsm001,dsm002