Veritas-bu

[Veritas-bu] Regular expression help

2005-06-21 13:06:24
Subject: [Veritas-bu] Regular expression help
From: Michael.F.Lavelle AT abbott DOT com (Michael F Lavelle)
Date: Tue, 21 Jun 2005 12:06:24 -0500
This is a multipart message in MIME format.
--=_alternative 005DFEC086257027_=
Content-Type: text/plain; charset="us-ascii"

Jimmy,
        If I understand correctly, you want to use regex to multistream 
and you are looking for the following:

*) two or more streams for the entire contents of a specific 2nd level 
directory
*) pick up all other 1st level directories and files in one (or more) 
stream
*) cause no duplication (of either the specific 2nd level directory or 
anything else)
*) be general enough that new directories & files will be captured in the 
future
*) cause no 71 errors due to "no match" regex

        Prerequisite: UNIX/Linux client

Example:
        Get everything under /apps/oracle/oradata/OFPROD, but split up the 
OF subdirectory into two streams.
        Assume any file or directory first char will be alphanumeric only.
        Cover your bases with upper and lower case.  UNIX/Linix always 
distinguishes between them.  Also cover numeric characters.
        We have to back off the specific "OF" directory specification - 
use ".../O*"

/apps/oracle/oradata/OFPROD/O*/[a-lA-L]*
/apps/oracle/oradata/OFPROD/O*/[m-zM-Z0-9]*
/apps/oracle/oradata/OFPROD/[a-zA-NP-Z0-9]*

        This should cause three streams.

        More generally:

