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
| Option | Description |
|---|---|
--config <value> | configuration file (default: ~/.config/perch/perch.yaml) |
--help, -h | show help |
Examples
perch backup --config /etc/perch/perch.yaml /var/lib/perch/backups/perch-$(date +%F).db