Is there any recommended steps to migrate sqlite data to postgresql

  • Asked
  • Active
  • Viewed 2720 times
0

I recently installed Collect in a multi user environment using postgresql. I have old data in my Standalone Collect environment. What is a recommended steps to migrate sqlite data to postgresql?

Thanks Smith

0

Accepted answer

Dear Smith,
You have 2 options:

  1. take a complete backup of survey(s) and data from the Backup / Restore module in Collect and restore the backup in the new installation of Collect, the one using PostgreSQL
  2. export the content of the database from SQLite to SQL, using for example a software like SQLite browser, that is free, modify the generated SQL and try to restore it into PostgreSQL; the structure of databases is similar, you shouldn't have big issues (skip the part of the database/schema/tables generation while restoring it).

We suggest you to use the first option, that is probably faster.
Let us know, many thanks.
Open Foris Team

I managed to migrate the data from SQlite to PostgreSQL but it throws out error. I still cannot get it to work.

simiti simiti

Dear Smith, please try to migrate only the data to the PostgreSQL database. First of all configure Collect to work with a new PostgreSQL database, start it up and let it create an empty schema into it. Then export only the data from the SQLite database and import it into the tables of the PostgreSQL database. We will contact you to your private email address to try to help you with this.

Stefano (OF) Stefano (OF) ♦♦
0

Accepted answer

Dear Smith,
If you have a small number of surveys in your installation of Collect, the easiest thing would be to take a Backup of each survey and Restore it in the new installation of Collect.
You can easily do it from the Backup/Restore module in the application.
Many thanks,
Open Foris Team

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.