comparison mod_storage_xmlarchive/README.markdown @ 2815:d48d4d9ccae7

mod_storage_xmlarchive: Add a prosodyctl command for migrating to/from the internal storage format
author Kim Alvefur <zash@zash.se>
date Thu, 09 Nov 2017 13:42:35 +0100
parents 33e85070dc60
children f052b62c653c
comparison
equal deleted inserted replaced
2814:1ffbd73c54ba 2815:d48d4d9ccae7
43 ------ --------------- 43 ------ ---------------
44 0.10 Works 44 0.10 Works
45 0.9 Should work 45 0.9 Should work
46 0.8 Does not work 46 0.8 Does not work
47 ------ --------------- 47 ------ ---------------
48
49 Conversion to or from internal storage
50 --------------------------------------
51
52 This module stores data in a way that overlaps with the more recent
53 archive support in `mod_storage_internal`, meaning eg [mod\_migrate]
54 will not be able to cleanly convert to or from the `xmlarchive` format.
55
56 To mitigate this, an migration command has been added to
57 `mod_storage_xmlarchive`:
58
59 ``` bash
60 prosodyctl mod_storage_xmlarchive convert $DIR internal $STORE $JID
61 ```
62
63 Where `$DIR` is `to` or `from`, `$STORE` is eg `archive` or `archive2`
64 for MAM and `muc_log` for MUC logs. Finally, `$JID` is the JID of the
65 user or MUC room to me migrated, which can be repeated.