- Add rman_backup.bat: FULL backup with live console output and log file - Add rman_backup_incremental.bat: INCREMENTAL backup with live output - Add rman_backup.txt: RMAN script for LEVEL 0 FULL backup - Add rman_backup_incremental.txt: RMAN script for LEVEL 1 CUMULATIVE backup - Scripts are portable: use current directory instead of hardcoded paths - Logging: simultaneous output to console AND log file using PowerShell Tee-Object - Log files saved in logs/ subdirectory with timestamps Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
20 lines
598 B
Plaintext
20 lines
598 B
Plaintext
RUN {
|
|
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
|
|
CONFIGURE CONTROLFILE AUTOBACKUP ON;
|
|
CONFIGURE COMPRESSION ALGORITHM 'BASIC';
|
|
|
|
# Full backup COMPRESSED + Archive logs (șterge logs după backup)
|
|
BACKUP AS COMPRESSED BACKUPSET
|
|
INCREMENTAL LEVEL 0
|
|
TAG 'DAILY_FULL_COMPRESSED'
|
|
DATABASE
|
|
PLUS ARCHIVELOG DELETE INPUT;
|
|
|
|
# Backup SPFILE și Control File
|
|
BACKUP AS COMPRESSED BACKUPSET SPFILE;
|
|
BACKUP CURRENT CONTROLFILE;
|
|
|
|
# Cleanup old backups (păstrează ultimele 2 - REDUNDANCY 2)
|
|
DELETE NOPROMPT OBSOLETE;
|
|
}
|