Small CLI tool to open a DeltaChat directory and export it in the format which can be imported by any Delta Chat client
Find a file
2025-12-23 14:27:49 +01:00
.gitignore added gitignore 2024-07-17 19:08:00 +02:00
.python-version replace poetry with uv 2025-12-23 14:27:49 +01:00
main.py replace poetry with uv 2025-12-23 14:27:49 +01:00
poetry.lock poetry new 2024-07-13 23:20:47 +02:00
pyproject.toml replace poetry with uv 2025-12-23 14:27:49 +01:00
README.md replace poetry with uv 2025-12-23 14:27:49 +01:00
uv.lock replace poetry with uv 2025-12-23 14:27:49 +01:00

backup-dc-from-db-cli

This is a small CLI tool to open a DeltaChat directory and export it in the format which can be imported by any Delta Chat client.

NOTE: if you encounter the error Fatal error: failed to load accounts config: channel closed, make sure the accounts directory you specified isn't used by a running Delta Chat client or bot right now.

Setup

git clone https://git.0x90.space/missytake/backup_dc_from_db_cli
cd backup_dc_from_db_cli

Usage

$ uv run main.py --help
usage: main.py [-h] [--db_path DB_PATH] [--account ACCOUNT] [--output OUTPUT] [--passphrase PASSPHRASE] [-v]

options:
  -h, --help            show this help message and exit
  --db_path DB_PATH     Path to DeltaChat directory
  --account ACCOUNT     email address of the account to backup
  --output OUTPUT       output file name
  --passphrase PASSPHRASE
                        passphrase to encrypt the backup file. environment variable: DC_BACKUP_PASSPHRASE
  -v, --verbose         print logs
$ uv run main.py --account user@example.org --output ~/Desktop