Operating System - OpenVMS
1828032 Members
1961 Online
109973 Solutions
New Discussion

start a queue for backup

 
SOLVED
Go to solution
nipun_2
Regular Advisor

start a queue for backup

Hi,
I have openvms 7.3-2. Currently we run the backup operation from the terminal screen usign

$ backup source-drive target-drive

I currently have 4 execution queues queue 1, 2, 3 &4

Currently when the backup operation starts no one can end teh current session until the operation is completed. Is there a way we can start the operation as a queue so that it continues even when we have to end the session and thereby close the terminal.

Nipun
5 REPLIES 5
Robert Gezelter
Honored Contributor

Re: start a queue for backup

Nipun,

Create a BATCH queue. The command is INITIALIZE/QUEUE/BATCH (full description of the options can be found in the online HELP text). You will likely need to specify large enough WSEXTENT to accomodate the BACKUP operations needs.

To submit a job to this queue, put the needed commands in a command file (e.g., BACKUPJOB.COM) and use the command SUBMIT/NOPRINT/QUEUE= BACKUPJOB.COM.

This will submit the job to the named queue. The /NOPRINT means that the log file will NOT be queued for printing, but will remain in your default directory. The SUBMIT command is also fully documented in the HELP text.

I hope that the above is helpful.

- Bob Gezelter, http://www.rlgsc.com
Jan van den Ende
Honored Contributor
Solution

Re: start a queue for backup

Nipun,

well, ESSENTIALLY, you just put your command in a .COM file, say, DO_BACKUP.COM, and then
$ SUBMIT DO_BACKUP

Normally you would extend the file a bit, at least with a SET VERIFY, and add a /LOG= to your SUBMIT.
That way, you can afterward trace what happened.
It is also highly advisable to add some error handling.
In essence, you can make it as sophisticated as you wish to make it.

hth

Proost.

Have one on me (maybe at the Bootcamp in Nashua?)

jpe
Don't rust yours pelled jacker to fine doll missed aches.
nipun_2
Regular Advisor

Re: start a queue for backup

Thanks for the reply Bob and Jan.

So Jan I already have a backup_file.com script file. So all I need to do is

$submit backup_file.com /log=bk_test.log /que=execution_queue1

This will execute the *.com" script through the execution queue "execution_queue1"
Where is the log file stored ?

Is this correct ?

One more question what if I don't write the queue does it go queue manager who assigns to any of the 4 execution queues we have ?
i.e if the command is as shown below

$submit backup_file.com /log=bk_test.log /que=execution_queue1


Nipun

Jan van den Ende
Honored Contributor

Re: start a queue for backup

nipun,

"Where is the log file stored ?"

- anywhere you SPECIFY (recommanded)
eg: /LOG=:[]
or
- in the SYS$LOGIN of the account running the queue

"what if I don't write the queue does it go queue manager who assigns to any of the 4 execution queues we have ?

It goes to SYS$BATCH.
If there is a logical SYS$BATCH (in the context of the process issuing the submit) that is where it goes.
If not, it goes to the queue SYS$BATCH.
If both do not exist, you get an error stating so.

hth

Proost.

Have one on me (maybe at the Bootcamp in Nashua?)

jpe
Don't rust yours pelled jacker to fine doll missed aches.
nipun_2
Regular Advisor

Re: start a queue for backup

Thanks for your help Jan and Bob.
Your suggestions worked perfectly. I just had to choose the right queue.

Nipun