25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

* src/ejabberd_ctl.erl: Web Admin and Ad-hoc admin: dump only

persistent tables (EJAB-678)

SVN Revision: 1387
This commit is contained in:
Badlop 2008-06-29 11:59:06 +00:00
parent 5e25cbcaa9
commit 2ccf410a75
4 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2008-06-29 Badlop <badlop@process-one.net> 2008-06-29 Badlop <badlop@process-one.net>
* src/ejabberd_ctl.erl: Web Admin and Ad-hoc admin: dump only
persistent tables (EJAB-678)
* src/mod_pubsub/node_pep.erl: Complain if mod_caps disabled and * src/mod_pubsub/node_pep.erl: Complain if mod_caps disabled and
mod_pubsub has PEP plugin enabled (EJAB-677) mod_pubsub has PEP plugin enabled (EJAB-677)

View File

@ -30,6 +30,7 @@
-export([start/0, -export([start/0,
init/0, init/0,
process/1, process/1,
dump_to_textfile/1,
register_commands/3, register_commands/3,
register_commands/4, register_commands/4,
unregister_commands/3, unregister_commands/3,

View File

@ -1416,7 +1416,7 @@ set_form(_From, _Host, ["running nodes", ENode, "backup", "textfile"], _Lang, XD
false -> false ->
{error, ?ERR_BAD_REQUEST}; {error, ?ERR_BAD_REQUEST};
{value, {_, [String]}} -> {value, {_, [String]}} ->
case rpc:call(Node, mnesia, dump_to_textfile, [String]) of case rpc:call(Node, ejabberd_ctl, dump_to_textfile, [String]) of
{badrpc, _Reason} -> {badrpc, _Reason} ->
{error, ?ERR_INTERNAL_SERVER_ERROR}; {error, ?ERR_INTERNAL_SERVER_ERROR};
{error, _Reason} -> {error, _Reason} ->

View File

@ -2022,7 +2022,7 @@ node_backup_parse_query(Node, Query) ->
rpc:call(Node, mnesia, rpc:call(Node, mnesia,
install_fallback, [Path]); install_fallback, [Path]);
"dump" -> "dump" ->
rpc:call(Node, mnesia, rpc:call(Node, ejabberd_ctl,
dump_to_textfile, [Path]); dump_to_textfile, [Path]);
"load" -> "load" ->
rpc:call(Node, mnesia, rpc:call(Node, mnesia,