view mod_migrate/ @ 1791:8df071457dee

mod_migrate: Provides a prosodyctl mod_migrate command for copying data between storage backends
author Kim Alvefur <>
date Wed, 26 Aug 2015 18:03:31 +0200
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: {{{prosodyctl mod_migrate <source-store> <targer-driver> [users]*}}}

`<source-store>` would be e.g. `accounts` or `private`

`<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 this to your prosody config.
2. With Prosody shut down, run `prosodyctl mod_migrate accounts sql`
3. Repeat for each store, substituting 'accounts'.  E.g. vcards, private...
4. Change the `storage` configuration to use the new driver.
5. Start prosody again.