1ASTDB2BDB(8) ASTDB2BDB(8)
2
3
4
6 astdb2bdb - convert astdb back to Berkeley DB 1.86
7
9 cd astvarlibdir && astdb2bdb path/to/astdb.sqlite3
10
11
13 Up until version version 11, Asterisk used an old version of the Berke‐
14 ley DB 1.86 (bdb) to store its internal persistent database. In version
15 11 it switched to using a SQLIte 3 database. This program is used to
16 convert the newly-formatted SQLite 3 astdb back to bdb.
17
18 You may need it in case of reverting an upgrade or other similar sce‐
19 narios.
20
21
23 There is a single (and required) parameter: the path the the sqlite
24 file. The output file will be a file called astdb in the current work‐
25 ing directory.
26
27
29 In case you want to revert an upgrade to Asterisk 11, you can do the
30 following (while Asterisk is not running):
31
32 cd /var/lib/asterisk && astdb2bdb astdb.sqlite3 && rm astdb.sqlite3
33
34 This will convert the newly-formatted astdb back to the old format, and
35 delete it (to avoid obsolete data copies).
36
37
39 Berkeley DB 1.86 is obsolete. It is incompatible with newer versions
40 (4.x and newer) that you may see around. Chances are you don't have the
41 tools to use it independently of Asterisk.
42
43
45 astdb2sqlite3(8), asterisk(8)
46
47
49 astdb2bdb was written by Terry Wilson <twilson@digium.com>.
50
51 This manual page was written by Tzafrir Cohen <tzafrir.cohen@xor‐
52 com.com>.
53
54
55
56Asterisk 11 30 SEPTEMBER 2013 ASTDB2BDB(8)