Software / code / prosody-modules
Comparison
mod_migrate/README.markdown @ 2481:854aaa1f01b2
mod_migrate/README: Document the ability to specify multiple comma separated stores to migrate
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 02 Feb 2017 20:19:37 +0100 |
| parent | 1976:cd36e5bf00b3 |
| child | 2824:e4b04c0c4b15 |
comparison
equal
deleted
inserted
replaced
| 2480:c98b37d6d86c | 2481:854aaa1f01b2 |
|---|---|
| 13 | 13 |
| 14 prosodyctl mod_migrate example.com <source-store>[-<store-type>] <target-driver> [users]* | 14 prosodyctl mod_migrate example.com <source-store>[-<store-type>] <target-driver> [users]* |
| 15 | 15 |
| 16 `<source-store>` would be e.g. `accounts` or `private`. To migrate | 16 `<source-store>` would be e.g. `accounts` or `private`. To migrate |
| 17 archives, the optional suffix `<store-type>` would be set to `archive`, | 17 archives, the optional suffix `<store-type>` would be set to `archive`, |
| 18 so e.g. `archive2-archive` or `muc_log-archive`. | 18 so e.g. `archive2-archive` or `muc_log-archive`. Multiple stores can be |
| 19 given if separated by commas. | |
| 19 | 20 |
| 20 `<target-driver>` is the storage driver to copy data to, sans the | 21 `<target-driver>` is the storage driver to copy data to, sans the |
| 21 `mod_storage_` prefix. | 22 `mod_storage_` prefix. |
| 22 | 23 |
| 23 The process is something like this: | 24 The process is something like this: |
| 34 5. Start prosody again. | 35 5. Start prosody again. |
| 35 | 36 |
| 36 Examples | 37 Examples |
| 37 ======== | 38 ======== |
| 38 | 39 |
| 39 for store in accounts roster private blocklist vcard archive2-archive; do | 40 ``` sh |
| 40 prosodyctl migrate example.com $store sql | 41 prosodyctl migrate example.com accounts,roster,private,vcard sql |
| 41 done | 42 ``` |
| 42 | 43 |
| 43 Compatibility | 44 Compatibility |
| 44 ============= | 45 ============= |
| 45 | 46 |
| 46 Should work with 0.8 and later. | 47 Should work with 0.8 and later. |