Crates.io | grebedb-tool |
lib.rs | grebedb-tool |
version | 1.0.0 |
source | src |
created_at | 2021-03-29 02:06:43.741536 |
updated_at | 2021-06-04 02:42:43.478843 |
description | Command line tool for operating on GrebeDB databases |
homepage | |
repository | https://github.com/chfoo/grebedb/ |
max_upload_size | |
id | 374920 |
size | 66,921 |
A command-line program to provide basic manipulation (such as import, export) and debugging on GrebeDB databases.
The tool is currently offered only in source code form, so you will need to install Rust first. Once Rust is installed, run cargo install grebedb-tool
to install the tool to $HOME/.cargo/bin
, then run grebedb-tool --help
to show program options. To update the program, run the install command again. To remove the program, run cargo uninstall grebedb-tool
.
Example commands for running the tool assuming a Unix-like shell.
The import and export commands can be used to create backups of the database contents to a JSON sequence file.
The commands can import/export directly to a given filename or through standard input/output.
Export a database to a (non-existing) file:
grebedb-tool export path/to/database/ database.json-seq
or with compression:
grebedb-tool export path/to/database/ database.json-seq.zst --zstd
To import a database (into an empty directory) from a file:
grebedb-tool import path/to/database/ database.json-seq
or with compression:
grebedb-tool import path/to/database/ database.json-seq.zst --zstd
The verify command checks that the database has not been corrupted.
grebedb-tool verify path/to/database/ --verbose
The inspect command launches an interactive session for browsing and editing the database contents.
grebedb-tool inspect path/to/database/
Inputting help
will show all available commands. Inputting help
and then the name of the command will show all options for a given command.
Note that because the format of the contents depends on the application, the inspect command is not intended as a user-friendly way of directly editing application data.