Add new feature that can be used for data migration.
Only the site-admin can export and import data.
Data exporting is downloading a file that contains json strings
are generated by data from database. Data importing is
truncating tables and inserting all data read from json strings
that is in a uploaded file.
CAUTION: TO KEEP DATA INTEGRITY, PLEASE PREVENT OTHER REQUESTS
AND DO NOT ANYTHING ELSE WHILE DOING EXPORT/IMPORT
RECOMMEND YOU THAT MAKE ENVIRONMENT THAT ONLY THE SITE-ADMIN CAN ACCESS.
e.g.) stop proxy server and run the yobi on a port that only you know.
Codes are based on mainly works of
- Keesun Baik
- Yi EungJun
Tested export and import DB and version
- H2 1.3.176 to MariaDB 10.1.10
- H2 1.3.176 to MySQM 5.6.28