diff --git a/src/emqx_mgmt_cli.erl b/src/emqx_mgmt_cli.erl index 038d4f0..f781e83 100644 --- a/src/emqx_mgmt_cli.erl +++ b/src/emqx_mgmt_cli.erl @@ -557,8 +557,8 @@ data(["export", Directory]) -> Blacklist = emqx_mgmt:export_blacklist(), Apps = emqx_mgmt:export_applications(), Users = emqx_mgmt:export_users(), - AuthClientID = export_auth_clientid(), - AuthUsername = export_auth_username(), + AuthClientID = emqx_mgmt:export_auth_clientid(), + AuthUsername = emqx_mgmt:export_auth_username(), AuthMnesia = emqx_mgmt:export_auth_mnesia(), AclMnesia = emqx_mgmt:export_acl_mnesia(), Schemas = emqx_mgmt:export_schemas(), @@ -603,6 +603,8 @@ data(["import", Filename]) -> emqx_mgmt:import_blacklist(maps:get(<<"blacklist">>, Data)), emqx_mgmt:import_applications(maps:get(<<"apps">>, Data)), emqx_mgmt:import_users(maps:get(<<"users">>, Data)), + emqx_mgmt:import_auth_clientid(maps:get(<<"auth_clientid">>, Data)), + emqx_mgmt:import_auth_username(maps:get(<<"auth_username">>, Data)), emqx_mgmt:import_auth_mnesia(maps:get(<<"auth_mnesia">>, Data)), emqx_mgmt:import_acl_mnesia(maps:get(<<"acl_mnesia">>, Data)), emqx_mgmt:import_schemas(maps:get(<<"schemas">>, Data)),