mirror orthanc server

216 views
Skip to first unread message

Dkorthosurgery

unread,
Sep 25, 2021, 4:41:26 PM9/25/21
to Orthanc Users
Is there a way to  continual mirroring orthanc server in another orthanc instance for backup purposes?, something like autorouting example in lua script but without deleting, keeping the initial study in both initial and rooting orthanc server instance.

many thanks,

kyriakos

Sébastien Jodogne

unread,
Sep 26, 2021, 3:43:00 AM9/26/21
to Orthanc Users
Hello,

This is the goal of the sample script "Replicate.py":

Note that this is a sample script, and that there are many possibilities for optimizing it.

Sébastien-

Dkorthosurgery

unread,
Oct 3, 2021, 3:59:52 PM10/3/21
to Orthanc Users
Hello,
The senario i was thinking was a server that is receiving 20-30 new studies every day, and we want to forward them to another "backup" server keeping the original, doing something like incremental backup. 
I thought that replicate.py is like doing a full  backup.

Alain Mazy

unread,
Oct 4, 2021, 6:32:06 AM10/4/21
to Dkorthosurgery, Orthanc Users
Hi,

Then, you can just declare your backup orthanc as another modality and forward every received instance to it.

This can be done with a one line lua-script based on https://book.orthanc-server.com/users/lua.html#auto-routing-of-dicom-images

function OnStoredInstance(instanceId, tags, metadata)
  SendToModality(instanceId, 'backup')
end

If you also wish to replicate the deletions, you can just implement the OnDeletedInstance callback and call the Rest API of the backup Orthanc to remove the instance from there as well.

HTH

Alain


--
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/3c6345f5-69e8-41e0-b032-3f7c461c4fa7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages