cpbackup

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0, MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cpbackup packs Skiff's own state (its database, keys and registry) into an encrypted bundle, and restores it.

Index

Constants

View Source
const DBName = "skiff.db"

DBName is the database's name inside the bundle and in the state dir.

Variables

View Source
var Files = []string{"github.json", "srs.key", "visitor.key", "apps.json", "domains.json", "mail.json", "certs", "deploys"}

Files is what a bundle carries besides the database snapshot, relative to ~/.skiff. Missing ones are skipped.

Functions

func Open

func Open(key, sealed []byte) ([]byte, error)

func Pack

func Pack(w io.Writer, dir, dbSnapshot string) error

Pack writes a gzipped tar of the database snapshot plus the state files found under dir.

func ParseKey

func ParseKey(s string) ([]byte, error)

ParseKey reads a 64-character hex recovery key.

func Seal

func Seal(key, plain []byte) ([]byte, error)

func Unpack

func Unpack(r io.Reader, dir string) ([]string, error)

Unpack writes a bundle's files into dir, refusing any path that would land outside it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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