Use the following syntax to submit a job using a script file:
CABATCH /MODE=Execute|Submit /H=ServerName /S=<path>ScriptName
Example:
CABATCH /H=QANT /S=C:\BACKUP.ASX /W
Return Codes:
0 - The job finished successfully.
1 - The job is incomplete.
2 - The job was cancelled.
3 - The job failed.
4 - The job crashed.
5 - There was a system error.
6 - There was a parameter error.
7 - There was a memory failure. Close any non-critical applications that may be using memory and retry the job.
8 - There was a generic error.
Modes:
Specifies to run the job immediately. The job will be added to job queue according to the script file, then carunjob will get this job by number from job queue and launch it.
Specifies to run the job based on the specified schedule time (not immediately). The job will not be added to job queue, and carunjob will launch this job directly through the script file.
Options:
Specify the name of the server whose job queue you are submitting jobs to. If you enter "*", cabatch determines and uses the local computer name as the Arcserve Backup Domain Server name.
Specify the name of the binary script or the job description text file prepared with the cabatch Job Information Template (Template.txt).
Specifies to replace the source computer name in script with a Computer Name.
Note: If you do not specify a computer name, the host name will be used.
Specifies to replace the destination computer name in script with a Computer Name.
Note: If you do not specify a computer name, the host name will be used.
Specifies the date you want to execute the job.
Specifies the time you want to execute the job.
Specifies the device group name.
Specifies the media name.
Specifies the media ID.
Specifies the media sequence number.
Runs the specified command after the job finishes. The entire path of the command should be included.
Runs the specified command before the job starts. The entire path of the command should be included.
Specifies the credentials of the user running the pre or post command.
Specifies the password for the user running the pre or post command.
Specifies the session number for a restore job.
Specifies to replace the session password in script.
Specifies to use the Arcserve Backup job status as the return code.
Specifies to wait for job completion.
Copyright © 2017 |
|