Software /
code /
prosody-modules
File
mod_migrate/README.markdown @ 1813:f02f52a2ee11
mod_migrate: Add support for migrating archives
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 Sep 2015 10:59:43 +0200 |
parent | 1812:22b799c7b50a |
child | 1814:7b4e841dcd77 |
line wrap: on
line source
--- summary: prosodyctl cross storage driver migration tool ... Description =========== This module adds a command to `prosodyctl` for copying data between storage drivers. Usage: Usage: prosodyctl mod_migrate example.com <source-store>[-<store-type>] <target-driver> [users]* `<source-store>` would be e.g. `accounts` or `private`. To migrate archives, the optional suffix `<store-type>` would be set to `archive`, so e.g. `archive2-archive` or `muc_log-archive`. `<target-driver>` is the storage driver to copy data to, sans the `mod_storage_` prefix. The process is something like this: 1. Decide on the future configuration and add for example SQL connection details to your prosody config, but don't change the `store` option yet. 2. With Prosody shut down, run `prosodyctl mod_migrate example.com accounts sql` 3. Repeat for each store, substituting 'accounts'. E.g. vcards, private... 4. Change the [`storage` configuration](https://prosody.im/doc/storage) to use the new driver. 5. Start prosody again. Examples ======== for store in accounts roster private blocklist vcard archive2-archive; do prosodyctl migrate example.com $store sql2 done Compatibility ============= Should work with 0.8 and later.