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?
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)