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>
This commit is contained in:
15
oracle/standby-server-scripts/rman_backup_incremental.txt
Normal file
15
oracle/standby-server-scripts/rman_backup_incremental.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user