backup script - cpio & gzip

From: <Lorraine.Ambrosio_at_cominco.com>
Date: Tue, 24 Apr 2001 14:41:00 -0700

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_at_cominco.com
Received on Tue Apr 24 2001 - 20:46:09 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT