I’ve build a prototype of a tar like gristar command
which extracts grist attachments in bulk from a grist file.
If you use it, be aware that this is a prototype.
GristAr
GristAr is a command-line utility designed to manipulate, list, and extract attachments from .grist database files. Think of it as ar or sqlar, but specifically tailored for the Grist internal storage schema.
It utilizes high-performance SQLite Incremental BLOB I/O to handle large attachments efficiently without loading them entirely into memory.
Features
-
List: View all attachments stored in a Grist file with size summaries.
-
Extract: Bulk export attachments to a local directory with glob pattern support.
-
Cat: Stream attachment content directly to
stdoutfor piping to other tools.