From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653646721689.tru64-unix-managers.marc@archive.invalid> From: Lorraine.Ambrosio () cominco ! com Date: Tue, 24 Apr 2001 21:41:00 +0000 To: tru64-unix-managers Subject: backup script - cpio & gzip X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653646721689 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C0CD07.40AE3E00" 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 backup script - cpio & gzip

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--