[Groonga-commit] droonga/droonga.org at d045b29 [gh-pages] Add command line tool reference for drndump

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 20:54:28 JST 2015


YUKI Hiroshi	2015-05-07 20:54:28 +0900 (Thu, 07 May 2015)

  New Revision: d045b29f8cbb9a9f3f04363ce09709ea7b9476c2
  https://github.com/droonga/droonga.org/commit/d045b29f8cbb9a9f3f04363ce09709ea7b9476c2

  Message:
    Add command line tool reference for drndump

  Added files:
    _po/ja/reference/1.1.0/command-line-tools/drndump/index.po
    _po/ja/reference/1.1.1/command-line-tools/drndump/index.po
    ja/reference/1.1.0/command-line-tools/drndump/index.md
    ja/reference/1.1.1/command-line-tools/drndump/index.md
    reference/1.1.0/command-line-tools/drndump/index.md
    reference/1.1.1/command-line-tools/drndump/index.md

  Added: _po/ja/reference/1.1.0/command-line-tools/drndump/index.po (+174 -0) 100644
===================================================================
--- /dev/null
+++ _po/ja/reference/1.1.0/command-line-tools/drndump/index.po    2015-05-07 20:54:28 +0900 (638662a)
@@ -0,0 +1,174 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"PO-Revision-Date: 2014-11-30 23:19+0900\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+msgid ""
+"---\n"
+"title: drndump\n"
+"layout: en\n"
+"---"
+msgstr ""
+"---\n"
+"title: drndump\n"
+"layout: ja\n"
+"---"
+
+msgid ""
+"* TOC\n"
+"{:toc}"
+msgstr ""
+
+msgid "## Abstract {#abstract}"
+msgstr "## 概要 {#abstract}"
+
+msgid ""
+"`drndump` extracts all schema, records, and index definitions of a dataset in "
+"a Droonga cluster."
+msgstr "`drndump`は、指定されたDroongaクラスタ内の特定のデータセットについて、全てのスキーマ定義、レコード、およびインデックスの定義を抽出します。"
+
+msgid ""
+"For example, if there is a Droonga Engine node `192.168.100.50` and you are lo"
+"gged in to a computer `192.168.100.10` in the same network segment, the comman"
+"d line to extract all data in the cluster is:"
+msgstr ""
+"例えば、`192.168.100.50`というDroonga Engineノードがあり、同一ネットワークセグメント内のコンピュータ`192.168.100."
+"10`にログインしている場合、クラスタ内の全てのデータを抽出するコマンド列は以下のようになります:"
+
+msgid ""
+"~~~\n"
+"(on 192.168.100.10)\n"
+"$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10\n"
+"{\n"
+"  \"type\": \"table_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"name\": \"Location\",\n"
+"    \"flags\": \"TABLE_PAT_KEY\",\n"
+"    \"key_type\": \"WGS84GeoPoint\"\n"
+"  }\n"
+"}\n"
+"{\n"
+"  \"type\": \"table_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"name\": \"Store\",\n"
+"    \"flags\": \"TABLE_PAT_KEY\",\n"
+"    \"key_type\": \"ShortText\"\n"
+"  }\n"
+"}\n"
+"...\n"
+"{\n"
+"  \"type\": \"column_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"table\": \"Term\",\n"
+"    \"name\": \"store_name\",\n"
+"    \"type\": \"Store\",\n"
+"    \"flags\": \"COLUMN_INDEX|WITH_POSITION\",\n"
+"    \"source\": \"name\"\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"The output of this command is valid messages to restore same data to another D"
+"roonga cluster.\n"
+"In other words, this command can create a complete backup of a Droonga cluster"
+"."
+msgstr ""
+"このコマンドの出力は、別のDroongaクラスタに同じデータを復元することのできる妥当なメッセージの一覧です。\n"
+"言い換えると、このコマンドはあるDroongaクラスタの完全なバックアップを作成することができます。"
+
+msgid "You can save the output as a file by redirection like:"
+msgstr "出力はリダイレクトを使って以下のようにファイルに保存できます:"
+
+msgid ""
+"~~~\n"
+"(on 192.168.100.10)\n"
+"$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \\\n"
+"    > dump.jsons\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"You can restore the dataset from a dump output, using [`droonga-request` comma"
+"nd](../droonga-request/) or [`droonga-send` command](../droonga-send/).\n"
+"See also both descriptions."
+msgstr ""
+"[`droonga-request`コマンド](../droonga-request/)または[`droonga-send`コマンド](../droonga"
+"-send/)を使うと、ダンプ出力からデータセットを復元できます。\n"
+"各コマンドの説明も参照して下さい。"
+
+msgid "## Parameters {#parameters}"
+msgstr "## パラメータ {#parameters}"
+
+msgid ""
+"`--host=NAME`\n"
+": Host name of the engine node.\n"
+"  A guessed host name of the computer you are running the command, by default."
+msgstr ""
+"`--host=NAME`\n"
+": メッセージの送信先となるEngineノードのホスト名。\n"
+"  既定値は、コマンドを実行しているコンピュータ自身の推測されたホスト名です。"
+
+msgid ""
+"`--port=PORT`\n"
+": Port number to communicate with the engine.\n"
+"  `10031` by default."
+msgstr ""
+"`--port=PORT`\n"
+": Engineノードとの通信に使うポート番号。\n"
+"  既定値は`10031`です。"
+
+msgid ""
+"`--tag=TAG`\n"
+": Tag name to communicate with the engine.\n"
+"  `droonga` by default."
+msgstr ""
+"`--tag=TAG`\n"
+": Engineノードとの通信に使うタグ名。\n"
+"  既定値は`droonga`です。"
+
+msgid ""
+"`--dataset=NAME`\n"
+": Dataset name to be dumped.\n"
+"  `Default` by default."
+msgstr ""
+"`--dataset=NAME`\n"
+": ダンプ出力するデータセットの名前。\n"
+"  既定値は`Default`です。"
+
+msgid ""
+"`--receiver-host=NAME`\n"
+": Host name of the computer you are running this command.\n"
+"  A guessed host name of the computer, by default."
+msgstr ""
+"`--receiver-host=NAME`\n"
+": このコマンドを実行しているコンピュータのホスト名。\n"
+"  既定値は、そのコンピュータのホスト名として推測される名前です。"
+
+msgid ""
+"`--help`\n"
+": Shows the usage of the command."
+msgstr ""
+"`--help`\n"
+": コマンドの使い方の説明を表示します。"
+
+msgid "## How to install {#install}"
+msgstr "## インストール方法 {#install}"
+
+msgid "This is installed as a part of a rubygems package `drndump`."
+msgstr "このコマンドは、Rubygemsのパッケージ`drndump`の一部としてインストールされます。"
+
+msgid ""
+"~~~\n"
+"# gem install drndump\n"
+"~~~"
+msgstr ""

  Added: _po/ja/reference/1.1.1/command-line-tools/drndump/index.po (+174 -0) 100644
===================================================================
--- /dev/null
+++ _po/ja/reference/1.1.1/command-line-tools/drndump/index.po    2015-05-07 20:54:28 +0900 (638662a)
@@ -0,0 +1,174 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"PO-Revision-Date: 2014-11-30 23:19+0900\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+msgid ""
+"---\n"
+"title: drndump\n"
+"layout: en\n"
+"---"
+msgstr ""
+"---\n"
+"title: drndump\n"
+"layout: ja\n"
+"---"
+
+msgid ""
+"* TOC\n"
+"{:toc}"
+msgstr ""
+
+msgid "## Abstract {#abstract}"
+msgstr "## 概要 {#abstract}"
+
+msgid ""
+"`drndump` extracts all schema, records, and index definitions of a dataset in "
+"a Droonga cluster."
+msgstr "`drndump`は、指定されたDroongaクラスタ内の特定のデータセットについて、全てのスキーマ定義、レコード、およびインデックスの定義を抽出します。"
+
+msgid ""
+"For example, if there is a Droonga Engine node `192.168.100.50` and you are lo"
+"gged in to a computer `192.168.100.10` in the same network segment, the comman"
+"d line to extract all data in the cluster is:"
+msgstr ""
+"例えば、`192.168.100.50`というDroonga Engineノードがあり、同一ネットワークセグメント内のコンピュータ`192.168.100."
+"10`にログインしている場合、クラスタ内の全てのデータを抽出するコマンド列は以下のようになります:"
+
+msgid ""
+"~~~\n"
+"(on 192.168.100.10)\n"
+"$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10\n"
+"{\n"
+"  \"type\": \"table_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"name\": \"Location\",\n"
+"    \"flags\": \"TABLE_PAT_KEY\",\n"
+"    \"key_type\": \"WGS84GeoPoint\"\n"
+"  }\n"
+"}\n"
+"{\n"
+"  \"type\": \"table_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"name\": \"Store\",\n"
+"    \"flags\": \"TABLE_PAT_KEY\",\n"
+"    \"key_type\": \"ShortText\"\n"
+"  }\n"
+"}\n"
+"...\n"
+"{\n"
+"  \"type\": \"column_create\",\n"
+"  \"dataset\": \"Default\",\n"
+"  \"body\": {\n"
+"    \"table\": \"Term\",\n"
+"    \"name\": \"store_name\",\n"
+"    \"type\": \"Store\",\n"
+"    \"flags\": \"COLUMN_INDEX|WITH_POSITION\",\n"
+"    \"source\": \"name\"\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"The output of this command is valid messages to restore same data to another D"
+"roonga cluster.\n"
+"In other words, this command can create a complete backup of a Droonga cluster"
+"."
+msgstr ""
+"このコマンドの出力は、別のDroongaクラスタに同じデータを復元することのできる妥当なメッセージの一覧です。\n"
+"言い換えると、このコマンドはあるDroongaクラスタの完全なバックアップを作成することができます。"
+
+msgid "You can save the output as a file by redirection like:"
+msgstr "出力はリダイレクトを使って以下のようにファイルに保存できます:"
+
+msgid ""
+"~~~\n"
+"(on 192.168.100.10)\n"
+"$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \\\n"
+"    > dump.jsons\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"You can restore the dataset from a dump output, using [`droonga-request` comma"
+"nd](../droonga-request/) or [`droonga-send` command](../droonga-send/).\n"
+"See also both descriptions."
+msgstr ""
+"[`droonga-request`コマンド](../droonga-request/)または[`droonga-send`コマンド](../droonga"
+"-send/)を使うと、ダンプ出力からデータセットを復元できます。\n"
+"各コマンドの説明も参照して下さい。"
+
+msgid "## Parameters {#parameters}"
+msgstr "## パラメータ {#parameters}"
+
+msgid ""
+"`--host=NAME`\n"
+": Host name of the engine node.\n"
+"  A guessed host name of the computer you are running the command, by default."
+msgstr ""
+"`--host=NAME`\n"
+": メッセージの送信先となるEngineノードのホスト名。\n"
+"  既定値は、コマンドを実行しているコンピュータ自身の推測されたホスト名です。"
+
+msgid ""
+"`--port=PORT`\n"
+": Port number to communicate with the engine.\n"
+"  `10031` by default."
+msgstr ""
+"`--port=PORT`\n"
+": Engineノードとの通信に使うポート番号。\n"
+"  既定値は`10031`です。"
+
+msgid ""
+"`--tag=TAG`\n"
+": Tag name to communicate with the engine.\n"
+"  `droonga` by default."
+msgstr ""
+"`--tag=TAG`\n"
+": Engineノードとの通信に使うタグ名。\n"
+"  既定値は`droonga`です。"
+
+msgid ""
+"`--dataset=NAME`\n"
+": Dataset name to be dumped.\n"
+"  `Default` by default."
+msgstr ""
+"`--dataset=NAME`\n"
+": ダンプ出力するデータセットの名前。\n"
+"  既定値は`Default`です。"
+
+msgid ""
+"`--receiver-host=NAME`\n"
+": Host name of the computer you are running this command.\n"
+"  A guessed host name of the computer, by default."
+msgstr ""
+"`--receiver-host=NAME`\n"
+": このコマンドを実行しているコンピュータのホスト名。\n"
+"  既定値は、そのコンピュータのホスト名として推測される名前です。"
+
+msgid ""
+"`--help`\n"
+": Shows the usage of the command."
+msgstr ""
+"`--help`\n"
+": コマンドの使い方の説明を表示します。"
+
+msgid "## How to install {#install}"
+msgstr "## インストール方法 {#install}"
+
+msgid "This is installed as a part of a rubygems package `drndump`."
+msgstr "このコマンドは、Rubygemsのパッケージ`drndump`の一部としてインストールされます。"
+
+msgid ""
+"~~~\n"
+"# gem install drndump\n"
+"~~~"
+msgstr ""

  Added: ja/reference/1.1.0/command-line-tools/drndump/index.md (+107 -0) 100644
===================================================================
--- /dev/null
+++ ja/reference/1.1.0/command-line-tools/drndump/index.md    2015-05-07 20:54:28 +0900 (45eeed2)
@@ -0,0 +1,107 @@
+---
+title: drndump
+layout: ja
+---
+
+{% comment %}
+##############################################
+  THIS FILE IS AUTOMATICALLY GENERATED FROM
+  "_po/ja/reference/1.1.0/command-line-tools/drndump/index.po"
+  DO NOT EDIT THIS FILE MANUALLY!
+##############################################
+{% endcomment %}
+
+
+* TOC
+{:toc}
+
+## 概要 {#abstract}
+
+`drndump`は、指定されたDroongaクラスタ内の特定のデータセットについて、全てのスキーマ定義、レコード、およびインデックスの定義を抽出します。
+
+例えば、`192.168.100.50`というDroonga Engineノードがあり、同一ネットワークセグメント内のコンピュータ`192.168.100.10`にログインしている場合、クラスタ内の全てのデータを抽出するコマンド列は以下のようになります:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Location",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "WGS84GeoPoint"
+  }
+}
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Store",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "ShortText"
+  }
+}
+...
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Term",
+    "name": "store_name",
+    "type": "Store",
+    "flags": "COLUMN_INDEX|WITH_POSITION",
+    "source": "name"
+  }
+}
+~~~
+
+このコマンドの出力は、別のDroongaクラスタに同じデータを復元することのできる妥当なメッセージの一覧です。
+言い換えると、このコマンドはあるDroongaクラスタの完全なバックアップを作成することができます。
+
+出力はリダイレクトを使って以下のようにファイルに保存できます:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \
+    > dump.jsons
+~~~
+
+[`droonga-request`コマンド](../droonga-request/)または[`droonga-send`コマンド](../droonga-send/)を使うと、ダンプ出力からデータセットを復元できます。
+各コマンドの説明も参照して下さい。
+
+
+## パラメータ {#parameters}
+
+`--host=NAME`
+: メッセージの送信先となるEngineノードのホスト名。
+  既定値は、コマンドを実行しているコンピュータ自身の推測されたホスト名です。
+
+`--port=PORT`
+: Engineノードとの通信に使うポート番号。
+  既定値は`10031`です。
+
+`--tag=TAG`
+: Engineノードとの通信に使うタグ名。
+  既定値は`droonga`です。
+
+`--dataset=NAME`
+: ダンプ出力するデータセットの名前。
+  既定値は`Default`です。
+
+`--receiver-host=NAME`
+: このコマンドを実行しているコンピュータのホスト名。
+  既定値は、そのコンピュータのホスト名として推測される名前です。
+
+`--help`
+: コマンドの使い方の説明を表示します。
+
+
+## インストール方法 {#install}
+
+このコマンドは、Rubygemsのパッケージ`drndump`の一部としてインストールされます。
+
+~~~
+# gem install drndump
+~~~
+

  Added: ja/reference/1.1.1/command-line-tools/drndump/index.md (+107 -0) 100644
===================================================================
--- /dev/null
+++ ja/reference/1.1.1/command-line-tools/drndump/index.md    2015-05-07 20:54:28 +0900 (5fa4f47)
@@ -0,0 +1,107 @@
+---
+title: drndump
+layout: ja
+---
+
+{% comment %}
+##############################################
+  THIS FILE IS AUTOMATICALLY GENERATED FROM
+  "_po/ja/reference/1.1.1/command-line-tools/drndump/index.po"
+  DO NOT EDIT THIS FILE MANUALLY!
+##############################################
+{% endcomment %}
+
+
+* TOC
+{:toc}
+
+## 概要 {#abstract}
+
+`drndump`は、指定されたDroongaクラスタ内の特定のデータセットについて、全てのスキーマ定義、レコード、およびインデックスの定義を抽出します。
+
+例えば、`192.168.100.50`というDroonga Engineノードがあり、同一ネットワークセグメント内のコンピュータ`192.168.100.10`にログインしている場合、クラスタ内の全てのデータを抽出するコマンド列は以下のようになります:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Location",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "WGS84GeoPoint"
+  }
+}
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Store",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "ShortText"
+  }
+}
+...
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Term",
+    "name": "store_name",
+    "type": "Store",
+    "flags": "COLUMN_INDEX|WITH_POSITION",
+    "source": "name"
+  }
+}
+~~~
+
+このコマンドの出力は、別のDroongaクラスタに同じデータを復元することのできる妥当なメッセージの一覧です。
+言い換えると、このコマンドはあるDroongaクラスタの完全なバックアップを作成することができます。
+
+出力はリダイレクトを使って以下のようにファイルに保存できます:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \
+    > dump.jsons
+~~~
+
+[`droonga-request`コマンド](../droonga-request/)または[`droonga-send`コマンド](../droonga-send/)を使うと、ダンプ出力からデータセットを復元できます。
+各コマンドの説明も参照して下さい。
+
+
+## パラメータ {#parameters}
+
+`--host=NAME`
+: メッセージの送信先となるEngineノードのホスト名。
+  既定値は、コマンドを実行しているコンピュータ自身の推測されたホスト名です。
+
+`--port=PORT`
+: Engineノードとの通信に使うポート番号。
+  既定値は`10031`です。
+
+`--tag=TAG`
+: Engineノードとの通信に使うタグ名。
+  既定値は`droonga`です。
+
+`--dataset=NAME`
+: ダンプ出力するデータセットの名前。
+  既定値は`Default`です。
+
+`--receiver-host=NAME`
+: このコマンドを実行しているコンピュータのホスト名。
+  既定値は、そのコンピュータのホスト名として推測される名前です。
+
+`--help`
+: コマンドの使い方の説明を表示します。
+
+
+## インストール方法 {#install}
+
+このコマンドは、Rubygemsのパッケージ`drndump`の一部としてインストールされます。
+
+~~~
+# gem install drndump
+~~~
+

  Added: reference/1.1.0/command-line-tools/drndump/index.md (+98 -0) 100644
===================================================================
--- /dev/null
+++ reference/1.1.0/command-line-tools/drndump/index.md    2015-05-07 20:54:28 +0900 (6d5adb2)
@@ -0,0 +1,98 @@
+---
+title: drndump
+layout: en
+---
+
+* TOC
+{:toc}
+
+## Abstract {#abstract}
+
+`drndump` extracts all schema, records, and index definitions of a dataset in a Droonga cluster.
+
+For example, if there is a Droonga Engine node `192.168.100.50` and you are logged in to a computer `192.168.100.10` in the same network segment, the command line to extract all data in the cluster is:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Location",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "WGS84GeoPoint"
+  }
+}
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Store",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "ShortText"
+  }
+}
+...
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Term",
+    "name": "store_name",
+    "type": "Store",
+    "flags": "COLUMN_INDEX|WITH_POSITION",
+    "source": "name"
+  }
+}
+~~~
+
+The output of this command is valid messages to restore same data to another Droonga cluster.
+In other words, this command can create a complete backup of a Droonga cluster.
+
+You can save the output as a file by redirection like:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \
+    > dump.jsons
+~~~
+
+You can restore the dataset from a dump output, using [`droonga-request` command](../droonga-request/) or [`droonga-send` command](../droonga-send/).
+See also both descriptions.
+
+
+## Parameters {#parameters}
+
+`--host=NAME`
+: Host name of the engine node.
+  A guessed host name of the computer you are running the command, by default.
+
+`--port=PORT`
+: Port number to communicate with the engine.
+  `10031` by default.
+
+`--tag=TAG`
+: Tag name to communicate with the engine.
+  `droonga` by default.
+
+`--dataset=NAME`
+: Dataset name to be dumped.
+  `Default` by default.
+
+`--receiver-host=NAME`
+: Host name of the computer you are running this command.
+  A guessed host name of the computer, by default.
+
+`--help`
+: Shows the usage of the command.
+
+
+## How to install {#install}
+
+This is installed as a part of a rubygems package `drndump`.
+
+~~~
+# gem install drndump
+~~~
+

  Added: reference/1.1.1/command-line-tools/drndump/index.md (+98 -0) 100644
