restinpieces-sqlite-backup

module
v0.0.0-...-721678b Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT

README

restinpieces-sqlite-backup

An SFTP pull client for retrieving backup files created by the restinpieces framework.

The backup system follows a two-step push-pull design. The server side — creating compressed SQLite snapshots via a background job — is built into restinpieces itself (see doc/backup.md). This repository provides the client side: a standalone binary that connects to the server via SFTP, finds the latest backup, downloads it, and verifies its integrity.

Features

  • SFTP pull of backup files from a remote server
  • Automatically finds the latest backup by filename timestamp
  • Decompresses .bck.gz archives
  • Verifies integrity with PRAGMA integrity_check

Usage

go run github.com/caasmo/restinpieces-sqlite-backup/cmd/client@latest \
  -host myserver.example.com \
  -user backup \
  -remote-dir /data/backups \
  -local-dir ./backups

See cmd/client for configuration options.

License

MIT — see LICENSE.

Directories

Path Synopsis
cmd
sftp command

Jump to

Keyboard shortcuts

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