Versions in this module Expand all Collapse all v2 v2.1.1 Dec 9, 2025 Changes in this version + const BackupDetailsFilename + const DateSuffixLayout + const DefaultStorageExporter + const EntityNameIndexSplit + const LimitPerFile + const StorageBackupDirectoryName + const TypeJSON + const TypeYAML + func CopyFiles(logger *zap.Logger, sourceDir, dstDir string, overwrite bool) error + type Backup interface + GetEntityInterface func() interface{} + Import func(data interface{}) error + List func(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error) + type BackupDetails struct + CreatedOn time.Time + Directories map[string]string + Filename string + StorageExportType string + Version version.Version + type BackupFile struct + Directory string + FileName string + FileSize int64 + FullPath string + ID string + LocationName string + ModifiedOn time.Time + ProviderType string + type BackupLocationDisk struct + TargetDirectory string + type BackupRestore struct + func New(ctx context.Context, directories map[string]string) (*BackupRestore, error) + func (br *BackupRestore) ExecuteImportStorage(apiMap map[string]Backup, sourceDir, fileType string, ignoreEmptyDir bool) error + func (br *BackupRestore) ExecuteRestore(storage storageTY.Plugin, apiMap map[string]Backup, extractedDir string, ...) error + func (br *BackupRestore) ExportStorage(exportMap map[string]Backup, transformerFunc DataTransformerFunc, ...) error + func (br *BackupRestore) ExtractExportedZipFile(...) error + type DataTransformerFunc func(logger *zap.Logger, entityName string, data interface{}, ...) (interface{}, error) + type OnDemandBackupConfig struct + Handler string + Prefix string + StorageExportType string + TargetLocation string