mod_migrate/README.wiki
changeset 1807 4d73a1a6ba68
parent 1806 0ab737feada6
child 1808 3228fb928a93
equal deleted inserted replaced
1806:0ab737feada6 1807:4d73a1a6ba68
     1 #summary prosodyctl cross storage driver migration tool
       
     2 
       
     3 = Description =
       
     4 
       
     5 This module adds a command to `prosodyctl` for copying data between storage drivers.
       
     6 
       
     7 Usage: {{{prosodyctl mod_migrate example.com <source-store> <targer-driver> [users]*}}}
       
     8 
       
     9 `<source-store>` would be e.g. `accounts` or `private`
       
    10 
       
    11 `<target-driver>` is the storage driver to copy data to, sans the `mod_storage_` prefix.
       
    12 
       
    13 The process is something like this:
       
    14 
       
    15 1. Decide on the future configuration and add this to your prosody config.
       
    16 2. With Prosody shut down, run `prosodyctl mod_migrate example.com accounts sql`
       
    17 3. Repeat for each store, substituting 'accounts'.  E.g. vcards, private...
       
    18 4. Change the `storage` configuration to use the new driver.
       
    19 5. Start prosody again.