astdb2bdb.8 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .TH "ASTDB2BDB" "8" "30 SEPTEMBER 2013" "Asterisk 11" ""
  2. .SH NAME
  3. astdb2bdb \- convert astdb back to Berkeley DB 1.86
  4. .SH SYNOPSIS
  5. .B cd \fIastvarlibdir\fB && astdb2bdb path/to/astdb.sqlite3
  6. .SH "DESCRIPTION"
  7. Up until version version 11, Asterisk used an old version of the
  8. Berkeley DB 1.86 (bdb) to store its internal persistent database. In
  9. version 11 it switched to using a SQLIte 3 database. This program is
  10. used to convert the newly-formatted SQLite 3 astdb back to bdb.
  11. You may need it in case of reverting an upgrade or other similar
  12. scenarios.
  13. .SH OPTIONS
  14. There is a single (and required) parameter: the path the the sqlite file.
  15. The output file will be a file called
  16. .B astdb
  17. in the current working directory.
  18. .SH EXAMPLES
  19. In case you want to revert an upgrade to Asterisk 11, you can do the
  20. following (while Asterisk is not running):
  21. cd /var/lib/asterisk && astdb2bdb astdb.sqlite3 && rm astdb.sqlite3
  22. This will convert the newly-formatted astdb back to the old format, and
  23. delete it (to avoid obsolete data copies).
  24. .SH NOTES
  25. Berkeley DB 1.86 is obsolete. It is incompatible with newer versions
  26. (4.x and newer) that you may see around. Chances are you don't have the
  27. tools to use it independently of Asterisk.
  28. .SH SEE ALSO
  29. .B astdb2sqlite3(8),
  30. .B asterisk(8)
  31. .SH AUTHOR
  32. astdb2bdb was written by Terry Wilson <twilson@digium.com>.
  33. This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>.