* backup script - cpio & gzip
@ 2001-04-24 21:41 Lorraine.Ambrosio
0 siblings, 0 replies; only message in thread
From: Lorraine.Ambrosio @ 2001-04-24 21:41 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0CD07.40AE3E00", Size: 3277 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0CD07.40AE3E00
Content-Type: text/plain
I am trying to run the following commands as part of the daily backup
procedures. These 2 cmds are a problem for me.
1. Get a list of files from all '*prod*' directories for back up.
$find / -name '*prod*' ! type d 2>/dummy | grep -v 'arc$' | grep -v 'gz$'
>>backemup.dat
*this does not produce the files I'm looking for, I want this cmd to pick up
files from the following directories /d02/oradata/prod/* and
/d01/oradata/prod/* etc and put them into backemup.dat
2. Then I want to compress the files in backemup.dat to another backup disk
directory, I've been trying with this command. I'm trying this compress
option because it took me 4 hours to run.... $cat backemup.dat | cpio
-ovC64 >/dev/rmt2
$cat backemup.dat | sed 's/\(^.*\)\/\(.*\)$/gzip -cv1 \1\/\2 >
\/d03/oradata/buprod\/\2.gz; touch -r \1\/\2 \/d03\/oradata\/buprod\/\2.gz'
| sh
These are borrowed commands, they are not working for me and quite frankly
I'm at a lost. Any help would be appreciated.
Tru64 Unix 4.0E, Alpha 1000/300, tape drive TZ88
Thanks,
Lorraine Ambrosio
DBA, Cominco, Ltd.
lorraine.ambrosio@cominco.com
------_=_NextPart_001_01C0CD07.40AE3E00
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>backup script - cpio & gzip</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=3D2>I am trying to run the following commands as part of =
the daily backup procedures. These 2 cmds are a problem for =
me.</FONT>
</P>
<P><FONT SIZE=3D2>1. Get a list of files from all '*prod*' directories =
for back up.</FONT>
</P>
<P><FONT SIZE=3D2>$find / -name '*prod*' ! type d 2>/dummy | grep -v =
'arc$' | grep -v 'gz$' >>backemup.dat</FONT>
</P>
<P><FONT SIZE=3D2>*this does not produce the files I'm looking for, I =
want this cmd to pick up files from the following directories =
/d02/oradata/prod/* and /d01/oradata/prod/* etc and put them into =
backemup.dat</FONT></P>
<P><FONT SIZE=3D2>2. Then I want to compress the files in backemup.dat =
to another backup disk directory, I've been trying with this command. =
I'm trying this compress option because it took me 4 hours to =
run.... $cat backemup.dat | cpio -ovC64 =
>/dev/rmt2</FONT></P>
<P><FONT SIZE=3D2>$cat backemup.dat | sed 's/\(^.*\)\/\(.*\)$/gzip -cv1 =
\1\/\2 > \/d03/oradata/buprod\/\2.gz; touch -r \1\/\2 =
\/d03\/oradata\/buprod\/\2.gz' | sh</FONT></P>
<P><FONT SIZE=3D2>These are borrowed commands, they are not working for =
me and quite frankly I'm at a lost. Any help would be =
appreciated.</FONT></P>
<P><FONT SIZE=3D2>Tru64 Unix 4.0E, Alpha 1000/300, tape drive =
TZ88</FONT>
</P>
<P><FONT SIZE=3D2>Thanks,</FONT>
<BR><FONT SIZE=3D2>Lorraine Ambrosio</FONT>
<BR><FONT SIZE=3D2>DBA, Cominco, Ltd.</FONT>
<BR><FONT SIZE=3D2>lorraine.ambrosio@cominco.com</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0CD07.40AE3E00--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-24 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-24 21:41 backup script - cpio & gzip Lorraine.Ambrosio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox