Automatic send patients to another Orthanc backup server

hello

I want to make a daily backup the data from main Orthanc server to another Orthanc server (backup).
I want to schedule this , starting at 1.00 and send all instances received “yesterday”.
I had registered the Orthanc backup server with “DicomModalities” and I don’t know what is next step…
Please tell me where is documentation for this.
Thanks
Adrian

This can be done by an external Python script that calls the REST API of Orthanc. Check out the Orthanc Book:
http://book.orthanc-server.com/users/rest.html

You can find some Python samples in the source distribution of Orthanc:
https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Python/