Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + func DecryptBackup(encrypted []byte, password string) ([]byte, error) + func DecryptFile(inputPath, outputPath, password string) error + func EncryptBackup(data []byte, password string) ([]byte, error) + func EncryptFile(inputPath, outputPath, password string) error + func HashPassword(password string) string + func IsEncrypted(backupPath string) bool + func VerifyPassword(password, hash string) bool + type BackupInfo struct + CreatedAt time.Time + FileCount int + Filename string + Path string + ServerTitle string + Size int64 + Version string + func (bi BackupInfo) FormatSize() string + type BackupMetadata struct + AppVersion string + Checksum string + Checksums map[string]string + Contents []string + CreatedAt time.Time + CreatedBy string + Encrypted bool + EncryptionMethod string + Files []string + ServerTitle string + Size int64 + Version string + type Manager struct + func NewManager() *Manager + func (m *Manager) ApplyRetention(policy RetentionPolicy) error + func (m *Manager) Create(filename string) (string, error) + func (m *Manager) CreateAndVerify(filename string) (string, *VerificationResult, error) + func (m *Manager) CreateEncrypted(filename string) (string, error) + func (m *Manager) CreateEncryptedAndVerify(filename string) (string, *VerificationResult, error) + func (m *Manager) Delete(filename string) error + func (m *Manager) GetMetadata(backupPath string) (*BackupMetadata, error) + func (m *Manager) List() ([]BackupInfo, error) + func (m *Manager) Restore(backupPath string) error + func (m *Manager) RestoreEncrypted(backupPath string) error + func (m *Manager) ScheduledBackup(keepCount int) error + func (m *Manager) ScheduledBackupWithVerification(keepCount int) error + func (m *Manager) SetCreatedBy(username string) + func (m *Manager) SetPassword(password string) + func (m *Manager) VerifyBackup(backupPath string) (*VerificationResult, error) + type RetentionPolicy struct + Count int + Day int + Month int + Week int + Year int + func DefaultRetentionPolicy() RetentionPolicy + type VerificationResult struct + AllPassed bool + ChecksumValid bool + DecryptValid bool + Errors []string + FileExists bool + ManifestValid bool + SizeValid bool