Use the DEFINE SCHEDULE command to define a client schedule. Tivoli® Storage Manager uses this schedule to automatically perform a variety of client operations for your client workstation at specified intervals or days. After you define a schedule, use the DEFINE ASSOCIATION command to associate the client with the schedule.
You must start the client scheduler on the client workstation for Tivoli Storage Manager to process the schedule.
Not all clients can run all scheduled operations, even though you can define the schedule on the server and associate it with the client. For example, a Macintosh client cannot run a schedule when the action is to restore or retrieve files, or run an executable script. An executable script is also known as a command file, a batch file, or a script on different client operating systems.
Tivoli Storage Manager cannot run multiple schedules concurrently for the same client node.
To define a client schedule, you must have system privilege, unrestricted policy privilege, or restricted policy privilege for the policy domain to which the schedule belongs.
Classic client schedule >>-DEFine SCHedule--domain_name--schedule_name------------------> >--+-----------------+--+-----------------------------+---------> '-Type--=--Client-' '-DESCription--=--description-' .-ACTion--=--Incremental-----------------------------------. >--+----------------------------------------------------------+--> '-ACTion--=--+-Incremental-------------------------------+-' +-Selective---------------------------------+ +-Archive--+----------------------------+---+ | | .-""-------. | | | '-SUBACTion--=--+----------+-' | | '-FASTBack-' | +-Backup--+-------------------------------+-+ | | .-""----------. | | | '-SUBACTion--=--+-------------+-' | | +-FASTBack----+ | | +-SYSTEMSTate-+ | | +-VApp--------+ | | '-VM----------' | +-REStore-----------------------------------+ +-RETrieve----------------------------------+ +-IMAGEBACkup-------------------------------+ +-IMAGEREStore------------------------------+ +-Command-----------------------------------+ +-Macro-------------------------------------+ '-Deploy------------------------------------' >--+---------------------------+--------------------------------> '-OPTions--=--option_string-' .-PRIority--=--5------. >--+-------------------------------+--+---------------------+---> | (1) | '-PRIority--=--number-' '-OBJects------=--object_string-' .-STARTDate--=--current_date-. >--+----------------------------+-------------------------------> '-STARTDate--=--date---------' .-STARTTime--=--current_time-. .-DURation--=--1------. >--+----------------------------+--+---------------------+------> '-STARTTime--=--time---------' '-DURation--=--number-' .-DURUnits--=--Hours----------. >--+-----------------------------+------------------------------> '-DURUnits--=--+-Minutes----+-' +-Hours------+ +-Days-------+ '-INDefinite-' .-SCHEDStyle--=--Classic-. .-PERiod--=--1------. >--+------------------------+--+-------------------+------------> '-SCHEDStyle--=--Classic ' '-PERiod--=--number-' .-PERUnits--=--Days--------. >--+--------------------------+---------------------------------> '-PERUnits--=--+-Hours---+-' +-Days----+ +-Weeks---+ +-Months--+ +-Years---+ '-Onetime-' .-DAYofweek--=--ANY-----------. >--+-----------------------------+------------------------------> '-DAYofweek--=--+-ANY-------+-' +-WEEKDay---+ +-WEEKEnd---+ +-SUnday----+ +-Monday----+ +-TUesday---+ +-Wednesday-+ +-THursday--+ +-Friday----+ '-SAturday--' .-EXPiration--=--Never-----. >--+--------------------------+-------------------------------->< '-EXPiration--=--+-Never-+-' '-date--'
Enhanced client schedule >>-DEFine SCHedule--domain_name--schedule_name------------------> >--+-----------------+--+-----------------------------+---------> '-Type--=--Client-' '-DESCription--=--description-' .-ACTion--=--Incremental-----------------------------------. >--+----------------------------------------------------------+--> '-ACTion--=--+-Incremental-------------------------------+-' +-Selective---------------------------------+ +-Archive--+------------------------+-------+ | '-SUBACTion--=--FASTBack-' | +-Backup--+-------------------------------+-+ | | .-""----------. | | | '-SUBACTion--=--+-------------+-' | | +-FASTBack----+ | | +-SYSTEMSTate-+ | | +-VApp--------+ | | '-VM----------' | +-REStore-----------------------------------+ +-RETrieve----------------------------------+ +-IMAGEBACkup-------------------------------+ +-IMAGEREStore------------------------------+ +-Command-----------------------------------+ '-Macro-------------------------------------' >--+---------------------------+--------------------------------> '-OPTions--=--option_string-' .-PRIority--=--5------. >--+-------------------------------+--+---------------------+---> | (1) | '-PRIority--=--number-' '-OBJects------=--object_string-' .-STARTDate--=--current_date-. >--+----------------------------+-------------------------------> '-STARTDate--=--date---------' .-STARTTime--=--current_time-. .-DURation--=--1------. >--+----------------------------+--+---------------------+------> '-STARTTime--=--time---------' '-DURation--=--number-' .-DURUnits--=--Hours-------. >--+--------------------------+--SCHEDStyle--=--Enhanced--------> '-DURUnits--=--+-Minutes-+-' +-Hours---+ '-Days----' .-MONth--=--ANY-----------. .-DAYOFMonth--=--ANY-----. >--+-------------------------+--+------------------------+------> '-MONth--=--+-ANY-------+-' '-DAYOFMonth--=--+-ANY-+-' +-JAnuary---+ '-Day-' +-February--+ +-MARch-----+ +-APril-----+ +-May-------+ +-JUNe------+ +-JULy------+ +-AUgust----+ +-September-+ +-October---+ +-November--+ '-December--' .-WEEKofmonth--=--ANY--------. >--+----------------------------+-------------------------------> '-WEEKofmonth--=--+-ANY----+-' +-FIrst--+ +-Second-+ +-Third--+ +-FOurth-+ '-Last---' .-DAYofweek--=--ANY-----------. >--+-----------------------------+------------------------------> '-DAYofweek--=--+-ANY-------+-' +-WEEKDay---+ +-WEEKEnd---+ +-SUnday----+ +-Monday----+ +-TUesday---+ +-Wednesday-+ +-THursday--+ +-Friday----+ '-SAturday--' .-EXPiration--=--Never-----. >--+--------------------------+-------------------------------->< '-EXPiration--=--+-Never-+-' '-date--'
When you specify ACTION=RESTORE for a scheduled operation, and the REPLACE option is set to PROMPT, no prompting occurs. If you set the option to PROMPT, the files are skipped.
If you specify a second file specification, this second file specification acts as the restore destination. If you need to restore multiple groups of files, schedule one for each file specification that you need to restore.
define schedule standard deploy_1 action=DEPLOY objects=
"\\IBM_ANR_WIN\c$\tsm\maintenance\client\v6r2\Windows\X32\v620\v6200\*
..\IBM_ANR_WIN\"
Values for the following options are restricted
when you specify ACTION=DEPLOY:
When you define a scheduler service
by using the DSMCUTIL command or the backup-archive
client GUI wizard, you specify an options file. You cannot override
the options in that options file by issuing the scheduled command.
You must modify the options in your scheduler service.
If the option string contains multiple options or options with embedded spaces, surround the entire option string with one pair of apostrophes. Enclose individual options that contain spaces in quotation marks. A leading minus sign is required in front of the option. Errors can occur if the option string contains spaces that are not quoted correctly.
Tip: For Windows clients
running in batch mode, if the use of quotation marks is necessary,
use interactive mode or operating system escape characters. For additional
information, see:
When you specify ACTION=INCREMENTAL without specifying a value for this parameter, the scheduled command is invoked without specified objects and attempts to process the objects as defined in the client option file. To select all file spaces or directories for an action, explicitly list them in the object string. Entering only an asterisk in the object string causes the backup to occur only for the directory where the scheduler was started.
ANS1082E Invalid destination file specification <filespec> entered.
ANS1102E Excessive number of command line arguments passed to the
program!
When you specify ACTION=ARCHIVE, INCREMENTAL, or SELECTIVE for this parameter, you can list a maximum of twenty (20) file specifications.
Enclose the object string in double quotes if it contains blank characters (spaces), and then surround the double quotes with single quotes. If the object string contains multiple file names, enclose each file name with its own pair of double quotes, then surround the entire string with one pair of single quotes. Errors can occur if file names contain a space that is not quoted correctly.
If
you are using characters that have a special meaning for Windows users, such as commas, surround the
entire argument in two pairs of double quotes, then surround the entire
string with single quotes. The following examples show you how to
specify some file names:
The following examples show how to
specify some file names:
The following examples show how to specify
some file names:
The following examples show how to
specify some file names:
Tip: For Windows clients
running in batch mode, if the use of double quotes is necessary, use
interactive mode or operating system escape characters. For additional
information, see:
If two or more schedules have the same window start time, the value you specify determines when Tivoli Storage Manager processes the schedule. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 09/15/1998 |
| TODAY | The current date | TODAY |
| TODAY+days or +days | The current date plus days specified. The maximum number of days you can specify is 9999. | TODAY +3 or +3. |
| EOLM (End Of Last Month) | The last day of the previous month. | EOLM |
| EOLM-days | The last day of the previous month minus days specified. | EOLM-1 To include files that were active a day before the last day of the previous month. |
| BOTM (Beginning Of This Month) | The first day of the current month. | BOTM |
| BOTM+days | The first day of the current month, plus days specified. | BOTM+9 To include files that were active on the 10th day of the current month. |
| Value | Description | Example |
|---|---|---|
| HH:MM:SS | A specific time | 10:30:08 |
| NOW | The current time | NOW |
| NOW+HH:MM or +HH:MM | The current time plus hours and minutes specified | NOW+02:00 or +02:00. If you issue this command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the startup window is at 7:00. |
| NOW-HH:MM or -HH:MM | The current time minus hours and minutes specified | NOW-02:00 or –02:00. If you issue this command at 5:00 with STARTTIME=NOW–02:00 or STARTTIME=-02:00, the beginning of the startup window is at 3:00. |
Use this parameter with the DURUNITS parameter to specify the length of the startup window. For example, if you specify DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The default length of the startup window is 1 hour. The duration of the window must be shorter than the period between windows.
This value is ignored if you specify DURUNITS=INDEFINITE.
Use this parameter with the DURATION parameter to specify how long the startup window remains open to process the schedule. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The schedule may not necessarily complete processing within this window. If the schedule needs to be retried for any reason, the retry attempts must begin before the startup window elapses, or the operation does not restart.
Use this parameter with the PERUNITS parameter to specify the period between startup windows. For example, if you specify PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the operation is scheduled every five days after the initial start date and start time. The period between startup windows must exceed the duration of each window. The default is 1 day.
This value is ignored if you specify PERUNITS=ONETIME.
When you specify PERUNITS=MONTHS, the scheduled operation will be processed each month on the same date. For example, if the start date for the scheduled operation is 02/04/1998, the schedule will process on the 4th of every month thereafter. However, if the date is not valid for the next month, then the scheduled operation will be processed on the last valid date in the month. Thereafter, subsequent operations are based on this new date. For example, if the start date is 03/31/1998, the next month's operation will be scheduled for 04/30/1998. Thereafter, all subsequent operations will be on the 30th of the month until February. Because February has only 28 days, the operation will be scheduled for 02/28/1999. Subsequent operations will be processed on the 28th of the month.
When you specify PERUNITS=YEARS, the scheduled operation will be processed on the same month and date of each year. For example, if the start date for the scheduled operation is 02/29/2004, the next year's scheduled operation will be 02/28/2005 because February only has 28 days. Thereafter, subsequent operations will be scheduled for February 28th.
If you select a value for DAYOFWEEK other than ANY, and depending on the values for PERIOD and PERUNITS, schedules may not be processed when you would expect. The default is ANY.
The default value is ANY, meaning the schedule will run every day of the week or on the day or days determined by other enhanced schedule parameters. DAYOFWEEK must have a value of ANY (either by default or specified with the command) when used with the DAYOFMONTH parameter.
The default value is ANY. ANY means that the schedule runs on every day of the month or on the days determined by other enhanced schedule parameters. DAYOFMONTH must have a value of ANY (either by default or specified with the command) when used with the DAYOFWEEK or WEEKOFMONTH parameters.
The default value is ANY. ANY means that the schedule runs during every week of the month or on the day or days determined by other enhanced schedule parameters. WEEKOFMONTH must have a value of ANY (either by default or specified with the command) when used with the DAYOFMONTH parameter.
define schedule standard monthly_backup
description="Monthly Backup of c: and d: drives"
objects="c:\* d:\*"
startdate=05/01/2001 starttime=01:00
duration=2 durunits=hours period=1
perunits=months dayofweek=sunday
define schedule employee_records weekly_backup
startdate=06/07/1997 starttime=23:00 duration=4
durunits=hours perunits=weeks
dayofweek=saturday options=-quiet
define schedule employee_records quarterly_archive
starttime=20:00 action=archive
object=/home/employee/records/*
duration=1 durunits=hour schedstyle=enhanced
month=mar,jun,sep,dec weekofmonth=last dayofweek=fri