You can easily copy data between Tigase compatible repositories that is repositories for which there is a database connector. However, it is not that easy to import data from an external source. Therefore a simple data import functionality has been added to repository utilities package.
5
8
skipped 74 lines
80
83
LINES TERMINATED BY '\n'
81
84
FROM test_table;
82
85
86
+
Importing User Data with XEP-0227: Portable Import/Export Format
You can easily import data exported from another XMPP server (or exported for Tigase XMPP Server, see below) using XEP-0227: Portable Import/Export Format.
90
+
91
+
To import data, you need to have Tigase XMPP Server configured but stopped and files containing exported data stored in some location (in our case in directory ``xep-0227-data`` stored inside Tigase XMPP Server installation directory) on the same server as Tigase XMPP Server.
92
+
93
+
Now to import data to your repository you simply execute the command:
That will import all data including data from MIX, MUC, and PubSub component as well as data specified in XEP-0227.
100
+
101
+
*Note, if your data is located at a different place you will need to adjust ``--from`` parameter value.
102
+
103
+
To list all of the options available for importing data (ie. allowing to import data from MIX, MUC, PubSub, or excluding MAM data), you should execute following command:
You can easily export data from Tigase XMPP Server to the XML files using XEP-0227: Portable Import/Export Format.
154
+
155
+
To export data you need to execute following command in the Tigase XMPP Server installation directory. We are assuming here that files will be exported to ``xep-0227-data`` directory in Tigase XMPP Server installation directory.
156
+
157
+
Now to export data from your repository you simply execute the command:
That will export all data including data from MIX, MUC, and PubSub component as well as data specified in XEP-0227.
164
+
165
+
*Note, you prefer exported data to be located in a different place you will need to adjust ``--to`` parameter value.
166
+
167
+
To list all of the options available for exporting data (ie. allowing to import data from MIX, MUC, PubSub, or excluding MAM data), you should execute following command: