Software / code / prosody-modules
Comparison
mod_storage_metronome_readonly/README.markdown @ 6173:f99f730f2b84
mod_storage_metronome_readonly: Add documentation about how to migrate a MUC domain
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 28 Jan 2025 22:27:35 +0100 |
| parent | 6168:62cd65205c70 |
comparison
equal
deleted
inserted
replaced
| 6172:983549664bd4 | 6173:f99f730f2b84 |
|---|---|
| 29 In Prosody's configuration file, set: | 29 In Prosody's configuration file, set: |
| 30 | 30 |
| 31 storage = "metronome_readonly" | 31 storage = "metronome_readonly" |
| 32 data_path = "/var/lib/metronome" | 32 data_path = "/var/lib/metronome" |
| 33 | 33 |
| 34 To run the actual migration, run this command: | 34 To run the actual migration, run these two commands (replace `<host>` with the domain you want to migrate): |
| 35 | 35 |
| 36 ./prosodyctl mod_migrate <host> roster,vcard,private,cloud_notify,pep,pep_data-archive,offline-archive,archive-archive,uploads-archive sql | 36 prosodyctl mod_migrate <host> roster,vcard,private,cloud_notify,pep,pep_data-archive,offline-archive,archive-archive,uploads-archive sql |
| 37 prosodyctl mod_migrate muc.<host> config,persistent,vcard_muc,muc_log-archive sql | |
| 37 | 38 |
| 38 It will create a file in `/var/lib/metronome/prosody.sqlite`, after which you | 39 It will create a file in `/var/lib/metronome/prosody.sqlite`, after which you |
| 39 can change your configuration file to point to it, or alternatively you can | 40 can change your configuration file to point to it, or alternatively you can |
| 40 perform a second migration to the internal storage if you prefer that. | 41 perform a second migration to the internal storage if you prefer that. |
| 41 | 42 |