connect target / run { ALLOCATE CHANNEL disk1 DEVICE TYPE DISK MAXPIECESIZE 5G; crosscheck archivelog all; backup archivelog all not backed up 1 times format '/orabackup/arch/%d_%s_%p_%t'; release channel disk1 ; } run { delete noprompt archivelog until time = 'sysdate-2' backed up 1 times to device type disk; } exit;