ASTDB2SQLITE3(8)

πŸ’– ASTDB2SQLITE3 πŸ’–

okay bestie, so this is the manual page for astdb2sqlite3 from section 8 (that's the sysadmin / maintenance girlies section, iykyk) ✨


✨ NAME ✨

astdb2sqlite3 β€” convert astdb to SQLite 3 πŸ¦‹


🌸 SYNOPSIS 🌸

astdb2sqlite3 path/to/astdb

πŸ’… DESCRIPTION πŸ’…

so here's the lore πŸ“– β€” up until version 11, Asterisk was storing its internal persistent database in an old version of the Berkeley DB 1.86 (aka bdb). then in version 11 it said "new era" and switched over to a SQLite 3 database instead. iconic behavior honestly.

this program right here? it's the glow-up machine πŸ’« it takes an existing bdb astdb file and converts it into astdb.sqlite3.

normally Asterisk runs this thing itself when it's doing the conversion, no input needed from you. but sometimes you gotta run it on your own, and that's valid 🫢


πŸŽ€ OPTIONS πŸŽ€

there's literally one option and it's required, no skips:

  • path/to/astdb β€” the path to the bdb file. that's it, that's the whole parameter list. the output file name is gonna be the same as the input name, just with .sqlite3 appended to the end. so simple. so clean. slay.

🌈 EXAMPLES 🌈

Asterisk will typically run the following when it's upgrading the database:

astdb2sqlite3 /var/lib/asterisk/astdb

and boom πŸ’₯ that creates /var/lib/asterisk/astdb.sqlite3. chef's kiss.


πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

astdb2sqlite3 was written by Terry Wilson <twilson@digium.com> πŸ’–

this manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> πŸ’–


fr fr that's the whole page, no cap. go convert that database bestie πŸ¦‹

Asterisk 11 Β· 30 SEPTEMBER 2013 β€” ok that's the version and the date, periodt. this page has been serving c*nt since 2013 and it still ate πŸ’…βœ¨