backup-tool

command module
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 1 Imported by: ? 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.

README

backup-tool

Tool for backing up my home infrastructure. Might be helpful for other folks as well.

Features:

  • Consistent backups for all resources (i.e. application databases and filesystem states will match)
  • Backups stored as files, in a human-readable format where possible
  • Little to no impact on running applications
    • No need to take databases offline for a consistent backup
    • No performance impact on running applications where possible
  • Backup jobs run on demand, with no long-lived processes (or containers) needed
  • Takes advantage of underlying filesystem features where possible, rather than reimplementing in-band
    • ZFS-backed storage reduces backup size via Copy on Write and compression (if enabled)
  • Can run locally or in-cluster
  • No passwords wherever possible - short-lived x509 certificates instead

See the design decision doc for additional details.

Supported applications:

  • Vaultwarden
    • Backup to an in-cluster PVC, which is then snapshotted
    • Restore from an in-cluster PVC
    • Only Postgres backend supported (SQLite not supported)
  • Teleport
    • Backup to an in-cluster PVC, which is then snapshotted
    • Restore from an in-cluster PVC
    • Only Postgres supported for "core" backend and audit events
    • Only S3-compatible object storage supported for audit session logs
  • Authentik
  • Generic
    • Backup to an in-cluster PVC, which is then snapshotted
    • Restore from an in-cluster PVC
    • Specify multiple CNPG clusters, S3 buckets, and up to one volume and get a consistent backup
    • Multiple PVCs result in an inconsistent backup due to tool limitation (VolumeGroupSnapshot is not supported yet)

Upcoming support:

  • ZFS snapshot to tape drive/library
  • Automatic cleanup

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
disasterrecovery/actions/remote/files/layout
Package layout defines the on-disk layout of DR-volume captures shared across the file backup and restore actions.
Package layout defines the on-disk layout of DR-volume captures shared across the file backup and restore actions.
kubecluster/primatives/approverpolicy/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
kubecluster/primatives/approverpolicy/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
kubecluster/primatives/approverpolicy/gen/clientset/versioned/typed/policy/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
Package fake has the automatically generated clients.
kubecluster/primatives/barmancloud/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
kubecluster/primatives/barmancloud/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
kubecluster/primatives/barmancloud/gen/clientset/versioned/typed/api/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
kubecluster/primatives/barmancloud/gen/clientset/versioned/typed/api/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
kubecluster/primatives/cnpg/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
kubecluster/primatives/cnpg/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
kubecluster/primatives/cnpg/gen/clientset/versioned/typed/api/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
kubecluster/primatives/cnpg/gen/clientset/versioned/typed/api/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
s3

Jump to

Keyboard shortcuts

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