1753380 Members
5551 Online
108792 Solutions
New Discussion юеВ

Re: backup

 
SOLVED
Go to solution
Gary_167
Advisor

backup

Hello, is it possible to exclude a .dir and contents from VMS BACKUP?
11 REPLIES 11
Ian Miller.
Honored Contributor
Solution

Re: backup

if its not a image backup then

/EXCLUDE=[FOO.BAR]

will exclude all files in the directory [FOO.BAR]
____________________
Purely Personal Opinion
Gary_167
Advisor

Re: backup

This is an image backup, what are the choices at this point?
Martin P.J. Zinser
Honored Contributor

Re: backup

Hi,

set file/nobackup before executing the
image backup. Restore the previous settings
after the image backup is finished.

Greetings, Martin
Ian Miller.
Honored Contributor

Re: backup

image backups ignore /EXCLUDE

you can prevent the contents of a file being backed up by setting the file /NOBACKUP.
This causes only the file header to be backed up. This is what is done for pagefiles for example.

Why are you wishing to exclude the contents of this dir?
____________________
Purely Personal Opinion
Gary_167
Advisor

Re: backup

there are folders that contain data that shouldn't be on tape. I take it back about the image backup, the actual command only uses BACKUP. The files get FTP-ed to the folder daily. My main focus is to keep them off tape, it would be nice if i could do this on the folder level and not have to specify the file type by which to exclude. Thanks for the advice.
Gary_167
Advisor

Re: backup

Ian, i found this in the VMS manual, it makes it sound like the files within the dir will be backed up.

"
/EXCLUDE

If you specify directory files (files with the file type .DIR), your command is processed but the directory files are not excluded (they are processed). BACKUP uses directory files to facilitate incremental restore operations. "
Ian Miller.
Honored Contributor

Re: backup

if you do /EXCLUDE=[FOO.BAR...]
then any file in directory BAR or below won't be included. If you did /EXCLUDE=[FOO]BAR.DIR then BACKUP will basically ignore you as it has to backup BAR.DIR so that files in the directory can be backed up.
____________________
Purely Personal Opinion
Himanshu_3
Valued Contributor

Re: backup

VMS file names have structure, i.e., consist of three parts. You have to exclude [directory]*.*;* to achieve what you want.

HELP for BACKUP /EXCLUDE says:

BACKUP

/EXCLUDE

/EXCLUDE=(file-spec[,...])

Input File-Selection Qualifier

Excludes files that otherwise meet the selection criteria for
a save or copy operation. If you specify more than one file,
separate the file specifications with commas and enclose the list
in parentheses.

Do not use a device specification when defining the files to be
excluded. You can use most standard wildcard characters, but you
cannot use wildcard characters denoting latest versions of files
(;) or relative versions of files (;-n).

If you specify directory files (files with the file type .DIR),
your command is processed but the directory files are not
excluded (they are processed).

You cannot use the /EXCLUDE qualifier in image restore
operations.

I have taken an approach where the command goes something like

$ BACKUP ddcu:[sys%...]*.*;*/exclude=[sys%.syscommon...]*.*;* -
svset.sav/save




Wim Van den Wyngaert
Honored Contributor

Re: backup

Anyone,

Why is /exclude not implemented for image backups ?

If I have a disk with some kind of /tmp on it that I want to exclude, it seems strange that this is imposible.

Wim
Wim