Veritas-bu

[Veritas-bu] RE: Exclude list for NT

2004-08-24 10:49:03
Subject: [Veritas-bu] RE: Exclude list for NT
From: CJManders AT lbl DOT gov (Christopher Jay Manders)
Date: Tue, 24 Aug 2004 07:49:03 -0700
For Win 9x and NT you use a .reg file.

the main gotcha for these systems is that the registry keys need to be 
existant on one model computer. Then you use regedt32 to export the keys 
you need under the
[HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config]
seection of the registry that you need. Here are mine:
Exclude: *:\
Include: C:\My Documents, D:\My Documents, C:\Program Files

Here is what my setup looks like:

--------------------------------------
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config]
"SERVER"=hex(7):73,65,72,76,62,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,53,65,72,76,\
  
42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,53,65,72,76,42,61,63,6b,00,47,65,74,\
  
42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,47,65,74,42,61,63,6b,00,46,6c,61,73,\
  
68,42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,46,6c,61,73,68,42,61,63,6b,00,4e,\
  
65,74,42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,4e,65,74,42,61,63,6b,00,53,65,\
  
74,42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,53,65,74,42,61,63,6b,00,48,6f,6c,\
  64,42,61,63,6b,2e,6c,62,6c,2e,67,6f,76,00,48,6f,6c,64,42,61,63,6b,00,00
"Announce_DHCP_Interval"=dword:00000E10
"Cluster_Database_Force_Restore"="NO"
"GENERATE_ENGLISH_LOGS"="NO"
@=""
"Exclude"=hex(7):41,3a,5c,2a,00,42,3a,5c,2a,00,43,3a,5c,2a,00,44,3a,5c,2a,00,\
  
45,3a,5c,2a,00,46,3a,5c,2a,00,47,3a,5c,2a,00,48,3a,5c,2a,00,49,3a,5c,2a,00,\
  
4a,3a,5c,2a,00,4b,3a,5c,2a,00,4c,3a,5c,2a,00,4d,3a,5c,2a,00,4e,3a,5c,2a,00,\
  
4f,3a,5c,2a,00,50,3a,5c,2a,00,51,3a,5c,2a,00,52,3a,5c,2a,00,53,3a,5c,2a,00,\
  
54,3a,5c,2a,00,55,3a,5c,2a,00,56,3a,5c,2a,00,57,3a,5c,2a,00,58,3a,5c,2a,00,\
  59,3a,5c,2a,00,5a,3a,5c,2a,00,00
"Include"=hex(7):43,3a,5c,4d,79,20,44,6f,63,75,6d,65,6e,74,73,00,43,3a,5c,57,\
  
69,6e,64,6f,77,73,5c,41,6c,6c,20,55,73,65,72,73,00,43,3a,5c,57,69,6e,64,6f,\
  
77,73,5c,44,65,73,6b,74,6f,70,00,43,3a,5c,57,69,6e,64,6f,77,73,5c,46,61,76,\
  
6f,72,69,74,65,73,00,43,3a,5c,57,69,6e,64,6f,77,73,5c,53,74,61,72,74,20,4d,\
  
65,6e,75,00,43,3a,5c,57,69,6e,64,6f,77,73,5c,54,61,73,6b,73,00,43,3a,5c,57,\
  69,6e,64,6f,77,73,5c,57,65,62,00,00

---------------------


In Win XP/2k/2003/CE/... you need to have the Power Tools. They include 
a tool called reg.exe. You can use the reg.exe to do a similar thing:


echo off
REM ====================================================
REM Written by:
REM Christopher Jay Manders 02-25-2004 ( 6:49AM :)
REM Copyright 2003, 2004: CJManders AT LBL DOT GOV,
REM Updated:
REM 03-02-2004 by CJManders, MRandrup, DRSun,
REM LBNL & The UC Regents
REM Version: 1.0b
REM ----------------------------------------------------
REM  Description:
REM This .bat file is intended for Windows XP/ME/2000/CE
REM ====================================================

echo Set the DHCP flag.
reg add 
"HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config" /v 
Announce_DHCP_Interval /t REG_DWORD /d 0x0E10 /f

echo Set the INETD Daemon in Services.
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBackup 
INET Daemon" /v Start /t REG_DWORD /d 2 /f

echo Add a basic set of include and exclude lists for files to backup.
echo This makes sure that the entire system is not backed up.
reg add 
"HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config" /v 
Exclude /t REG_MULTI_SZ /d *:\ /f

reg add 
"HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\NetBackup\CurrentVersion\Config" /v 
Include /t REG_MULTI_SZ /d "C:\My Documents"\0"C:\Documents and 
Settings"\0"C:\Program Files\Netscape\Users"\0"D:\My 
Documents"\0"D:\Documents and Settings" /f

REM ===============================================================
REM Done.



HTH

--Chris






Fry, Brantley wrote:

> I know you can do it in UNIX, but I thought this utility wasn't 
> available in windows.. but I could be wrong, I've been wrong before
>
>
> -----Original Message-----
> From: veritas-bu-admin AT mailman.eng.auburn DOT edu on behalf of 
> ChrisCosta AT tdwaterhouse DOT com
> Sent: Tue 8/24/2004 10:17 AM
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Subject: [Veritas-bu] RE: Exclude list for NT
>
>
> Does anyone know what the command is for updating the exclude list on an
> NT/2000 client from the command line?
>
> Thanks
>
> Running 4.5 FP5
>
>
>
> Christopher Costa
> TD WATERHOUSE USA
> Enterprise Storage Engineer
> Phone: (201)-521-2939
> Email:  <mailto:chriscosta AT tdwaterhouse DOT com> chriscosta AT 
> tdwaterhouse DOT com
>
>
>
> ------------------------------------------------------------------------
>

<Prev in Thread] Current Thread [Next in Thread>