forked from Vocalocity/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopensipsdbctl.8
107 lines (98 loc) · 2.49 KB
/
opensipsdbctl.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\" $Id: opensipsdbctl.8 5891 2009-11-22 12:53:09Z alerios $
.TH opensipsdbctl 8 22.11.2009 opensips "OpenSIPS"
.\" Process with
.\" groff -man -Tascii opensipsdbctl.8
.\"
.SH NAME
opensipsdbctl \- control tool for maintaining OpenSIPS databases
.SH SYNOPSIS
.B opensipsdbctl
.B opensipsdbctl
.BI command
[
.BI parameters
]
.SH DESCRIPTION
.B opensipsdbctl
is a control tool for maintaining
.B OpenSIPS SIP server
databases.
It can be used to create, migrate, copy, delete, dump and restore
the persistance databases for OpenSIPS, on the supported Engines.
.SH FILES
.PD 0
.I /etc/opensips/opensipsdbctlrc
.br
.I ~/.opensipsdbctlrc
.br
.SH COMMANDS
.TP 16
.I OpenSIPS databases management:
.TP 12
.B db create <db name or db_path, optional>
creates a new database
.TP
.B db presence
adds the presence related tables
.TP
.B db extra
adds the extra tables
.TP
.B db migrate <old_db> <new_db>
migrates DB from 1.5 to 1.6
.TP
.B db drop <db name or db_path, optional>
!entirely deletes tables!
.TP
.B db reinit <db name or db_path, optional>
!entirely deletes and than re-creates tables!
.TP
.B db backup <file>
dumps current database to file
.TP
.B db restore <file>
restores tables from a file
.TP
.B db copy <new_db>
creates a new db from an existing one
.TP 16
.I OpenSIPS Berkeley DB tables management:
.TP 12
.B bdb | db_berkeley list
lists the underlying db files in DB_PATH
.TP
.B bdb | db_berkeley cat <db>
db_dump the underlying db file to STDOUT
.TP
.B bdb | db_berkeley swap <db>
installs db.new by db -> db.old; db.new -> db
.TP
.B bdb | db_berkeley append <db> <datafile>
appends data to an existing db;output DB_PATH/db.new
.TP
.B bdb | db_berkeley newappend <db> <datafile>
appends data to a new instance of db; output DB_PATH/db.new
.TP
.B bdb | db_berkeley export <dump_dir>
exports table data to plain-txt files in dump_dir
.TP
.B bdb | db_berkeley import <dump_dir>
imports plain-txt table data and creates new db tables in db_path
.SH AUTHORS
see
.B /usr/share/doc/opensips/AUTHORS
.PP
This manual page was written by Alejandro Rios P. <[email protected]>,
based on opensipsctl manpage by Bogdan-Andrei Iancu <[email protected]>,
for the Debian project (and may be used by others).
.SH SEE ALSO
.BR opensips(8), opensips.cfg(5), opensipsctl(8), osipsconsole(8)
.PP
Full documentation on opensips is available at
.I http://www.opensips.org/.
.PP
Mailing lists:
.nf
[email protected] - opensips user community
.nf
[email protected] - opensips development, new features and unstable version