RE: RMAN backup all but delete n days old

  • From: "Newman, Christopher" <cjnewman@xxxxxxxxxxxxx>
  • To: <fmhabash@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 17 Feb 2009 14:08:53 -0600


I've never come across an easy way to do that exclusively with RMAN, but
you can rely on an OS cronjob to handle that; just use RMAN for the
backups and use the OS for the deletes... something like:

10 04 * * * find /u05/oradata/MyDB -name  1\*.log(or .dbf or whatever
you tag your logs as) -mtime +2 -exec rm -f {} \;

- Chris
-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of FMHabash
Sent: Tuesday, February 17, 2009 1:36 PM
To: Oracle-L Group
Subject: RMAN backup all but delete n days old

Is there away in rman to backup all logs on disk, but delete n days old
 The backup ... Logs ... Delete input does not allow to have separate
criteria for backup vs. Delete.




Other related posts: