archive

package
v0.0.0-...-f952791 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config) error

Run executes the archive operation based on the provided configuration.

Types

type Config

type Config struct {
	SourceDir     string
	ArchiveDir    string
	FilePath      string // optional, process only this file if set
	DirectoryPath string // optional, override SourceDir if set and FilePath is empty
	MtimeDays     int
	ZstdLevel     int
	ZstdUltra     bool
	ZstdLong      bool
	ZstdWorkers   int
	Logger        *slog.Logger
	Since         *time.Time
	Until         *time.Time
	MaxArchives   int
	Reverse       bool
	DiskUsage     bool
}

Config holds the configuration for the archive operation.

type FileEntry

type FileEntry struct {
	// contains filtered or unexported fields
}

FileEntry represents a journal file to be compressed.

Jump to

Keyboard shortcuts

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