RMAN Backup With Archivelog

RMAN> run

{

allocate channel c1 type disk;

backup database;

backup(archivelog all);

}

 

RMAN> backup archivelog all delete input;

 

Note: This will backup all archivelog file and delete those from target location.

If we physically delete some archivelog file before backup then we have to execute following command before backup-


RMAN> change archivelog all crosscheck;

RMAN> backup archivelog all delete input;

 

Some other Options:

RMAN> BACKUP ARCHIVELOG

              FROM TIME 'SYSDATE-2' UNTIL TIME

             'SYSDATE';

 

C:\>set nls_date_format=YYYY-MM-DD hh24:mi:ss

RMAN> run

 {

 allocate channel c1 type disk;

 set until time='2009-05-21 13:08:11';

 backup(archivelog all);

 }

Comments