backup

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Format             = "ai-bookkeeping-full-backup"
	Version            = 1
	ManifestName       = "manifest.json"
	DatabaseName       = "database.sqlite3"
	StorageDirectory   = "storage"
	PendingFileSuffix  = ".restore-pending.zip"
	SQLiteHeaderLength = 16
)

Variables

This section is empty.

Functions

func ExtractArchive

func ExtractArchive(path string, destination string, maxUncompressedSize int64) error

func ValidateArchive

func ValidateArchive(path string, maxUncompressedSize int64) error

func WriteArchive

func WriteArchive(writer io.Writer, databasePath string, storagePath string, generatedAt time.Time) error

Types

type Manifest

type Manifest struct {
	Format      string `json:"format"`
	Version     int    `json:"version"`
	GeneratedAt string `json:"generatedAt"`
}

Jump to

Keyboard shortcuts

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