backup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package backup creates and restores tar.gz snapshots of stool's config directory (~/.config/stool) — data.json, the encrypted vault, tool scripts, caches — so the whole setup can be saved and moved between machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export() (string, error)

Export writes a tar.gz of the config dir (excluding the backups subdir) and returns the archive path.

func Restore

func Restore(archivePath string) error

Restore extracts archivePath over the config dir, overwriting existing files. Existing files not present in the archive are left untouched.

Types

type Info

type Info struct {
	Path string
	Name string
	Size int64
	Time time.Time
}

Info describes one backup archive.

func List

func List() []Info

List returns existing backups, newest first.

Jump to

Keyboard shortcuts

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