Setup an orthanc server about 2 years ago, at the time I thought saving the images in the DB would be the best option. I feel like id rather them be stored in the filesystem and just indexed in postgres. Is there a script around to export all of the studies to orthanc file system or is there a better way to go from postgres db stored images to filesystem stored images.
If there isn’t anything existing I will write something and report back but figured Id ask first.
Hello,
Since whatever method you will use will imply moving the bytes around anyway (thus incurring the transfer “cost”), wouldn’t it be easier for you to use a blue-green setup where you provision another Orthanc (possibly a disposable one), with its StorageDirectory
pointing to the correct final location, and migrate all of your DICOM files to this new instance?
You could then, afterwards, switch the first Orthanc to use the DB and storage filled by the 2nd one.
If you cannot afford downtime and/or new instances might be pushed while the migration is taking place, maybe you can create a dynamic setup where your original Orthanc remains functional and available to users, with an OrthancCloner container/script running on the side, that would gradually copy the files to the new Orthanc. Once migration is complete, you could switch them rapidly.
HTH
I like this approach, Ill look into it more. thank you sir