feat: infra backup retention + version picker
Hub: GFS retention (7d/4w/3m, ~14 versions) in new infra_backup_versions table. Recovery endpoint supports ?version=ID. New /versions API endpoint. Dashboard shows backup history. Controller: local drive backups rotated into history/ (last 5 versions). Setup wizard shows version picker for Hub restores when multiple versions exist. Scan results enriched with app names, disk count, history badge. Local restore supports historical versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,3 +49,8 @@ func AppDataDir(drivePath, stackName string) string {
|
||||
func InfraBackupDir(mountPath string) string {
|
||||
return filepath.Join(mountPath, ".felhom-infra-backup")
|
||||
}
|
||||
|
||||
// InfraBackupHistoryDir returns the history subdirectory for versioned infra backups on a drive.
|
||||
func InfraBackupHistoryDir(mountPath string) string {
|
||||
return filepath.Join(mountPath, ".felhom-infra-backup", "history")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user