Files
ROMFASTSQL/oracle/standby-server-scripts/rman_backup_incremental.txt
Marius 3c0beda819 Oracle DR: Add RMAN backup scripts with enhanced logging
- 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>
2025-10-10 23:41:42 +03:00

16 lines
503 B
Plaintext

RUN {
# Incremental Level 1 CUMULATIVE backup
# Backup doar modificările de la ultimul Level 0 (full backup de la 02:00 AM)
BACKUP AS COMPRESSED BACKUPSET
INCREMENTAL LEVEL 1 CUMULATIVE
TAG 'MIDDAY_INCREMENTAL'
DATABASE
PLUS ARCHIVELOG DELETE INPUT;
# Backup SPFILE și controlfile (pentru siguranță)
BACKUP AS COMPRESSED BACKUPSET SPFILE;
BACKUP CURRENT CONTROLFILE;
# NU ștergem obsolete aici - se face la full backup
}