Restore

From Poetry MP Wiki
Jump to navigation Jump to search

From Backup Database File

Steps:

  1. If you are running PoetryApp MP as local desktop app, just close the program. And if you are running PoetryApp MP as a hosted Website on IIS or Apache, you need to stop the Webstie or the application pool to ensure the database file is not opened.
  2. Use the backup to replace "poems.db" in sub folder "PoetryApp_Data".
  3. Start the app or the Website.

From JSON File

You had previously exported all to a JSON file, and optionally a zip file with images.

Steps:

  1. If you are running PoetryApp MP as local desktop app, just close the program. And if you are running PoetryApp MP as a hosted Website on IIS or Apache, you need to stop the Webstie or the application pool to ensure the database file is not opened.
  2. Copy "poemsSeed.db" into "poems.db', since "poemsSeed.db" is an empty database.
  3. Start the app or the Website.
  4. Login
  5. Go to "Import for DB Update/Import JSON file" and select the JSON file.
  6. Optionally go to "Import for DB Update/Import Zip File and select the zip file.
  7. Logout and then login.

Alternative Steps:

  1. Run the "Clear Database" menu item.
  2. Go to "Import for DB Update/Import JSON file" and select the JSON file.
  3. Optionally go to "Import for DB Update/Import Zip File and select the zip file.
  4. Logout and then login.