Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Restoring DataBase from Backup SQL on Synology / Docker [SOLVED]

Restoring DataBase from Backup SQL on Synology / Docker [SOLVED]

Added by Alain SANNA over 2 years ago

Hi,

I run Open Project 12.1.6 on a Synology NAS with Docker.

How can I restore DataBase from SQL Backup generated by OpenProject fonctionnality ?

I can't find restore menu in administration menu (hoping  it was on same page as backup)

Do i need to use bash ? And in this case, is there a documentation to do this.

Many thank's

Alain


Replies (2)

RE: Restoring DataBase from Backup SQL on Synology / Docker - Added by Adam Szabo over 2 years ago

Hi Alain,

you will need to login to the terminal and use this documentation for docker-compose:

https://www.openproject.org/docs/installation-and-operations/operation/restoring/#docker-based-installation

Good luck and kind regards.

RE: Restoring DataBase from Backup SQL on Synology / Docker - Added by Alain SANNA over 2 years ago

Using Docker Container bash in Synology docker interface works for me !

First of all, use synology file station to create a folder <<Drive>> for exemple

Copy openproject.sql in that folder

Stop OpenProject container

Modify OpenProject container : add a mounted drive : browse <<Drive>> with <<DockerDrive>> name in container

Launch OpenProject container and wait OpenProject is running

Go to terminal tabs and add a bash

In this bash :

Give access to <<DockerDrive>> folder to everybody (especialy postgres) 

  • chmod +rwx /DockerDrive
  • chmod g+rwx /DockerDrive
  • chmod o+rwx /DockerDrive

change user to postgres : su postgres

launch psql

list postgres database : \l (should have a postgres database)

connect to postgres database : \c postgres (this is necessary to allow dropping openproject database)

Drop OpenProject database : DROP DATABASE openproject;

Create empty openproject database : CREATE DATABASE openproject OWNER openproject;

Grant acces to user postgres to openproject database : GRANT ALL PRIVILEGES ON openproject TO postgres

Connect to openproject database : \c openproject

Restaure the dump : \i /DockerDrive/openproject.sql

  • (1 - 2/2)
Loading...