Software /
code /
prosody
Comparison
tools/migration/prosody-migrator.lua @ 12165:79a51a48bdaf
migrator: Also migrate host/non-user archive data
Needed for things like mod_http_file_share
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Jan 2022 15:52:50 +0100 |
parent | 12164:85f03b29ec72 |
child | 12166:39483b4099b4 |
comparison
equal
deleted
inserted
replaced
12164:85f03b29ec72 | 12165:79a51a48bdaf |
---|---|
200 | 200 |
201 local origin = assert(input_driver:open(store, typ)); | 201 local origin = assert(input_driver:open(store, typ)); |
202 local destination = assert(output_driver:open(store, typ)); | 202 local destination = assert(output_driver:open(store, typ)); |
203 | 203 |
204 local migrate = assert(migrate_once[typ], "Unknown store type: "..typ); | 204 local migrate = assert(migrate_once[typ], "Unknown store type: "..typ); |
205 if typ == "keyval" then -- host data | 205 |
206 migrate(origin, destination, nil); | 206 migrate(origin, destination, nil); -- host data |
207 end | |
208 | 207 |
209 for user in users(origin, host) do | 208 for user in users(origin, host) do |
210 migrate(origin, destination, user); | 209 migrate(origin, destination, user); |
211 end | 210 end |
212 end | 211 end |