Auxiliary backup commands for the piartool utility
- Last UpdatedJun 29, 2023
- 3 minute read
- PI System
- PI Server
The piartool -backup commands are typically used for troubleshooting and for monitoring the course of a backup. The syntax is:
If Arg1 does not begin with a hyphen (-), then Arg1 is assumed to be the destination directory for the backup, as described in Launch backups with the piartool utility. If Arg1 begins with a hyphen, then it is one of the auxiliary commands in the following table.
Note: Italics indicate a value that must be supplied. Square brackets ([]) indicate that a value is optional. Items separated by vertical bar (|) denote options that are mutually exclusive; only one of the items can be used.
|
Auxiliary command |
Description |
|
|
Abort a current running backup. For example: |
|
|
Display backup history summary, if you specify neither an index nor the flag. Display report for the specified index, if you specify an index. Display report for the most recent backup, if you specify the option. By default, the history of the last 100 backups are stored in the backup history. This default can be overridden by the backup_MaxHistory tuning parameter. |
|
|
Report the list of files that Data Archive will back up. Use the command to determine the files and components that will be included in a particular backup without actually performing the backup. For example, to identify the files included in a typical incremental, use the syntax: piartool -backup -identify -type INCREMENTAL The option is sometimes used with archives that were backed up outside the normally scheduled backups. If you have upgraded from an old version of the server and have not converted to incremental backups, use the syntax: piartool -backup -identify -numarch N The and flags have the same meaning as the corresponding command that is used to start backups. See Launch backups with the piartool utility. To identify the files included in a backup of specific components, use the syntax: piartool -backup -identify -component A component is a logical grouping of files. For example, all of the files for PI Base Subsystem are grouped under the component. If the flag is specified, the command reports the following additional information:
|
|
|
Query the current backup state and the current list of subsystems that are registered for backup. This command is typically used to determine if a backup is currently in progress. It can also be used to query the current debug message trace level, where the trace level is set by the piartool -backup -trace command or the Backup_TraceLevel tuning parameter. |
|
|
Simulate the COM+ events of a VSS backup without backing up any files. The -SimulateVSS commands are useful for third-party backup applications that can take snapshots but do not communicate to the Data Archive server via the VSS API. The -SimulateVSS -PrepareBackup2Freeze command causes all events, from the PrepareBackup event through the Freeze event, to occur. The simulated backup is aborted if it does not end within 60 seconds. You can use the -SimulateVSS -Thaw2PostSnapshot command in conjunction with the -SimulateVSS -BackupShutdown command to end the simulated VSS backup. |
|
|
Control writing of debug messages to the log file. By default, the trace level is 0, resulting in no trace messages. Higher values of trace level result in more trace messages. Trace levels higher than 100 result in no more messages than a trace level of 100. Normally, tracing should be off to avoid unnecessary messages in the log file. If the trace level is non-zero, the trace level is displayed by the piartool -backup -query command. Example: piartool -backup -trace 1 The default trace level can be overridden by specifying a non-zero value for the Backup_TraceLevel tuning parameter. |