Title: Message
May not be elegant but it does the job.
 
 
********************************************************************************************
 
# Find all new archive logs compared to last time script ran. Copy to backup directory
 
/usr/bin/find $ARCDIR/*.arc -newer $ARCDIR/timetest.txt -exec cp {} $BACKUPDIR \;
 
# Delete the timetest file so that a new one can be created for new timestamp.
 
/usr/bin/rm $ARCDIR/timetest.txt
 
/usr/bin/touch $ARCDIR/timetest.txt

# Gzip copied archive logs
/usr/bin/gzip $BACKUPDIR/*.arc
 
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Stephens
Sent: Thursday, 9 October 2003 2:40 AM
To: Multiple recipients of list ORACLE-L
Subject: [EMAIL PROTECTED]

I've been looking to do this for a while...would you mind sharing the script??

 

Thanks either way!!

 

chris

 

-----Original Message-----
From: Sujatha Madan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 11:29 PM
To: Multiple recipients of list ORACLE-L
Subject: IGNORE: Unix Help

 

Sorry ... but I solved it.

 

Cheers

Sujatha

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sujatha Madan
Sent: Wednesday, 8 October 2003 1:24 PM
To: Multiple recipients of list ORACLE-L
Subject: Unix Help

Hi,

 

Sorry for the slightly non-Oracle post.

 

I am after a UNIX code snippet that will help me copy archive logs to another directory BUT not if they already exist. So if only 2 archive logs are generated between script runs only the two new ones should copy. I know I can do this using sysdate - "time interval"  but I am trying to avoid that.

 

Thanks in advance,

 

Sujatha Madan.

Reply via email to