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