Moving all projects from disk DB to PostgreSQL DB

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Albert Hofmann

  • Posts: 71
  • Joined: Wed Feb 24, 2016 10:01 am

Moving all projects from disk DB to PostgreSQL DB

PostSat Sep 09, 2017 4:54 pm

We would like to move all our projects from the local disk databases to PostgreSQL.

The only way I found for now is to
  • manually export .drp files one project at a time,
  • switch to postgresql,
  • import the .drp files one at a time.

When multiple projects are selected, Export and Export with Stills are greyed out.

And backups as .resolve.diskdb files can only be restored to disk, not to PostgreSQL. (I suspect that Backup/restore is really just a fancy way of zipping/unzipping the Disk Database folder).

We have now moved to v. 14, and the old 12.5 projects in .xml files seem to be converted to a sqlite database when saved. Could it be possible to write a script which reads the data in the Project.db sqlite file, and copies it to Postgresql? Are both using the same database structure?
Offline

Michael Tiemann

  • Posts: 684
  • Joined: Fri Jul 05, 2013 11:22 am

Re: Moving all projects from disk DB to PostgreSQL DB

PostSun Dec 08, 2019 9:55 pm

I have this question too.
MacOS Catalina Version 10.15.7
iMac Pro (2017)
3 GHz Intel Xeon W
64GB 2666 MHz DDR4
Radeon Pro Vega 64 16 GB
RED Rocket-X
Decklink 8K Pro card feeding FSI XM310K Monitor
Offline
User avatar

Marc Wielage

  • Posts: 12715
  • Joined: Fri Oct 18, 2013 2:46 am
  • Location: Hollywood, USA

Re: Moving all projects from disk DB to PostgreSQL DB

PostMon Dec 09, 2019 2:51 am

Albert Hofmann wrote:We would like to move all our projects from the local disk databases to PostgreSQL.

It's not very intuitive, but here's how it can be done:

1) move over to the specific local disk database you need to access.

2) highlight all the projects in the Project window. Copy to clipboard (⌘C on Mac, ^C on Windows)

3) move over to the specific PosgreSQL database you want to use.

4) Paste from clipboard (⌘P on Mac, ^P on Windows).

It takes some time, but eventually all the projects will be copied over to the new database. I have found in some cases if you have folders-within-folders, you may need to copy them from the actual projects and not just the folders. It's a little unpredictable, but it can work.
Certified DaVinci Resolve Color Trainer • AdvancedColorTraining.com
Offline

Michael Tiemann

  • Posts: 684
  • Joined: Fri Jul 05, 2013 11:22 am

Re: Moving all projects from disk DB to PostgreSQL DB

PostMon Dec 09, 2019 10:54 pm

Thanks, Marc!
MacOS Catalina Version 10.15.7
iMac Pro (2017)
3 GHz Intel Xeon W
64GB 2666 MHz DDR4
Radeon Pro Vega 64 16 GB
RED Rocket-X
Decklink 8K Pro card feeding FSI XM310K Monitor
Offline
User avatar

George Atanassov

  • Posts: 19
  • Joined: Sun Jul 21, 2019 5:02 am
  • Real Name: George Atanassov

Re: Moving all projects from disk DB to PostgreSQL DB

PostWed Dec 23, 2020 1:38 pm

Thank you Marc for the answer.

This is exactly (unintuitive) the reason why I sometimes have my hairs pulled with DR.

You are the reason I still have some hairs :D
Offline

joysthokkins

  • Posts: 16
  • Joined: Fri Jun 15, 2018 8:45 am
  • Location: Budva, Montenegro
  • Real Name: Ilia Petrov

Re: Moving all projects from disk DB to PostgreSQL DB

PostWed Jan 13, 2021 6:06 pm

Thank you Marc! :!:
5950x, 32Gb RAM, Sapphire Radeon RX Vega 64
MacOS 13.6.4 DaVinci Resolve Studio 19b3
Offline

Zdenek Podsednik

  • Posts: 39
  • Joined: Tue Jul 26, 2016 9:45 pm

Re: Moving all projects from disk DB to PostgreSQL DB

PostSun Feb 07, 2021 9:12 pm

Marc Wielage wrote:
Albert Hofmann wrote:We would like to move all our projects from the local disk databases to PostgreSQL.

It's not very intuitive, but here's how it can be done:

1) move over to the specific local disk database you need to access.

2) highlight all the projects in the Project window. Copy to clipboard (⌘C on Mac, ^C on Windows)

3) move over to the specific PosgreSQL database you want to use.

4) Paste from clipboard (⌘P on Mac, ^P on Windows).

It takes some time, but eventually all the projects will be copied over to the new database. I have found in some cases if you have folders-within-folders, you may need to copy them from the actual projects and not just the folders. It's a little unpredictable, but it can work.



Thank you Marc!

Same here , couldn't figure it without it.
Davinci Resolve Studio 18.6 on LAN with Project Server 18.5:
- Mac Studio M1 Max, 32GB macOS 14.0
- Lenovo Legion 7-15IMH05, WIN11
- Dell XPS8700 , WIN10

Return to DaVinci Resolve

Who is online

Users browsing this forum: dirk-pel, Fully_Loaded34, KrunoSmithy, qsipher, Robert John and 253 guests