Operating System - OpenVMS
1753818 Members
8754 Online
108805 Solutions
New Discussion юеВ

Re: Build Backup and submit to queue

 
owilliams
Frequent Advisor

Build Backup and submit to queue

Guys, I have never created my own backup for OpenVMS. I submit a backup job to a queue. Can anyone give me some instruction on how to do this? Any help is appreciated.
9 REPLIES 9
Jon Pinkley
Honored Contributor

Re: Build Backup and submit to queue

If you have a job you are submitting to a queue, that should be a working example.

I would suggest a look at the system manager's essentials manual, available in pdf format as a free download.

Perhaps a bit more info about what you are trying to accomplish will get you a better answer, since the VMS backup command can do may different things, from copying a file to making an exact duplicate of a complete disk.
it depends
Hoff
Honored Contributor

Re: Build Backup and submit to queue

A quick review of the manuals, starting with the user's guide and the system manager's manual, will most definitely expedite your software development efforts here. (There's a whole lot more to this area than what fits into these tiny little text input boxes, and the manuals cover a whole lot of it.)

For a basic DCL SUBMIT intro, see:

http://64.223.189.234/node/97

For a BACKUP procedure I tossed onto the OpenVMS Freeware a while back, see:

http://h71000.www7.hp.com/freeware/freeware80/hoffman_examples/disk_backup.com

You can acquire all of the examples with the zip archive fw80_hoffman_examples.zip in the latter of the two directories.

If you can find a (used, out of print) copy of the DCL book I wrote a while back, Writing Real Programs in DCL, 2nd Ed, you will find a detailed intro to DCL and to DCL programming on OpenVMS.

Stephen Hoffman
HoffmanLabs LLC
Karl Rohwedder
Honored Contributor

Re: Build Backup and submit to queue

Not to forget a quite unknown utility BACKUP$MANAGER ($ MCR BACKUP$MANAGER), which provides a semi-graphical interface to backup operations.

regards Kalle
owilliams
Frequent Advisor

Re: Build Backup and submit to queue

I have to backup this disk to a queue. Don't know if this helps. Thanks for the pdfs.

After:
Device Device Error Volume Free Trans Mnt
Name Status Count Label Blocks Count Cnt
$1$DGA888: (NRCAVB) Mounted 0 ODIN 3205544 3 3


The job should be submitted to the "SYSMGR$BATCH_NRCAVB" queue on HOLD.
owilliams
Frequent Advisor

Re: Build Backup and submit to queue

I am very inexperienced with OpenVMS. When I tired the MCR BACKUP$MANAGER command I received this error:%BKM-F-REQANSICRT, an ANSI CRT is required for interactive execution.
Not sure exactly what this means. Any help is appreciated.
Karl Rohwedder
Honored Contributor

Re: Build Backup and submit to queue

The BACKUP$MANAGER needs a terminal that understands ANSI control sequences. Try a
$ SET TERMINAL/INQUIRE
to let VMS detect your terminal type.
How do you connect to the VMS system?

regards Kalle
owilliams
Frequent Advisor

Re: Build Backup and submit to queue

I use telnet using putty. How would I submit a backup job on hold?
Dean McGorrill
Valued Contributor

Re: Build Backup and submit to queue

owilliams,
you can't backup a disk to a queue.
the queue can process a procedure you have
that can backup your disk someplace. looks
like you have a queue name you wish to submit to. heres an example.
we
create a queue
create a dcl procedure
submit it to the queue and watch it run

$ init/que/bat/start foo
$ sho que foo
Batch queue FOO, idle, on ENGDS2::
$ creat test.com
$ set proc/priv=oper
$ repl/bell/user=mcgorrill "test"
^Z
$ submit/noprint test
Job TEST (queue ENGDS2_BATCH, entry 821) started on ENGDS2_BATCH
$
Reply received on ENGDS2 from user MCGORRILL at ENGDS2 Batch 10:25:30
test
$

the job ended. hope this is of some help.
Hoff
Honored Contributor

Re: Build Backup and submit to queue

Here's something I've posted to c.o.v. previously, complete self-resubmitting single-disk BACKUP procedure.

http://groups.google.com/group/comp.os.vms/msg/d130cb80232336cf

A multiple-disk version is an easy extension from this example DCL procedure.