IBM Tivoli Storage Manager, Version 7.1

Macro

The macro command executes a series of commands that you specify in a macro file.

By including the macro command within a macro file, you can nest as many as ten levels of commands.

Comment lines are not supported within the macro file that you specify for the macro command.

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Windows operating systems

Supported Clients

This command is valid for all clients.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-MAcro-- --macroname-----------------------------------------><

Parameters

macroname
Specifies the fully qualified name of the file containing the commands.

Examples

The following is an example of how to use the macro command.

Task
Selectively back up files in the following directories:
  • Windows operating systems c:\devel\project\proja
  • Windows operating systems c:\devel\project\projb
  • Windows operating systems c:\devel\project\projc
  • AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems /devel/project/proja
  • AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems /devel/project/projb
  • AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems /devel/project/projc

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Windows operating systems Command: macro backabc.mac

where backabc.mac contains the following statements:

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems
 Selective /devel/project/proja/
 Selective /devel/project/projb/
 Selective /devel/project/projc/
Windows operating systems
 selective c:\devel\project\proja\*.*
 selective c:\devel\project\projb\*.*
 selective c:\devel\project\projc\*.*


Feedback