===================================================================
--- /dev/null
+++ reference/1.1.1/command-line-tools/drndump/index.md    2015-05-07 20:54:28 +0900 (6d5adb2)
@@ -0,0 +1,98 @@
+---
+title: drndump
+layout: en
+---
+
+* TOC
+{:toc}
+
+## Abstract {#abstract}
+
+`drndump` extracts all schema, records, and index definitions of a dataset in a Droonga cluster.
+
+For example, if there is a Droonga Engine node `192.168.100.50` and you are logged in to a computer `192.168.100.10` in the same network segment, the command line to extract all data in the cluster is:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Location",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "WGS84GeoPoint"
+  }
+}
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Store",
+    "flags": "TABLE_PAT_KEY",
+    "key_type": "ShortText"
+  }
+}
+...
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Term",
+    "name": "store_name",
+    "type": "Store",
+    "flags": "COLUMN_INDEX|WITH_POSITION",
+    "source": "name"
+  }
+}
+~~~
+
+The output of this command is valid messages to restore same data to another Droonga cluster.
+In other words, this command can create a complete backup of a Droonga cluster.
+
+You can save the output as a file by redirection like:
+
+~~~
+(on 192.168.100.10)
+$ drndump --host 192.168.100.50 --receiver-host 192.168.100.10 \
+    > dump.jsons
+~~~
+
+You can restore the dataset from a dump output, using [`droonga-request` command](../droonga-request/) or [`droonga-send` command](../droonga-send/).
+See also both descriptions.
+
+
+## Parameters {#parameters}
+
+`--host=NAME`
+: Host name of the engine node.
+  A guessed host name of the computer you are running the command, by default.
+
+`--port=PORT`
+: Port number to communicate with the engine.
+  `10031` by default.
+
+`--tag=TAG`
+: Tag name to communicate with the engine.
+  `droonga` by default.
+
+`--dataset=NAME`
+: Dataset name to be dumped.
+  `Default` by default.
+
+`--receiver-host=NAME`
+: Host name of the computer you are running this command.
+  A guessed host name of the computer, by default.
+
+`--help`
+: Shows the usage of the command.
+
+
+## How to install {#install}
+
+This is installed as a part of a rubygems package `drndump`.
+
+~~~
+# gem install drndump
+~~~
+
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index