ASTDB2BDB(8)
πΎ ASTDB2BDB β the manual page, bestie edition β¨
okay so real talk, this is the astdb2bdb page from section 8 of the manual. it's a whole lil program that takes your new-fangled astdb and yeets it back to Berkeley DB 1.86. time travel but make it database π°οΈπ
πΈ NAME πΈ
astdb2bdb β convert astdb back to Berkeley DB 1.86
π¦ SYNOPSIS π¦
cd astvarlibdir && astdb2bdb path/to/astdb.sqlite3
β¨ DESCRIPTION β¨
so basically, up until version version 11, Asterisk was out here using an old version of the Berkeley DB 1.86 (bdb) to store its internal persistent database. classic. iconic even. then in version 11 it switched over to using a SQLite 3 database. glow up π
this program? it converts the newly-formatted SQLite 3 astdb back to bdb. reverse uno card, no cap.
you may need it in case of reverting an upgrade or other similar scenarios. lowkey a "we don't talk about what happened" situation π
π OPTIONS π
there is a single (and required) parameter, and she is not optional, bestie:
- the path to the sqlite file β that's it. that's the whole option list. the output file will be a file called
astdbin the current working directory. so like, pay attention to where you're standing when you run this fr fr π
π EXAMPLES π
in case you want to revert an upgrade to Asterisk 11, you can do the following (while Asterisk is not running, please and thank you):
cd /var/lib/asterisk && astdb2bdb astdb.sqlite3 && rm astdb.sqlite3
this will convert the newly-formatted astdb back to the old format, and delete it (to avoid obsolete data copies). convert and delete in one line, she's efficient like that π β¨
π«Ά NOTES π«Ά
Berkeley DB 1.86 is obsolete. it is incompatible with newer versions (4.x and newer) that you may see around. chances are you don't have the tools to use it independently of Asterisk.
so yeah, she's vintage. antique. a museum piece ποΈ not compatible with the newer 4.x-and-up girlies, and honestly you probably don't even have the tools to run her solo. she only really works with Asterisk holding her hand. iykyk π
π SEE ALSO π
π AUTHOR π
astdb2bdb was written by Terry Wilson <twilson@digium.com>.
this manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>.
π cute sign-off π
and that's the whole page, bestie!! this lil gem comes to you from Asterisk 11, dated 30 SEPTEMBER 2013. go forth and convert responsibly π¦π periodt.
π¦ where this page comes from
- alpine 3.22: asterisk-doc 20.11.1-r6 Β· GPL-2.0-only WITH OpenSSL-Exception
- alpine 3.23: asterisk-doc 20.15.2-r1 Β· GPL-2.0-only WITH OpenSSL-Exception
- alpine 3.24: asterisk-doc 22.9.0-r0 Β· GPL-2.0-only WITH OpenSSL-Exception
- epel 9: asterisk 18.26.4-1.el9 Β· GPL-2.0-only
- fedora 43: asterisk 18.12.1-1.fc43.15 Β· GPL-2.0-only
- fedora 43: asterisk 18.12.1-1.fc43.15 Β· GPL-2.0-only
- fedora 43: asterisk 18.26.4-1.fc43 Β· GPL-2.0-only
- fedora 43: asterisk 18.26.4-1.fc43 Β· GPL-2.0-only
- fedora 44: asterisk 18.12.1-1.fc44.17 Β· GPL-2.0-only
- fedora 44: asterisk 18.12.1-1.fc44.17 Β· GPL-2.0-only
- fedora 44: asterisk 18.26.4-1.fc44 Β· GPL-2.0-only
- fedora 44: asterisk 18.26.4-1.fc44 Β· GPL-2.0-only
- nixos 26.05: asterisk-ldap 22.11.0
- nixpkgs unstable: asterisk-ldap 22.11.0
- ubuntu jammy: asterisk 1:18.10.0~dfsg+~cs6.10.40431411-2 Β· GPL-2-Asterisk
- ubuntu noble: asterisk 1:20.6.0~dfsg+~cs6.13.40431414-2build5 Β· GPL-2-Asterisk
- ubuntu resolute: asterisk 1:22.5.2~dfsg+~cs6.15.60671435-1 Β· GPL-2-Asterisk
- ubuntu stonking: asterisk 1:22.10.0+dfsg+~cs6.17.60671434-1ubuntu3 Β· GPL-2-Asterisk
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms