backup

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDatabaseToZip added in v0.12.0

func AddDatabaseToZip(zipPath string, dumpData []byte, databaseName string, postgresVersion string) error

AddDatabaseToZip adds database dump and metadata to an existing ZIP file

func BackupAll added in v0.2.0

func BackupAll(client *openwebui.Client, outputDir string) error

BackupAll backs up all data types into a single unified ZIP file

func BackupChats added in v0.4.0

func BackupChats(client *openwebui.Client, outputDir string) error

BackupChats is the main entry point for backing up all chats

func BackupFeedbacks added in v0.5.0

func BackupFeedbacks(client *openwebui.Client, outputDir string) error

BackupFeedbacks is the main entry point for backing up all feedbacks

func BackupFiles added in v0.3.0

func BackupFiles(client *openwebui.Client, outputDir string) error

BackupFiles is the main entry point for backing up all standalone files

func BackupGroups added in v0.5.0

func BackupGroups(client *openwebui.Client, outputDir string) error

BackupGroups is the main entry point for backing up all groups

func BackupKnowledge

func BackupKnowledge(client *openwebui.Client, outputDir string) error

BackupKnowledge is the main entry point for backing up all knowledge bases

func BackupModels added in v0.2.0

func BackupModels(client *openwebui.Client, outputDir string) error

BackupModels is the main entry point for backing up all models

func BackupPrompts added in v0.3.0

func BackupPrompts(client *openwebui.Client, outputDir string) error

BackupPrompts is the main entry point for backing up all prompts

func BackupSelective added in v0.4.0

func BackupSelective(client *openwebui.Client, outputFile string, options *SelectiveBackupOptions, progressCallback ProgressCallback) error

BackupSelective performs a selective backup based on the provided options outputFile should be the full path to the output ZIP file progressCallback is an optional callback function for progress updates (can be nil)

func BackupTools added in v0.3.0

func BackupTools(client *openwebui.Client, outputDir string) error

BackupTools is the main entry point for backing up all tools

func BackupUsers added in v0.5.0

func BackupUsers(client *openwebui.Client, outputDir string) error

BackupUsers is the main entry point for backing up all users

Types

type ProgressCallback added in v0.6.0

type ProgressCallback func(percent int, message string)

ProgressCallback is a function that receives progress updates during backup operations

type SelectiveBackupOptions added in v0.4.0

type SelectiveBackupOptions struct {
	Knowledge bool
	Models    bool
	Tools     bool
	Prompts   bool
	Files     bool
	Chats     bool
	Groups    bool
	Feedbacks bool
	Users     bool
}

SelectiveBackupOptions defines which data types to include in a backup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL