[Groonga-commit] droonga/droonga.org at 00f8bcc [gh-pages] Wriet more topics for dump-restore

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon May 26 18:46:59 JST 2014


YUKI Hiroshi	2014-05-26 18:46:59 +0900 (Mon, 26 May 2014)

  New Revision: 00f8bcc175ac26a9110066915b7143e84e2f0cc1
  https://github.com/droonga/droonga.org/commit/00f8bcc175ac26a9110066915b7143e84e2f0cc1

  Message:
    Wriet more topics for dump-restore

  Modified files:
    _po/ja/tutorial/1.0.3/restore/index.po
    ja/tutorial/1.0.3/restore/index.md
    tutorial/1.0.3/restore/index.md

  Modified: _po/ja/tutorial/1.0.3/restore/index.po (+32 -26)
===================================================================
--- _po/ja/tutorial/1.0.3/restore/index.po    2014-05-26 18:37:46 +0900 (854ab89)
+++ _po/ja/tutorial/1.0.3/restore/index.po    2014-05-26 18:46:59 +0900 (f1e8b76)
@@ -72,8 +72,8 @@ msgid ""
 "    drndump 1.0.0"
 msgstr ""
 
-msgid "### Backup data as a dump result"
-msgstr "## Droongaクラスタのデータをバックアップする"
+msgid "### Dump all data in a Droonga cluster"
+msgstr "### Droongaクラスタ内のデータをダンプする"
 
 msgid ""
 "The `drndump` command extracts all schema and data as JSONs.\n"
@@ -82,37 +82,26 @@ msgstr ""
 
 msgid ""
 "For example, if your cluster is constructed from two nodes `192.168.0.10` and "
-"`192.168.0.11`, their `droonga-engine` is listening the port `10031`, there is"
-" a dataset named `Starbucks`, and now your are logged in to the host `192.168."
-"0.12` then the command line is:"
+"`192.168.0.11`, and now your are logged in to the host `192.168.0.12` then the"
+" command line is:"
 msgstr ""
 
 msgid ""
 "~~~\n"
 "# drndump --host=192.168.0.10 \\\n"
-"           --dataset=Starbucks \\\n"
 "           --receiver-host=192.168.0.12\n"
 "{\n"
 "  \"type\": \"table_create\",\n"
-"  \"dataset\": \"Starbucks\",\n"
+"  \"dataset\": \"Default\",\n"
 "  \"body\": {\n"
 "    \"name\": \"Location\",\n"
 "    \"flags\": \"TABLE_HASH_KEY\",\n"
 "    \"key_type\": \"WGS84GeoPoint\"\n"
 "  }\n"
 "}\n"
-"{\n"
-"  \"type\": \"table_create\",\n"
-"  \"dataset\": \"Starbucks\",\n"
-"  \"body\": {\n"
-"    \"name\": \"Store\",\n"
-"    \"flags\": \"TABLE_HASH_KEY\",\n"
-"    \"key_type\": \"ShortText\"\n"
-"  }\n"
-"}\n"
 "...\n"
 "{\n"
-"  \"dataset\": \"Starbucks\",\n"
+"  \"dataset\": \"Default\",\n"
 "  \"body\": {\n"
 "    \"table\": \"Store\",\n"
 "    \"key\": \"Fashion Inst of Technology - New York NY\",\n"
@@ -124,7 +113,7 @@ msgid ""
 "}\n"
 "{\n"
 "  \"type\": \"column_create\",\n"
-"  \"dataset\": \"Starbucks\",\n"
+"  \"dataset\": \"Default\",\n"
 "  \"body\": {\n"
 "    \"table\": \"Location\",\n"
 "    \"name\": \"store\",\n"
@@ -135,7 +124,7 @@ msgid ""
 "}\n"
 "{\n"
 "  \"type\": \"column_create\",\n"
-"  \"dataset\": \"Starbucks\",\n"
+"  \"dataset\": \"Default\",\n"
 "  \"body\": {\n"
 "    \"table\": \"Term\",\n"
 "    \"name\": \"store__key\",\n"
@@ -147,9 +136,26 @@ msgid ""
 "~~~"
 msgstr ""
 
+msgid "Note to these things:"
+msgstr ""
+
+msgid ""
+" * You must specify valid host name or IP address of one of nodes, via the opt"
+"ion `--host`.\n"
+" * You must specify valid host name or IP address of the computer you are logg"
+"ed in, via the option `--receiver-host`.\n"
+"   It is used by the Droonga cluster, to send messages."
+msgstr ""
+
+msgid ""
+"The result is printed to the standard output.\n"
+"To save it as a JSONs file, you'll use a redirection like:"
+msgstr ""
+
 msgid ""
-"Note, you must pecify valid host name or IP address of the computer you are lo"
-"gged in."
+"    # drndump --host=192.168.0.10 \\\n"
+"               --receiver-host=192.168.0.12 \\\n"
+"        > dump.jsons"
 msgstr ""
 
 msgid "## Restore data to a Droonga cluster"
@@ -159,13 +165,10 @@ msgid "TBD"
 msgstr ""
 
 msgid "### Install `droonga-client`"
-msgstr ""
-
-msgid "### Restore data from a dump result"
-msgstr "## Droongaクラスタのデータを復元する"
+msgstr "### `droonga-client`のインストール"
 
 msgid "### Replicate data from another Droonga cluster"
-msgstr ""
+msgstr "### 他のDroongaクラスタからデータを複製する"
 
 msgid "## Conclusion"
 msgstr "## まとめ"
@@ -179,3 +182,6 @@ msgid ""
 "  [Groonga]: http://groonga.org/\n"
 "  [command reference]: ../../reference/commands/"
 msgstr ""
+
+msgid "### Restore data from a dump result"
+msgstr "## ダンプ結果からデータを復元する"

  Modified: ja/tutorial/1.0.3/restore/index.md (+20 -20)
===================================================================
--- ja/tutorial/1.0.3/restore/index.md    2014-05-26 18:37:46 +0900 (5e01a26)
+++ ja/tutorial/1.0.3/restore/index.md    2014-05-26 18:46:59 +0900 (e3eff45)
@@ -42,38 +42,28 @@ After that, establish that the `drndump` command has been installed successfully
     # drndump --version
     drndump 1.0.0
 
-## Droongaクラスタのデータをバックアップする
+### Droongaクラスタ内のデータをダンプする
 
 The `drndump` command extracts all schema and data as JSONs.
 Let's dump contents of existing your Droonga cluster.
 
-For example, if your cluster is constructed from two nodes `192.168.0.10` and `192.168.0.11`, their `droonga-engine` is listening the port `10031`, there is a dataset named `Starbucks`, and now your are logged in to the host `192.168.0.12` then the command line is:
+For example, if your cluster is constructed from two nodes `192.168.0.10` and `192.168.0.11`, and now your are logged in to the host `192.168.0.12` then the command line is:
 
 ~~~
 # drndump --host=192.168.0.10 \
-           --dataset=Starbucks \
            --receiver-host=192.168.0.12
 {
   "type": "table_create",
-  "dataset": "Starbucks",
+  "dataset": "Default",
   "body": {
     "name": "Location",
     "flags": "TABLE_HASH_KEY",
     "key_type": "WGS84GeoPoint"
   }
 }
