Transfere Studies from orthanc to new orthanc

497 views
Skip to first unread message

Fady Qudaih

unread,
Jan 29, 2022, 11:19:57 AM1/29/22
to Orthanc Users
I have an original server that contains hundreds of studies and I would like to transfer these studies to the new server, but I noticed that the process of adding studies to the new server from the old one requires uploading each file one by one, how can I transfer all the folders at once?

In the following pictures, the studies folders

1.PNG2.PNG


Sébastien Jodogne

unread,
Jan 29, 2022, 12:17:05 PM1/29/22
to Orthanc Users
You are looking for the "Replicate.py" script that is part of the Orthanc source distribution:

Fady Qudaih

unread,
Jan 30, 2022, 10:07:02 AM1/30/22
to Orthanc Users
I could not apply the method? Any more explanation?

Salim Kanoun

unread,
Jan 30, 2022, 11:42:36 AM1/30/22
to Orthanc Users
Hi I take the chance of this topic to share a slightly modified version of replicate.py

Replicate.py works well but it had one problem : it's not resumable. So if the scripts shutdown the replicate.py will restart importing image from zero.

So I modified the replicate.py to call the /instance API of both server and compute the missing instances to send. So in case of failure the new start will send only the missing instance.

This script has one downside, the instance list has to be stored in memory and may lead to a high memory usage in case of very huge orthanc server. 
I tested this script with 2.1 millions of instance with no problem.

I think it should fit for at least 10M instance (or more).

However for very large server we will have to play with the since query tag on the instance api or use the /series level (and compare number of instance for each series)

Best regards,

Salim

Replicate.py

Fady Qudaih

unread,
Jan 30, 2022, 12:21:52 PM1/30/22
to Orthanc Users
Thank You
But how i can run "Replicate.py" file ?

Κυριάκος Δημητριάδης

unread,
Jan 30, 2022, 1:04:19 PM1/30/22
to Fady Qudaih, Orthanc Users
Python

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/185fe425-bdb4-43f2-86f5-aca7492e4e90n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages