BACKUP STGPOOL (Back up primary storage pool data to a copy storage pool)
Use this command to back up primary storage pool files to a copy storage pool.
If a file exists in the copy storage pool, the file is not backed up unless the copy of the file in the copy storage pool is marked as damaged. However, a new copy is not created if the file in the primary storage pool is also marked as damaged. In a random-access storage pool, cached copies of migrated files and damaged primary files are not backed up.
If migration for a storage pool starts during a storage pool backup, some files might be migrated before they are backed up. You might want to back up storage pools that are higher in the migration hierarchy before you back up storage pools that are lower.
- Do not run the MOVE DRMEDIA and BACKUP STGPOOL commands concurrently. Ensure that the storage pool backup processes are complete before you issue the MOVE DRMEDIA command.
- You cannot back up data from or to storage pools defined with a CENTERA device class.
- You cannot specify a retention storage pool as a source storage pool.
Privilege class
To issue this command, you must have system privilege, unrestricted storage privilege, or restricted storage privilege for the copy storage pool in which backup copies are to be produced.
Syntax
Parameters
- primary_pool (Required)
- Specifies the primary storage pool.
- copy_pool (Required)
- Specifies the copy storage pool.
- MAXPRocess
- Specifies
the maximum number of parallel processes to use for backing up files.
This parameter is optional. Enter a value 1 - 999. The default is
1.
Using multiple, parallel processes can improve throughput for the backup. The expectation is that the time needed to complete the storage pool backup is decreased by using multiple processes. However, when multiple processes are running, in some cases one or more of the processes needs to wait to use a volume that is already in use by a different backup process.
When you determine this value, consider the number of logical and physical drives that can be dedicated to this operation. To access a sequential access volume, IBM Spectrum Protect uses a mount point and, if the device type is not FILE, a physical drive. The number of available mount points and drives depends on other IBM Spectrum Protect and system activity and on the mount limits of the device classes for the sequential access storage pools that are involved in the backup.
Each process needs a mount point for copy storage pool volumes, and, if the device type is not FILE, each process also needs a drive. If you are backing up a sequential storage pool, each process needs an extra mount point for primary storage pool volumes and, if the device type is not FILE, an extra drive. For example, suppose that you specify a maximum of three processes to back up a primary sequential storage pool to a copy storage pool of the same device class. Each process requires two mount points and two drives. To run all three processes, the device class must have a mount limit of at least 6, and at least six mount points and six drives must be available.
To preview a backup, only one process is used and no mount points or drives are needed.
- Preview
- Specifies whether you want to preview but not run the backup.
The preview displays the number of files and bytes to be backed up
and a list of the primary storage pool volumes that you must mount.
This parameter is optional. The default is NO. You can specify the
following values:
- No
- Specifies that the backup is done.
- Yes
- Specifies that you want to preview the backup but not do the backup.
- VOLumesonly
- Specifies that you want to preview the backup only as a list of
the volumes that must be mounted. This choice requires the least processing
time. The VOLUMESONLY option is valid only for storage
pools that are associated with a sequential-access device class.The VOLUMESONLY option can be used to obtain a list of volumes that are needed by the storage pool backup process. For example:
backup stgpool primary_pool copystg preview=volumesonly
The list of volumes are logged in the server activity log with the ANR1228I message. Query the server activity log to get the list of volumes required. For example:query actlog msg=1228
- SHREDTONOshred
- Specifies
whether data is backed up to a copy storage pool from a primary storage
pool that enforces shredding. This parameter is optional. The default
value is NO. You can specify the following values:
- No
- Specifies that the server does not allow data to be backed up to a copy storage pool from a primary storage pool that enforces shredding. If the primary storage pool enforces shredding, the operation fails.
- Yes
- Specifies that the server does allow data to be backed up to a copy storage pool from a primary storage pool that enforces shredding. The data in the copy storage pool is not shredded when it is deleted.
- Wait
- Specifies whether to wait for the server to complete processing
this command in the foreground. This parameter is optional. The default
is NO. You can specify the following values:
- No
- Specifies that the server processes this command in the background.
You can continue with other tasks while the command is being processed. Messages that are created from the background process are displayed either in the activity log or the server console, depending on where messages are logged.
To cancel a background process, use the CANCEL PROCESS command. If you cancel this process, some files might already have been backed up before the cancellation.
- Yes
- Specifies that the server processes this operation in the foreground. You must wait for the
operation to complete before you continue with other tasks. The server displays the output messages
to the administrative client when the operation completes. Note: You cannot specify WAIT=YES from the server console.
Example: Back up the primary storage pool
Back up the primary storage pool that is named PRIMARY_POOL to the copy storage pool named COPYSTG.backup stgpool primary_pool copystg
Related commands
Command | Description |
---|---|
CANCEL PROCESS | Cancels a background server process. |
MOVE DRMEDIA | Moves DRM media onsite and offsite. |
QUERY DRMEDIA | Displays information about disaster recovery volumes. |
QUERY PROCESS | Displays information about background processes. |
QUERY SHREDSTATUS | Displays information about data waiting to be shredded. |
QUERY STGPOOL | Displays information about storage pools. |
RESTORE STGPOOL | Restores files to a primary storage pool from copy storage pools. |
RESTORE VOLUME | Restores files stored on specified volumes in a primary storage pool from copy storage pools. |
SHRED DATA | Manually starts the process of shredding deleted data. |