Operating System - OpenVMS
1825719 Members
3061 Online
109686 Solutions
New Discussion

Use of the /EXCLUDE qualifier for the BACKUP command.

 
SOLVED
Go to solution
Andrew Moody_1
Regular Advisor

Use of the /EXCLUDE qualifier for the BACKUP command.


What I need to know is to correct syntax for the following issue. Current we exclude a specific directory thus

/EXCLUDE=( [ORACLEV7.XEPS...]*.*) -

I now wish to exclude an additional directory structure ORACLEV7.P014 do I achieve this with a second line as above

/EXCLUDE=( [ORACLEV7.XEPS...]*.*) -
/EXCLUDE=( [ORACLEV7.P014...]*.*) -

or by including both directories within the original parentheses

/EXCLUDE= ( [ORACLEV7.XEPS...]*.*,[ORACLEV7.P014...]*.* ) -

In that sort of fashion?

Finally if it's just one use of the /EXCLUDE qualifier, as in the second example, what is the correct separator & syntax to use?

Thanks
A sobering thought: What if, right at this very moment, I am living up to my full potential?
10 REPLIES 10
Bojan Nemec
Honored Contributor
Solution

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Andrew,

The second form is correct. You use a comma as separator. For the informations you can do:

$ HELP BACKUP /EXCLUDE

Bojan
Bojan Nemec
Honored Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Andrew,

Sorry, I should point you also to the documentation:

http://h71000.www7.hp.com/doc/82FINAL/6048/6048pro_021.html#startsubcommand_122

there is also an example.

I see that you are new to this forum so:

Velcome to the VMS forum.


Bojan
Andrew Moody_1
Regular Advisor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.


Thanks Bojan

I just found the HELP topic on this unusally vague.

Many thanks for your time.

Andrew.
A sobering thought: What if, right at this very moment, I am living up to my full potential?
Jan van den Ende
Honored Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Andrew,

the second syntax for /EXCLUDE in itself is sufficient, but please realise, that for most commands if you need to specify ALL files, that you must specify *.*;*.

VMS can hold multiple versions of a file, and the specification xxxx.* means ONLY the highest version.
You can address specific versions with xxxx.yyy; , and you can address relatively, addressing the previous version by xxxx.yyy;-1
There even is a special way to address the LOWEST existing version number: xxxx.yyy;-0

hth,

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Wim Van den Wyngaert
Honored Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Jan,

If you remove the *.* or *.*.* it also works.
It doesn't need that info, only the directory is enough.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

What I always found strange is that the device can not be specified.

backup dsk1:[000000...],dsk2:[000000...]/excl=([sybase...])

excludes sybase from both disks while I would like to specify that it only applies to dsk2.

Wim
Wim
Doug Phillips
Trusted Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.


What I always found strange is that the device can not be specified.

backup dsk1:[000000...],dsk2:[000000...]/excl=([sybase...])

excludes sybase from both disks while I would like to specify that it only applies to dsk2.


Since backup's designers didn't give us a way to restore a save-set to multiple devices I imagine they felt that you should use different save-sets for different disks.

You could rename one of the directories before the backup and rename it afterwards, unless it must remain in use, of course.
John Gillings
Honored Contributor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Andrew,

One thing to be aware of... even with /EXCLUDE, directory files within the excluded tree are still included in the backup.



A crucible of informative mistakes
Jeroen Hartgers_3
Frequent Advisor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

In the exclude you can not put the device because a backup command is for only 1 device so there nu need for specify the device.

exclude syntax
/exclu=([dir1....],[dir2,dir3]*.log,*.tmp)
Andrew Moody_1
Regular Advisor

Re: Use of the /EXCLUDE qualifier for the BACKUP command.

Cheers guys, it worked.
A sobering thought: What if, right at this very moment, I am living up to my full potential?