-{
-  "type": "table_create",
-  "dataset": "Starbucks",
-  "body": {
-    "name": "Store",
-    "flags": "TABLE_HASH_KEY",
-    "key_type": "ShortText"
-  }
-}
 ...
 {
-  "dataset": "Starbucks",
+  "dataset": "Default",
   "body": {
     "table": "Store",
     "key": "Fashion Inst of Technology - New York NY",
@@ -85,7 +75,7 @@ For example, if your cluster is constructed from two nodes `192.168.0.10` and `1
 }
 {
   "type": "column_create",
-  "dataset": "Starbucks",
+  "dataset": "Default",
   "body": {
     "table": "Location",
     "name": "store",
@@ -96,7 +86,7 @@ For example, if your cluster is constructed from two nodes `192.168.0.10` and `1
 }
 {
   "type": "column_create",
-  "dataset": "Starbucks",
+  "dataset": "Default",
   "body": {
     "table": "Term",
     "name": "store__key",
@@ -107,23 +97,33 @@ For example, if your cluster is constructed from two nodes `192.168.0.10` and `1
 }
 ~~~
 
-Note, you must pecify valid host name or IP address of the computer you are logged in.
+Note to these things:
+
+ * You must specify valid host name or IP address of one of nodes, via the option `--host`.
+ * You must specify valid host name or IP address of the computer you are logged in, via the option `--receiver-host`.
+   It is used by the Droonga cluster, to send messages.
 
+The result is printed to the standard output.
+To save it as a JSONs file, you'll use a redirection like:
+
+    # drndump --host=192.168.0.10 \
+               --receiver-host=192.168.0.12 \
+        > dump.jsons
 
 
 ## Droongaクラスタのデータを復元する
 
 TBD
 
-### Install `droonga-client`
+### `droonga-client`のインストール
 
 TBD
 
-## Droongaクラスタのデータを復元する
+## ダンプ結果からデータを復元する
 
 TBD
 
-### Replicate data from another Droonga cluster
+### 他のDroongaクラスタからデータを複製する
 
 TBD
 

  Modified: tutorial/1.0.3/restore/index.md (+92 -2)
===================================================================
--- tutorial/1.0.3/restore/index.md    2014-05-26 18:37:46 +0900 (c8d709b)
+++ tutorial/1.0.3/restore/index.md    2014-05-26 18:46:59 +0900 (fc6619a)
@@ -14,7 +14,7 @@ Learning steps to backup and restore data by your hand.
 
 * You must have an existing [Droonga][] cluster with some data.
   Please complete [the "getting started" tutorial](../groonga/) before this.
-* The `dump` plugin is registered to the `catalog.json` of your Droonga cluster.
+* The `dump` plugin must be registered to the `catalog.json` of your Droonga cluster.
   If not, you must add the plugin to the list of `plugins`, like:
   
       - "plugins": ["groonga", "crud", "search"],
@@ -22,12 +22,102 @@ Learning steps to backup and restore data by your hand.
 
 ## Backup data in a Droonga cluster
 
-TBD
+### Install `drndump`
+
+First, install a command line tool named `drndump` via rubygems:
+
+    # gem install droonga-engine
+
+After that, establish that the `drndump` command has been installed successfully:
+
+    # drndump --version
+    drndump 1.0.0
+
+### Dump all data in a Droonga cluster
+
+The `drndump` command extracts all schema and data as JSONs.
+Let's dump contents of existing your Droonga cluster.
+
+For example, if your cluster is constructed from two nodes `192.168.0.10` and `192.168.0.11`, and now your are logged in to the host `192.168.0.12` then the command line is:
+
+~~~
+# drndump --host=192.168.0.10 \
+           --receiver-host=192.168.0.12
+{
+  "type": "table_create",
+  "dataset": "Default",
+  "body": {
+    "name": "Location",
+    "flags": "TABLE_HASH_KEY",
+    "key_type": "WGS84GeoPoint"
+  }
+}
+...
+{
+  "dataset": "Default",
+  "body": {
+    "table": "Store",
+    "key": "Fashion Inst of Technology - New York NY",
+    "values": {
+      "location": "146689013x-266380405"
+    }
+  },
+  "type": "add"
+}
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Location",
+    "name": "store",
+    "type": "Store",
+    "flags": "COLUMN_INDEX",
+    "source": "location"
+  }
+}
+{
+  "type": "column_create",
+  "dataset": "Default",
+  "body": {
+    "table": "Term",
+    "name": "store__key",
+    "type": "Store",
+    "flags": "COLUMN_INDEX|WITH_POSITION",
+    "source": "_key"
+  }
+}
+~~~
+
+Note to these things:
+
+ * You must specify valid host name or IP address of one of nodes, via the option `--host`.
+ * You must specify valid host name or IP address of the computer you are logged in, via the option `--receiver-host`.
+   It is used by the Droonga cluster, to send messages.
+
+The result is printed to the standard output.
+To save it as a JSONs file, you'll use a redirection like:
+
+    # drndump --host=192.168.0.10 \
+               --receiver-host=192.168.0.12 \
+        > dump.jsons
+
 
 ## Restore data to a Droonga cluster
 
 TBD
 
+### Install `droonga-client`
+
+TBD
+
+### Restore data from a dump result
+
+TBD
+
+### Replicate data from another Droonga cluster
+
+TBD
+
 ## Conclusion
 
 In this tutorial, you did backup a [Droonga][] cluster and restore the data.
-------------- next part --------------
HTML����������������������������...
Download 



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