/apps/oracle/oradata/*/[O]*/[a-lA-L]*
/apps/oracle/oradata/*/[O]*/[m-zM-Z0-9]*
/apps/oracle/oradata/*/[a-zA-NP-Z0-9]*


        I believe there is still a gap in the above.  A file (not 
directory) which starts with 'O' within the "OFPROD" directory.  I'm not 
sure how to get past this.  Suggestions?

        There is no metacharacter constructor in the client's root shell 
like "( [range1] & [^range2] )" - where '^' is the grep "not".




 Michael F. Lavelle                               Abbott Labs, 
 Sr. Storage Engineer, CIT                   100 Abbott Park Rd,  AP14B-1
 Phone: 847.937.1195 (Fx:935.9725)   Abbott Park  IL  60064-6042






"Allen, Jimmy" <jballen AT firstam DOT com>
06/21/2005 10:49 AM

 
        To:     "'Michael F Lavelle'" <Michael.F.Lavelle AT abbott DOT com>
        cc: 
        Subject:        RE: [Veritas-bu] Regular expression help


I have a question about the regular expressions you mentioned....
 
We have /apps/oracle/oradata/OFPROD/OF/ which contains 400GB of data 
I want to do a file list something like 
/apps/oracle/oradata/OFPROD/OF/[a-l]* and 
/apps/oracle/oradata/OFPROD/OF/[m-z]*
the problem is I also need to backup the other directories in the 
/apps/oracle/oradata/OFPROD directory. 
 
how can I say don't backup up /apps/oracle/oradata/OFPROD/OF because that 
directory has been listed else where?
 
 
Thanks for your help....
 
Jimmy Allen
jballen AT firstam DOT com
-----Original Message-----
From: Michael F Lavelle [mailto:Michael.F.Lavelle AT abbott DOT com] 
Sent: Monday, June 20, 2005 9:37 AM
To: Don Klebba
Cc: veritas-bu AT mailman.eng.auburn DOT edu; 
veritas-bu-admin AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Regular expression help


Don, 
        The UNIX-style subset regular expressions like "[a-jA-J]*", 
"[k-zK-Z0-9]*" may be used only on systems whose root shell understands 
them.  It only works on UNIX/Linux systems. 
        If you don't mind multistreaming from hell, use L:\users\* 


Michael F. Lavelle                               Abbott Labs, 
Sr. Storage Engineer, CIT                   100 Abbott Park Rd,  AP14B-1
Phone: 847.937.1195 (Fx:935.9725)   Abbott Park  IL  60064-6042





Don  Klebba <donklebba AT quickenloans DOT com> 
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu 
06/20/2005 08:03 AM 
        
        To:        <veritas-bu AT mailman.eng.auburn DOT edu> 
        cc:         
        Subject:        [Veritas-bu] Regular expression help



I want to create multiple streams to backup my users home directories. 
They
will be backed up from a windows 2003 server. Does anyone know the proper
syntax to do this? I've already tried the following L:\users\[a-f]*
-- 
Don KLebba
Quicken Loans
Storage Management Team
DonKlebba AT quickenloans DOT com <mailto:DonKlebba AT quickenloans DOT com>
phone: (734)805-7791
cell: (734)634-7486 

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu




--=_alternative 005DFEC086257027_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="Arial">Jimmy,</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; If I understand 
correctly, you want to use regex to multistream and you are looking for the 
following:</font>
<br>
<br><font size=2 face="Arial">*) two or more streams for the entire contents of 
a specific 2nd level directory</font>
<br><font size=2 face="Arial">*) pick up all other 1st level directories and 
files in one (or more) stream</font>
<br><font size=2 face="Arial">*) cause no duplication (of either the specific 
2nd level directory or anything else)</font>
<br><font size=2 face="Arial">*) be general enough that new directories &amp; 
files will be captured in the future</font>
<br><font size=2 face="Arial">*) cause no 71 errors due to &quot;no match&quot; 
regex</font>
<br>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; Prerequisite: 
UNIX/Linux client</font>
<br>
<br><font size=2 face="Arial">Example:</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; Get everything under 
/apps/oracle/oradata/OFPROD, but split up the OF subdirectory into two 
streams.</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; Assume any file or 
directory first char will be alphanumeric only.</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; Cover your bases with 
upper and lower case. &nbsp;UNIX/Linix always distinguishes between them. 
&nbsp;Also cover numeric characters.</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; We have to back off 
the specific &quot;OF&quot; directory specification - use 
&quot;.../O*&quot;</font>
<br>
<br><font size=2 face="Arial">/apps/oracle/oradata/OFPROD/O*/[a-lA-L]*</font>
<br><font size=2 face="Arial">/apps/oracle/oradata/OFPROD/O*/[m-zM-Z0-9]*</font>
<br><font size=2 face="Arial">/apps/oracle/oradata/OFPROD/[a-zA-NP-Z0-9]*</font>
<br>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; This should cause 
three streams.</font>
<br>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; More generally:</font>
<br>
<br><font size=2 face="Arial">/apps/oracle/oradata/*/[O]*/[a-lA-L]*</font>
<br><font size=2 face="Arial">/apps/oracle/oradata/*/[O]*/[m-zM-Z0-9]*</font>
<br><font size=2 face="Arial">/apps/oracle/oradata/*/[a-zA-NP-Z0-9]*</font>
<br>
<br>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; I believe there is 
still a gap in the above. &nbsp;A file (not directory) which starts with 'O' 
within the &quot;OFPROD&quot; directory. &nbsp;I'm not sure how to get past 
this. &nbsp;Suggestions?</font>
<br>
<br><font size=2 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; There is no 
metacharacter constructor in the client's root shell like &quot;( [range1] 
&amp; [^range2] )&quot; - where '^' is the grep &quot;not&quot;.</font>
<br>
<br>
<br><font size=2 face="Arial"><br>
<br>
 Michael F. Lavelle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Abbott Labs, <br>
 Sr. Storage Engineer, CIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; 100 Abbott Park Rd, &nbsp;AP14B-1<br>
 Phone: 847.937.1195 (Fx:935.9725) &nbsp; Abbott Park &nbsp;IL 
&nbsp;60064-6042<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Allen, Jimmy&quot; &lt;jballen AT 
firstam DOT com&gt;</b></font>
<p><font size=1 face="sans-serif">06/21/2005 10:49 AM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;&quot;'Michael F Lavelle'&quot; &lt;Michael.F.Lavelle AT 
abbott DOT com&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;RE: [Veritas-bu] Regular expression help</font></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">I have a question about the regular 
expressions you mentioned....</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">We have 
/apps/oracle/oradata/OFPROD/OF/ which contains 400GB of data </font>
<br><font size=2 color=blue face="Arial">I want to do a file list something 
like /apps/oracle/oradata/OFPROD/OF/[a-l]* and 
/apps/oracle/oradata/OFPROD/OF/[m-z]*</font>
<br><font size=2 color=blue face="Arial">the problem is I also need to backup 
the other directories in the /apps/oracle/oradata/OFPROD directory. </font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">how can I say don't backup up 
/apps/oracle/oradata/OFPROD/OF because that directory has been listed else 
where?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Thanks for your help....</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Jimmy Allen</font>
<br><a href=mailto:jballen AT firstam DOT com><font size=2 color=blue 
face="Arial"><u>jballen AT firstam DOT com</u></font></a>
<br><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> Michael F Lavelle [mailto:Michael.F.Lavelle AT abbott DOT com] <b><br>
Sent:</b> Monday, June 20, 2005 9:37 AM<b><br>
To:</b> Don Klebba<b><br>
Cc:</b> veritas-bu AT mailman.eng.auburn DOT edu; veritas-bu-admin AT 
mailman.eng.auburn DOT edu<b><br>
Subject:</b> Re: [Veritas-bu] Regular expression help<br>
</font>
<br><font size=2 face="Arial"><br>
Don,</font><font size=3 face="Times New Roman"> </font><font size=2 
face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;The UNIX-style subset regular expressions like 
&quot;[a-jA-J]*&quot;, &quot;[k-zK-Z0-9]*&quot; may be used only on systems 
whose root shell understands them. &nbsp;It only works on UNIX/Linux 
systems.</font><font size=3 face="Times New Roman"> </font><font size=2 
face="Arial"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;If you don't mind multistreaming from hell, use 
</font><font size=2 face="Courier New">L:\users\</font><font size=2 
face="Arial">*</font><font size=3 face="Times New Roman"> </font><font size=2 
face="Arial"><br>
<br>
<br>
Michael F. Lavelle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Abbott Labs, <br>
Sr. Storage Engineer, CIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; 100 Abbott Park Rd, &nbsp;AP14B-1<br>
Phone: 847.937.1195 (Fx:935.9725) &nbsp; Abbott Park &nbsp;IL 
&nbsp;60064-6042<br>
</font><font size=3 face="Times New Roman"><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=2%>
<td width=49%><font size=1 face="sans-serif"><b>Don &nbsp;Klebba &lt;donklebba 
AT quickenloans DOT com&gt;</b></font><font size=3 face="Times New Roman"> 
</font><font size=1 face="sans-serif"><br>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu</font><font size=3 
face="Times New Roman"> </font>
<p><font size=1 face="sans-serif">06/20/2005 08:03 AM</font><font size=3 
face="Times New Roman"> </font>
<td width=47%><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; 
</font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;veritas-bu AT 
mailman.eng.auburn DOT edu&gt;</font><font size=3 face="Times New Roman"> 
</font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3 
face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;[Veritas-bu] 
Regular expression help</font></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Courier New"><br>
I want to create multiple streams to backup my users home directories. They<br>
will be backed up from a windows 2003 server. Does anyone know the proper<br>
syntax to do this? I've already tried the following L:\users\[a-f]*<br>
-- <br>
Don KLebba<br>
Quicken Loans<br>
Storage Management Team<br>
DonKlebba AT quickenloans DOT com &lt;mailto:DonKlebba AT quickenloans DOT 
com&gt;<br>
phone: (734)805-7791<br>
cell: (734)634-7486 <br>
<br>
_______________________________________________<br>
Veritas-bu maillist &nbsp;- &nbsp;Veritas-bu AT mailman.eng.auburn DOT edu<br>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</font><font size=3 
face="Times New Roman"><br>
<br>
</font>
<br>
<br>
--=_alternative 005DFEC086257027_=--

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