transfer backups
This commit is contained in:
@@ -93,12 +93,13 @@ ssh root@10.0.20.202 "/opt/scripts/oracle-backup-monitor-proxmox.sh"
|
||||
D:\rman_backup\
|
||||
├── rman_backup_full.txt # RMAN script for FULL backup
|
||||
├── rman_backup_incremental.txt # RMAN script for CUMULATIVE
|
||||
├── transfer_to_dr.ps1 # Transfer FULL to Proxmox
|
||||
└── transfer_incremental.ps1 # Transfer CUMULATIVE to Proxmox
|
||||
└── transfer_backups.ps1 # UNIFIED: Transfer ALL backups to Proxmox
|
||||
|
||||
Scheduled Tasks:
|
||||
├── 02:30 - Oracle RMAN Full Backup
|
||||
├── 03:00 - Transfer backups to DR (transfer_backups.ps1)
|
||||
├── 13:00 - Oracle RMAN Cumulative Backup
|
||||
├── 14:45 - Transfer backups to DR (transfer_backups.ps1)
|
||||
└── 18:00 - Oracle RMAN Cumulative Backup
|
||||
```
|
||||
|
||||
@@ -134,21 +135,25 @@ F:\ (NFS mount from Proxmox)
|
||||
|
||||
### Backup Flow (Daily)
|
||||
```
|
||||
PRIMARY PROXMOX
|
||||
│ │
|
||||
├─02:30─FULL─Backup────────►
|
||||
│ (6-7 GB) │
|
||||
│ │
|
||||
├─13:00─CUMULATIVE─────────►
|
||||
│ (200 MB) │
|
||||
│ │
|
||||
└─18:00─CUMULATIVE─────────►
|
||||
(300 MB) Storage
|
||||
|
||||
┌──────────┐
|
||||
│ Monitor │ 09:00 Daily
|
||||
│ Check Age│ Alert if old
|
||||
└──────────┘
|
||||
PRIMARY PROXMOX
|
||||
│ │
|
||||
├─02:30─FULL─Backup─────────────►
|
||||
│ (6-7 GB) │
|
||||
├─03:00─Transfer ALL────────────► Skip duplicates
|
||||
│ (transfer_backups.ps1) │
|
||||
│ │
|
||||
├─13:00─CUMULATIVE──────────────►
|
||||
│ (200 MB) │
|
||||
├─14:45─Transfer ALL────────────► Skip duplicates
|
||||
│ (transfer_backups.ps1) │ (only new files)
|
||||
│ │
|
||||
└─18:00─CUMULATIVE──────────────►
|
||||
(300 MB) Storage
|
||||
│
|
||||
┌──────────┐
|
||||
│ Monitor │ 09:00 Daily
|
||||
│ Check Age│ Alert if old
|
||||
└──────────┘
|
||||
```
|
||||
|
||||
### Restore Process
|
||||
@@ -165,7 +170,7 @@ Total Time: ~15 minutes
|
||||
|
||||
```bash
|
||||
# 1. Test backup transfer (on PRIMARY)
|
||||
D:\rman_backup\transfer_incremental.ps1
|
||||
powershell -ExecutionPolicy Bypass -File "D:\rman_backup\transfer_backups.ps1"
|
||||
|
||||
# 2. Test NFS mount (on VM 109)
|
||||
mount -o rw,nolock,mtype=hard,timeout=60 10.0.20.202:/mnt/pve/oracle-backups F:
|
||||
@@ -398,7 +403,7 @@ ssh root@10.0.20.202 "qm start 109 && qm terminal 109"
|
||||
# Backup logs (on PRIMARY)
|
||||
Get-Content D:\rman_backup\logs\backup_*.log -Tail 50
|
||||
|
||||
# Transfer logs (on PRIMARY)
|
||||
# Transfer logs (on PRIMARY) - UNIFIED script
|
||||
Get-Content D:\rman_backup\logs\transfer_*.log -Tail 50
|
||||
|
||||
# Monitoring logs (on Proxmox)
|
||||
@@ -509,6 +514,18 @@ LINUX WORKSTATION ─────────► VM 109 (10.0.20.37)
|
||||
|
||||
---
|
||||
|
||||
**Last Updated:** October 11, 2025
|
||||
**Version:** 2.1 - Added restore test debugging guide + naming convention
|
||||
**Status:** ✅ Production Ready
|
||||
**Last Updated:** October 31, 2025
|
||||
**Version:** 2.2 - Unified transfer script (transfer_backups.ps1)
|
||||
**Status:** ✅ Production Ready
|
||||
|
||||
## 📋 Changelog
|
||||
|
||||
### v2.2 (Oct 31, 2025)
|
||||
- ✨ **Unified transfer script**: Replaced `transfer_to_dr.ps1` and `transfer_incremental.ps1` with single `transfer_backups.ps1`
|
||||
- 🎯 **Smart duplicate detection**: Automatically skips files that exist on DR
|
||||
- ⚡ **Flexible scheduling**: Can run after any backup type or manually
|
||||
- 🔧 **Simplified maintenance**: One script to maintain instead of two
|
||||
|
||||
### v2.1 (Oct 11, 2025)
|
||||
- Added restore test debugging guide
|
||||
- Implemented new backup naming convention
|
||||
Reference in New Issue
Block a user