Question : zip hot backup files as they are created

I am running out of disk space for my backups (hot/cold) - in the past I run my hot/cold backup scripts the run scripts to gzip the files then back them up to tape.

I don't have enough disk space any more to backup all the files then zip them up.
Is there a way to zip each hot/cold backup file as it gets created?

Thanks

Answer : zip hot backup files as they are created

logging into rman (it's in the oracle_home directory)

set oracle_sid=SID
rman target /

then you need to configure some options
like where to backup

sample script to backup to the H: drive
RMAN> run {
  CONFIGURE RETENTION POLICY TO recovery window of 4 days;
  CONFIGURE CONTROLFILE AUTOBACKUP ON;
  CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE = 10G;
  CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'H:\rman\%d\%d_%s_%p_%u';
  CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'H:\rman\%d\%F';
  CONFIGURE BACKUP OPTIMIZATION ON;
}

you can also do the separate commands from the rman prompt
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'H:\rman\%d\%d_%s_%p_%u';

Then run the backup
RMAN> backup as compressed backupset incremental level 0 database;

read more here:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup001.htm#sthref188

for a quick start guide:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm



Random Solutions  
 
programming4us programming4us