trilium/export-schema.sh

7 lines
165 B
Bash
Raw Normal View History

2017-12-04 11:29:23 +08:00
#!/usr/bin/env bash
2017-12-24 02:16:18 +08:00
SCHEMA_FILE_PATH=db/schema.sql
sqlite3 ~/trilium-data/document.db .schema > "$SCHEMA_FILE_PATH"
echo "DB schema exported to $SCHEMA_FILE_PATH"