Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script or batch file to run a specific Arcserve backup job

Status
Not open for further replies.

digex

IS-IT--Management
Apr 12, 2005
17
US
Does anyone have a basic script that I can use to create a batch file or command line to run a specific backup job after a SNAPSHOT? I am going through the Command Line Reference guide but all I can do is submit jobs from batch file it wont execute them. Any help would be appreciated. I already have the backup jobs created but would like it to execute on command.
 
I think it is cabatch.
If you are using 12.0 use the job scheduler wizard.
 
I have already used the normal scheduler to create a backup job to run at a specific time. The job scheduler just creates a batch run job from command line. I just need something that will call a specific job that I have scheduled to run when called on.
 
well did you ck out cabatch????

cabatch - Submit a Job
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

 
OH, do you put that command in a .vbs script?
 
So I have created a test.bat file and placed it in the

C:\Program Files\CA\Arcsere Backup\ folder.

CABATCH /MODE=Executre /S=C:\Scripts\test.asx /H=MEDIA-1

WHen I run the command it just creates a new job everytime. Does not run the existing job or the one it just created.
 
After further troubleshooting my error. We tried CABATCH /MODE=Submit /H=MEDIA-1 /S=C:\Scripts\test.asx , instead of Execute we did Submit and the Job was placed in Queue. How do we get the job to run the same job in Queue over and over instead of adding another Job in Queue?
 
if you want the same job to run again and again then modify the job to do just that. However if you want to script submitting a job then a new job has to be submitted each time. You can modify the queue properties to get rid of old jobs after a day, or perhaps it is possible to "modify" a job instead of submitting. Modify the job for a new start time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top