Synopsis

perch backup [OPTIONS] <destination.db>

Description

Use SQLite’s online backup API to write a consistent copy while serve is running. The destination must not already exist.

Notes

  • Safe alongside serve because SQLite WAL mode allows concurrent readers and writers.

Options

OptionDescription
--config <value>configuration file (default: ~/.config/perch/perch.yaml)
--help, -hshow help

Examples

perch backup --config /etc/perch/perch.yaml /var/lib/perch/backups/perch-$(date +%F).db

See also