Skip to content

kam1sh/lohup

Repository files navigation

Lohup

(loh-up - backup for lohs[1])

Lohup - backups done dummy.

Development status

Early alpha. Works on my machines.

Installation

Restic and uv for Python required. Or just Python 3.13 and restic.

apt update && apt install -y restic
uv tool install git+https://github.com/kam1sh/lohup

Usage

Example configuration see in corresponding directory

CLI examples:

lohup --config config.toml restic --repo cloud -- init
# if config=lohup.toml then option can be omitted
lohup backup-all
lohup snapshots --repo cloud

Core features

  • Configuration in TOML
  • Restic as a backup driver
  • Backup hooks, such as create/remove btrfs filesystem snapshot
  • Environment variables

Features in TODO

  • LVM hooks
  • Better error handling and printing
  • Verbose/debug messages
  • Metrics and OpenTelemetry support
  • Binary releases, win+linux amd64 along with Python wheel
  • Include files in profiles with paths-from

Development

git clone git@github.com:kam1sh/lohup lohup-dev && cd lohup-dev
# install dependencies
uv sync --group dev
# run tests
uv run pytest --tb=short
# building binaries to dist directory
uv run pyinstaller -F lohup-cli.spec

[1] in my native language loh (лох) means "dummy" or "looser"

About

Backups done dummy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages