先行和后继选项可使您在作业执行之前和之后运行命令。
以下内容说明您可以使用先行和后继选项运行的命令。
使用先行和后继选项时请注意以下情况:
For example, a user submits an archive job consisting of nodes A and B. A Pre option is specified as a global option and a Pre option is specified for node B. Immediately before the job runs, the global Pre option executes.作业运行时,为节点 B 指定的先行选项在存档节点 B 之前执行。
输入在作业开始之前要在计算机上执行的文件的名称。
请输入要在作业完成后执行的文件名称。
指定在 Arcserve Backup 检测到作业失败、作业未完成或作业完成这三种情况下不执行的命令。
Note:This option is not available when you are using Arcserve Backup to manage a UNIX or Linux based server.
用户名和密码对应于所选主机服务器的系统,并且是检查该服务器上的系统权限所必需的。
不应该将输入到这两个窗口项中的用户名和密码与 Arcserve Backup 用户名和密码相混淆。
示例:Submitting a Job Using Pre and Post Commands
A user submits a job that archives local volume D. The user wants to check and fix errors using chkdsk.exe on local volume D before local volume D is archived.作业完成后,用户想使用 CAAdvReports.exe 生成错误报表。
以下命令将在存档作业启动前检查并修正本地卷 D 上的错误。
chkdsk.exe D:/F”, On Exit Code = 0, Run operation immediately
以下命令将生成错误报告,并将报告保存至指定位置。
CAAdvReports.exe -reporttype 5 -maxSize 5 -Server DUVDO01 -outfile "C:\Program Files (x86)\CA\ARCserve Backup\Reports\Backup Error Report_data.xml" -PastDays 1 -AutoName
Copyright © 2016 |
|