---
name: "ibid-db"
section: "1"
platform: "linux"
package: "ibid"
version: "0.1.1+dfsg-4"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ibid-db"
---

# ibid-db(1)

Database management utility for Ibid

## NAME

ibid-db - Database management utility for Ibid

## SYNOPSIS

**ibid-db command** \[*options*...\]

## DESCRIPTION

This utility is for offline management of your Ibid bot's database. Used for import, export, and upgrades.

The export format is DBMS-agnostic and can be used to migrate between different databases.

## COMMANDS

- **-e** *FILE*, **--export**=*FILE*

  Export DB contents to *FILE*. Export format is JSON.

-

  FILE can be **-** for stdin/stdout or can end in **.gz** for automatic gzip compression.

- **-i** *FILE*, **--import**=*FILE*

  Import DB contents from *FILE* as exported by this utility.

-

  FILE can be **-** for stdin/stdout or can end in **.gz** for automatic gzip compression.

-

  **Note:** The DB must be empty first.

- **-u**, **--upgrade**

  Upgrade DB schema to the latest version. You need to run this after upgrading your bot.

-

  **Note:** You should backup first.

## OPTIONS

- **--version**

  Show the program's version and exit.

- **-h**, **--help**

  Show a help message and exit.

- **-v**, **--verbose**

  Turn on debugging output to stderr.

## FILES

- *ibid.ini*

  Locates the database to act upon by looking for the **\[databases\].ibid** value in the bot configuration file in the current directory.

## SEE ALSO

[**ibid**(1)](/ibid/1.md), [**ibid.ini**(5)](/ibid.ini/5.md), [**ibid-setup**(1)](/ibid-setup/1.md), **http://ibid.omnia.za.net/**
