-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
How to migrate the database from Etherpad to Etherpad Lite
Etherpad Lite provides a script to convert the Etherpad MySQL database (all revisions included) into a Etherpad Lite database. This will work for all DBMS supported by Etherpad Lite. Simply follow these steps:
-
Go into your Etherpad Lite
bin
folder -
Copy the convertSettings Template
cp convertSettings.json.template convertSettings.json
-
Set the parameters of your Etherpad [old/source/original] database in convertSettings.json
-
start the convert script with
node convert.js convertSettings.json output.sql
. This script will read all data from your old database and outputs a SQL file for creating a Etherpad Lite database. This may take a while.Note: If you get a message "Error: Cannot find module 'mysql'".
npm install mysql
You may need to do this for a number of different packages, including ueberDB and async. -
You now have an SQL file generated that you can import into your new Etherpad Lite database. The steps to do this depend on the database used:
Prepare MySQL as described here.
Pipe the SQL into mysql mysql -u $YOUREPLITEUSER -p$YOUREPLITEPWD -h $YOURMYSQLHOST $YOUREPLITEDATABASE < output.sql
- Setup your new Etherpad Lite instance to work with your preferred database. (redis, mongodb...)
- Go into your Etherpad Lite base folder
- Run import script
node bin/importSqlFile.js bin/output.sql
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries