Documentation
¶
Index ¶
- Variables
- type Manager
- func (m *Manager) CleanupBackups(serviceName string) (map[string]int, error)
- func (m *Manager) Close() error
- func (m *Manager) CreateBackup(serviceName string) error
- func (m *Manager) GetConfig() *config.Config
- func (m *Manager) GetServices() map[string]config.Service
- func (m *Manager) RestoreBackup(serviceName, backupName string) error
- func (m *Manager) ValidateDockerContainer(containerName string) error
- func (m *Manager) ValidateSynologyConnection() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Debug controls verbose logging
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
Synology storage.Storage
S3 storage.Storage
// contains filtered or unexported fields
}
Manager handles backup operations
func NewManager ¶
NewManager creates a new backup manager
func (*Manager) CleanupBackups ¶
CleanupBackups removes old backups while keeping the most recent ones
func (*Manager) CreateBackup ¶
CreateBackup creates a backup of the specified service
func (*Manager) GetServices ¶
GetServices returns the configured services
func (*Manager) RestoreBackup ¶
RestoreBackup restores a backup of the specified service
func (*Manager) ValidateDockerContainer ¶
ValidateDockerContainer checks if a Docker container exists and is accessible
func (*Manager) ValidateSynologyConnection ¶
ValidateSynologyConnection tests the connection to the Synology NAS
Click to show internal directories.
Click to hide internal directories.