The quasardb database tool enables you to analyze, dump, repair and backup the persisted data of a quasardb instance.
Parameters can be supplied in any order and are prefixed with --. The arguments format is parameter dependent.
Displays basic usage information.
To display the online help, type:
qdb_dbtool --help
Specifies the path to the database on which to work.
Work on a database in the current directory:
qdb_dbtool --database=.
Work on a database in the /var/quasardb/db directory:
qdb_dbtool --database=/var/quasardb/db directory
Requests an analysis of the database. A report will be printed to the standard output.
Analyze the database in the current directory:
qdb_dbtool --database=. --analyze
Dumps the content of the database to the standard output.
Dump the database in the current directory:
qdb_dbtool --database=. --dump
Copies all the content of the database to a new database in the specified directory. If the directory does not exist it will be created. If a database exists in the destination directory, its content may be overwritten by the new content.
Backup the database in /var/quasardb/db to /var/backup/quasardb/db
qdb_dbtool --database=/var/quasardb/db --backup=/var/backup/quasardb/db
Attempts to repair the database. All data may not be recovered. Note that the quasardb daemon daemon automatically attempts to repair the database if needed; this option is intended for offline operations.
Repairs the database in the current directory:
qdb_dbtool --database=. --repair