Add migrator.cfg.lua
This commit is contained in:
parent
f6ce4a3b96
commit
fe06ec4034
1 changed files with 61 additions and 0 deletions
61
migrator.cfg.lua
Normal file
61
migrator.cfg.lua
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
local data_path = '/var/lib/prosody';
|
||||
|
||||
local vhost = {
|
||||
"accounts",
|
||||
"account_details",
|
||||
"account_roles",
|
||||
"roster",
|
||||
"vcard",
|
||||
"private",
|
||||
"blocklist",
|
||||
"privacy",
|
||||
"archive-archive",
|
||||
"offline-archive",
|
||||
"pubsub_nodes-pubsub",
|
||||
"pep-pubsub",
|
||||
"cron",
|
||||
"smacks_h",
|
||||
}
|
||||
local muc = {
|
||||
"persistent",
|
||||
"config",
|
||||
"state",
|
||||
"muc_log-archive",
|
||||
"cron",
|
||||
};
|
||||
local upload = {
|
||||
"uploads-archive",
|
||||
"upload_stats",
|
||||
"cron",
|
||||
}
|
||||
|
||||
input {
|
||||
hosts = {
|
||||
["example.com"] = vhost;
|
||||
["conference.example.com"] = muc;
|
||||
["share.example.com"] = upload;
|
||||
};
|
||||
type = "internal";
|
||||
path = data_path;
|
||||
}
|
||||
|
||||
output {
|
||||
type = "sql";
|
||||
driver = "SQLite3";
|
||||
database = data_path.."/prosody.sqlite";
|
||||
}
|
||||
|
||||
--[[
|
||||
|
||||
input {
|
||||
type = "internal";
|
||||
path = data_path;
|
||||
}
|
||||
output {
|
||||
type = "sql";
|
||||
driver = "SQLite3";
|
||||
database = data_path.."/prosody.sqlite";
|
||||
}
|
||||
|
||||
]]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue