Renz
1d4aa24817
feat: Phase 3A - Incremental backup scaffolding (types, interfaces, metadata)
Added foundational types for PostgreSQL incremental backups:
Types & Interfaces (internal/backup/incremental.go):
- BackupType enum: full vs incremental
- IncrementalMetadata struct with base backup reference
- ChangedFile struct for tracking modifications
- BackupChainResolver interface for restore chain logic
- IncrementalBackupEngine interface
PostgreSQL Implementation (internal/backup/incremental_postgres.go):
- PostgresIncrementalEngine for file-level incrementals
- FindChangedFiles() - mtime-based change detection
- shouldSkipFile() - exclude temp/lock/socket files
- loadBackupInfo() - read base backup metadata
- Stubs for CreateIncrementalBackup() and RestoreIncremental()
Metadata Extension (internal/metadata/metadata.go):
- Added IncrementalMetadata to BackupMetadata
- Fields: base_backup_id, backup_chain, incremental_files
- Tracks parent backup and restore dependencies
Next Steps:
- Add --backup-type incremental flag to CLI
- Implement backup chain resolution
- Write integration tests
Status: SCAFFOLDING ONLY - not functional yet
2025-11-26 06:22:54 +00:00
..
2025-11-25 15:25:56 +00:00
2025-11-26 06:22:54 +00:00
2025-11-25 22:29:58 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 21:31:21 +00:00
2025-11-25 21:31:21 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-26 06:22:54 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 20:30:28 +00:00
2025-11-25 19:18:07 +00:00
2025-11-25 22:29:58 +00:00
2025-11-25 15:25:56 +00:00
2025-11-26 05:25:35 +00:00
2025-11-25 19:18:07 +00:00