Operating System - HP-UX
1753879 Members
7444 Online
108809 Solutions
New Discussion юеВ

Re: make_net_recovery exclude question

 
SOLVED
Go to solution
MikeL_4
Super Advisor

make_net_recovery exclude question

When doing our make_net_recovery we are excluding some directories that we do not want data backed up in.

When we had to do a restore of one of these servers we did not expect the data to be there since we excluded it from the recovery, but the directory itself was not there either.

Is there a way to exclude the contents of a directory, but still retain the directory itself when restored ??
8 REPLIES 8
Jeff Schussele
Honored Contributor
Solution

Re: make_net_recovery exclude question

Hi Mike,

Although I haven't tested this yet, I believe if you specify it this way

-x exclude=/path/to/excluded/dir/*.*

you'll get the dir with nothing underneath

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
MikeL_4
Super Advisor

Re: make_net_recovery exclude question

Thanks Jeff, is there a way to verify that afterwards ?
Jeff Schussele
Honored Contributor

Re: make_net_recovery exclude question

Hi (again) Mike,

Yep - go down to .../clients/hostname and grep for the dir name in the install.log.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
MikeL_4
Super Advisor

Re: make_net_recovery exclude question

view of archive_content shows:

inc_entire /dev/vx/dsk/rootdg
exclude /osg1/patches/*.*


view of flist shows files within /osg1/patches being archived:

12 osg1/patches 40755 1141066247 1024 1
23 osg1/patches/3.5.tar.gz 100644 1130413090 724159767 707196
17 osg1/patches/temp 40755 1141056086 4096 4
42 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot 40755 1141055902 12288 12
50 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot/catalog 40500 1141055905 12288 12
57 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot/catalog/dfiles 40500 1141055902 1024 1
62 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot/catalog/dfiles/INFO 100644 1141055902 139 1
63 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot/catalog/dfiles/INDEX 100644 1141055902 2327 3
62 osg1/patches/GOLDQPK11i_Plus_Mar2006_depot/catalog/dfiles/_ACL 100444 1138117249 55 1
...etc....


command used in make_net_recovery:

make_net_recovery -v -x inc_entire=/dev/vx/dsk/rootdg -x exclude=/osg1/patches/*.* -s odcign1-0 -P s -a odcign1-0:/var/opt/ignite/recovery/archives/odcign1


Warning messages during run of make_net_recovery:

WARNING: File '/osg1/patches/*.*' in archive_content list not found, or too big
for pax to handle. Skipping.

** 0 - The Volume Group or Filesystem is Not included in the
System Recovery Archive
** 1 - The Volume Group or Filesystem is Partially included in the
System Recovery Archive
** 2 - The Volume Group or Filesystem is Fully included in the
System Recovery Archive

WARNING: File '/osg1/patches/*.*' in archive_content list not found, or too big
for pax to handle. Skipping.
WARNING: list_expander returned a warning,please check the log file.
WARNING: File '/osg1/patches/*.*' in archive_content list not found, or too big
for pax to handle. Skipping.

Sandman!
Honored Contributor

Re: make_net_recovery exclude question

Mike,

What version Of Ignite and VxVM are you using? Version incompatibility could be one of the reasons...i'm conjecturing.

cheers!
MikeL_4
Super Advisor

Re: make_net_recovery exclude question


HPUX 11.11
VERITAS Volume Manager Bundle 3.5
Ignite-UX C.6.2.241

Nguyen Anh Tien
Honored Contributor

Re: make_net_recovery exclude question

I am sure that -x option can help you to do that.
#make_net_recovery -s server_name -x inc_entire=vg00 -x exclude=file|dir
HTH
tienna
HP is simple
MikeL_4
Super Advisor

Re: make_net_recovery exclude question

Right the -x exclude /dir/to/exclude will exclude the directory from the backup.

The problem is when we did a restore of the server from a backup image, the excluded directories were missing and had to be recreated.

What I was after was a way to exclude all files and subdirectories but when a restore is done still have the base directory name there and not have to recreate them manually.