Re: Backup saveset to NFS (451 Views)
Reply
Occasional Contributor
B_Wilson
Posts: 5
Registered: ‎11-19-2008
Message 1 of 6 (451 Views)
Accepted Solution

Backup saveset to NFS

Hi All,

As per the topic, I'm trying to see if it is actually possible to perform an OpenVMS backup to an Linux NFS mounted share.

Currently, we have a daily backup to disk, then disk to tape configured. I'm hoping I can modify the script so that instead of sending to tape, I can send to a mounted Linux NFS share. This is so we don't have to re-init tapes every week, and so we can backup all systems with HP DP.

The backup script currently executes the following code
$ BACKUP/VERIFY/IGNORE=(LABEL,INTERLOCK)/MEDIA_FORMAT=COMPACT -
DKB100:[WFPROD...]*.*;* -
MKA500:'prod_saveset'.bck

What I would like to do is backup the saveset to a subdir in the NFS share instead of tape.

I thought the following would get me there:
$ BACKUP -
DKB100:[WFPROD...]*.*;* -
DNFS16:['nfs_dir']'prod_saveset'.bck

However my terminal is filled with messages like:

%BACKUP-E-OPENOUT, error opening DNFS16:[20110520]PROD20052011.BCK;1 as output
-RMS-E-FEX, file already exists, not superseded

For reference, the following vars are declared:
$ todays_saveset = f$cvtime(,,"day")+f$cvtime(,,"month")+f$cvtime(,,"year")
$ prod_saveset = "prod"+todays_saveset
$ nfs_dir = f$cvtime(,,"year")+f$cvtime(,,"month")+f$cvtime(,,"day")

Can someone point out whether this is actually possible or if I'm doing something wrong?

Cheers!
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,084
Registered: ‎02-23-2005
Message 2 of 6 (451 Views)

Re: Backup saveset to NFS

HELP BACKUP /SAVE_SET

[...]
You must specify the /SAVE_SET qualifier when the input or output
specifier is a BACKUP save set on a Files-11 disk.


/SAVE_SET is the default for a tape, but not
for a save set on disk. Without it, I'd
guess that BACKUP is trying to copy every
file to DNFS16:[20110520]PROD20052011.BCK;1,
which works only once.
Please use plain text.
Trusted Contributor
Shriniketan Bhagwat
Posts: 308
Registered: ‎07-01-2009
Message 3 of 6 (451 Views)

Re: Backup saveset to NFS

Hi,

For disk BACKUP /SAVE_SET qualifier is required. BACKUP does not recognize it a saveset file until and unless /SAVE_SET qualifier is specified. But for the tape /SAVE_SET qualifier is considered as default.

Regards,
Ketan
Please use plain text.
Occasional Contributor
B_Wilson
Posts: 5
Registered: ‎11-19-2008
Message 4 of 6 (451 Views)

Re: Backup saveset to NFS

Thanks guys,

Entered command...

$ BACKUP -
DKB100:[WFPROD...]*.*;* -
DNFS16:[20110520]prod20052011.bck /SAVE_SET

...and it is working beautifully. You have saved our department at least 1 hr a week :)

Cheers!
Please use plain text.
Occasional Contributor
B_Wilson
Posts: 5
Registered: ‎11-19-2008
Message 5 of 6 (451 Views)

Re: Backup saveset to NFS

See post above.
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,084
Registered: ‎02-23-2005
Message 6 of 6 (451 Views)

Re: Backup saveset to NFS

> For disk BACKUP /SAVE_SET qualifier is
> required. [...]

Yes, _IF_ you _WANT_ a save set. BACKUP can
also be used to copy files from place to
place, and, if the destination is a disk,
then that's what it will try to do by
default. If the destination is a tape (not
file-structured), then a default of /SAVE_SET
makes sense.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation