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 astdb in 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.