This module adds a command to prosodyctl
for copying
data between storage drivers.
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
.
Multiple stores can be given if separated by commas.
<target-driver>
is the storage driver to copy data
to, sans the mod_storage_
prefix.
mod_migrate
tries to request a list of users from
usermanager
, but this does not always work. If so, you can
supply usernames as arguments after the target driver.
The process is something like this:
store
option yet.prosodyctl mod_migrate example.com accounts sql
storage
configuration to use the new driver.prosodyctl mod_migrate example.com accounts,roster,private,vcard sql
Should work with 0.8 and later.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_migrate
For earlier versions see the documentation for installing 3rd party modules