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. Syncing Projects between two Servers

Syncing Projects between two Servers

Added by Frank Burkhardt over 9 years ago

Hello,

sorry, maybe i´m asking a silly question, but i´m not so familar with databases etc.

We have two OP-Servers running here with many Projects on both Servers.

Is it possible to export the projects/files from one of the Servers and import them on the other one, so that we can use only one of them? Because the DB on the Server which we would use are not empty?

Many thanks and kind Regards,
Frank


Replies (3)

RE: Syncing Projects between two Servers - Added by Oliver Jakobi about 9 years ago

Hi Frank,

since nobody answered your question, I’d like to do so from my point of view.

Taking a look at the many tables, in which openproject stores its information, I don’t quite see a good chance of “importing” projects from one server to another.
I made some test by myself a few weeks ago and - honestly - you DON’T want to do that. Period. PERIOD!
It would just take a large ammount of effort to hit all the spots necessary, to REALLY get both servers working on one of them.
Just think about work packages, time lines, etc. etc. where each an every entry would require to get a new ID and a match of other IDs, that would also have to be rewritten..

You’d make your life a lot easier, if you’d just keep on using both, but only starting new projects on the server you wish to work on in future, an shut down the “old” one, once you don’t really need the data anymore..

Who ever thinks I am wrong, please feel free to intervene.. but I’d rather not do it.

Best
Oliver

RE: Syncing Projects between two Servers - Added by Oliver Günther about 9 years ago

Hey Frank,

Oliver already mentioned, this is possible from a technical standpoint, but restoring a complete database onto an existing one is not straightforward due to the shifts in primary keys.

As a hack if you’re experienced in Rails is to fetch all models on the old database, reset the connection to the new server and try to save them on the new one. It still involves fiddling with the primary keys, though,
but you could likely save them alongside their associations (time entries, etc.).

Best,
Oliver

RE: Syncing Projects between two Servers - Added by Frank Burkhardt about 9 years ago

Dear Oliver(both of you ;-)),

many thanks for your point of view and your answers to my question.

I think it is the best way for me, what Oliver mentioned, to work with both servers and create new projects only there etc. Because the restore process seems to comlex and time consuming for me.

Best Regards,
Frank

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