Mercurial > prosody-hg
diff tools/migration/migrator.cfg.lua @ 10003:4d702f0c6273
migrator: Rewrite to use storage modules
This allows migrating to and from any storage module that supports the
right methods. Based on experimental mod_migrate work.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 05 May 2019 21:32:34 +0200 |
| parents | 9a12fc2baa37 |
| children | 33e856c65033 |
line wrap: on
line diff
--- a/tools/migration/migrator.cfg.lua Sun May 05 16:26:01 2019 +0200 +++ b/tools/migration/migrator.cfg.lua Sun May 05 21:32:34 2019 +0200 @@ -1,12 +1,38 @@ local data_path = "../../data"; +local vhost = { + "accounts", + "account_details", + "roster", + "vcard", + "private", + "blocklist", + "privacy", + "archive-archive", + "offline-archive", + "pubsub_nodes", + -- "pubsub_*-archive", + "pep", + -- "pep_*-archive", +} +local muc = { + "persistent", + "config", + "state", + "muc_log-archive", +}; + input { - type = "prosody_files"; + hosts = { + ["example.com"] = vhost; + ["conference.example.com"] = muc; + }; + type = "internal"; path = data_path; } output { - type = "prosody_sql"; + type = "sql"; driver = "SQLite3"; database = data_path.."/prosody.sqlite"; } @@ -14,11 +40,11 @@ --[[ input { - type = "prosody_files"; + type = "internal"; path = data_path; } output { - type = "prosody_sql"; + type = "sql"; driver = "SQLite3"; database = data_path.."/prosody.sqlite"; }
