Kim Alvefur
43351d2b54
Spelling: Fix various spelling mistakes (thanks timeless)
...
Words, sometimes I wonder how they even work
Maybe I missed something.
4 years ago
Kim Alvefur
2f2551e6d2
migrator: Add an escape hatch to allow arbitrary config options
...
Previously only SQL settings and the 'path' for internal storage could
be set, and only for SQL and internal storage.
input {
type = "whatever";
config = {
whatever_foobar = "something"
}
}
2 years ago
Kim Alvefur
918bb97dd5
migrator: Add mod_http_file_share example to config template
2 years ago
Kim Alvefur
607bfafe36
migrator: Update default config template with new stores
...
* mod_authz_internal adds account_roles
* mod_cron has its state
* mod_smacks also has some non-critical state
2 years ago
Kim Alvefur
1541284108
tools: Update imports to use new prosody.* namespace
3 years ago
Kim Alvefur
3854d0c090
migrator: Support pubsub and pep as a special-case
...
This sorta overloads the type suffix but PEP is used for enough stuff
to justify this hack
4 years ago
Kim Alvefur
f04a5512a7
migrator: Enhance logging
4 years ago
Kim Alvefur
b21bc2b374
migrator: Add option to keep going despite errors
4 years ago
Kim Alvefur
07c3f35ab8
migrator: Also migrate host/non-user archive data
...
Needed for things like mod_http_file_share
4 years ago
Kim Alvefur
e9b2be9e44
migrator: Refactor out individual item migrator for code deduplication
4 years ago
Kim Alvefur
25a9fd3fdd
migrator: Include --options in usage info
4 years ago
Kim Alvefur
bf60d226b8
migrator: Reuse earlier usage text
4 years ago
Kim Alvefur
6852806c10
migrator: Customise cli argument parsing (--help, --verbose)
...
Previously -v etc would do nothing and --config without argument would
not have worked correctly.
4 years ago
Kim Alvefur
d1fe0504e7
migrator: Silence assert in core.moduleapi
...
The assert triggers because we're not loading the stanza route, because
we are unlikely to need it during migration.
5 years ago
Kim Alvefur
f98cf38994
migrator: Use parsed command line flags already parsed by util.startup
5 years ago
Kim Alvefur
08e7a84274
migrator: Trick net.server into thinking the config is loaded
...
Fixes "Loading outside Prosody or Prosody not yet initialized"
5 years ago
Kim Alvefur
cc0f3b6f24
migrator: Customise startup sequence to fix #1673 (Thanks acidsys)
...
Diverge from util.startup.prosodyctl() in order to skip unneeded
behavior, such as loading the *Prosody* config file, which we do not
need here, based on the `--config` flag which should point at the
migrator config file instead.
Notably removed:
* read_config() since this loads the Prosody config
* check_unwriteable() which checks logfiles specified in the Prosody config, so not relevant
* make_dummy_hosts() but the migrator sets up its own hosts during migration
5 years ago
Kim Alvefur
25685a3d1b
migrator: Don't create unused directory
...
I guess this contained the old per-store migrators
6 years ago
Kim Alvefur
8dceed3e9e
migrator: Inject data- and plugin paths during build
...
Same way as with the prosody and prosodyctl executables
6 years ago
Kim Alvefur
037fc25b4c
migrator: Add support for archives ( fixes #651 )
7 years ago
Kim Alvefur
6041d3e4e8
migrator: Rewrite to use storage modules
...
This allows migrating to and from any storage module that supports the
right methods. Based on experimental mod_migrate work.
7 years ago
Kim Alvefur
91baabfede
SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only ( fixes #885 )
9 years ago
Kim Alvefur
699dab7c6d
migration/prosody_sql: Commit transaction when all items have been processed
9 years ago
Kim Alvefur
6b3a33a083
migrator/prosody_sql: Abort and demand database be upgraded if it needs to be ( #635 )
9 years ago
Kim Alvefur
8a7bc589b3
migrator.prosody_sql: Switch to util.sql ( #635 )
9 years ago
Kim Alvefur
8716255d0c
migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?)
9 years ago
Kim Alvefur
fc7dadb6a7
migrator: Fix missing word
9 years ago
Kim Alvefur
00b6eff872
migrator: Fix argument parsing
9 years ago
Kim Alvefur
ff26455099
migrator: Unexpand whitespace
9 years ago
Kim Alvefur
0a385a3953
tools/migration/migrator/*: Remove use of module()
9 years ago
Kim Alvefur
f0918f4e1b
migrator: Remove wrapper around envloadfile since envloadfile does the right thing in a compatible way
9 years ago
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
10 years ago
Matthew Wild
83ca1bd5d1
configure, Makefile: Add --libdir option to ./configure, allowing you to override the $PREFIX/lib/ default. Fixes #470 .
11 years ago
Waqas Hussain
814d446911
tools/migration/migrator/prosody_files: Fix undefined global access of ‘error’, print the actual error message and correct file path in the error message when we fail to load a file, skip broken files instead of failing migration.
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Kim Alvefur
4d156831cb
tools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)
13 years ago
Waqas Hussain
20a28d166c
tools/migration/migrator/jabberd14: Use util.xml.
13 years ago
Florian Zeitz
d49b9bc2ab
Eliminate direct setfenv usage
14 years ago
Waqas Hussain
a329f8193f
migrator/jabberd14: Minor refactoring.
14 years ago
Waqas Hussain
5785bdb7b6
migrator/jabberd14: Support for reading jabberd14 spool files.
14 years ago
Matthew Wild
27bc9300b8
migrator/prosody_sql.lua: Create (and upgrade) MySQL tables to use MEDIUMTEXT for the 'value' column to avoid truncation
15 years ago
Matthew Wild
aded9653e0
migrator/prosody_files: Don't choke on empty data stores for a user (thanks @eoranged )
15 years ago
Matthew Wild
32c5970584
tools/migration/migrator/prosody_sql.lua: Fix compatibility with PostgreSQL (thanks Timo)
15 years ago
Matthew Wild
f9191fdb2c
tools/migration/migrator/prosody_files.lua: Fix for previous commit
15 years ago
Matthew Wild
747f5e7ccf
tools/migration/prosody-migrator.lua: Add messages to show when migration is in progress
15 years ago
Matthew Wild
667fc392e9
tools/migration: Support for ~/ in paths
15 years ago
Matthew Wild
0e4599d1b5
tools/migration/prosody-migrator.lua: Refactor store handler loading to report errors they throw
15 years ago
Matthew Wild
cef7f598c0
tools/migration/migrator/prosody_sql: Throw a friendlier error when LuaDBI is not found
15 years ago
Matthew Wild
1f049ed80d
tools/migration: Rename main.lua -> prosody-migrator.lua and update the Makefile
15 years ago
Matthew Wild
2c97611fed
migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
15 years ago