package backup import "path/filepath" // Keep-side path helpers (FelhomDataDir, PrimaryBackupPath, AppDBDumpPath, // AppVolumeDumpPath, AppDataDir) now live in internal/appbackup and are // re-exposed here via aliases/forwarders in appbackup_bridge.go. // PrimaryResticRepoPath returns the restic repo path on a drive's primary backup. func PrimaryResticRepoPath(drivePath string) string { return filepath.Join(drivePath, FelhomDataDir, "backups", "primary", "restic") } // SecondaryBackupPath returns the root secondary backup directory for a drive. func SecondaryBackupPath(drivePath string) string { return filepath.Join(drivePath, FelhomDataDir, "backups", "secondary") } // AppSecondaryRsyncPath returns the rsync destination for an app's secondary backup. func AppSecondaryRsyncPath(drivePath, stackName string) string { return filepath.Join(drivePath, FelhomDataDir, "backups", "secondary", stackName, "rsync") } // SecondaryResticRepoPath returns the restic repo path on a drive's secondary backup. func SecondaryResticRepoPath(drivePath string) string { return filepath.Join(drivePath, FelhomDataDir, "backups", "secondary", "restic") } // SecondaryInfraPath returns the infrastructure config mirror directory on a drive's secondary backup. func SecondaryInfraPath(drivePath string) string { return filepath.Join(drivePath, FelhomDataDir, "backups", "secondary", "_infra") } // InfraBackupDir returns the hidden infra backup directory on a drive. 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") }