Python or Lua script to move studies to another disk


I am analyzing the PACS to carry out an integration in my work, and to adapt it to our way of working,

I need a script to move the studies from the StorageDirectory storage path to another disk.

  • StorageDirectory will be a disk, when it exceeds the quota defined in the Script it will automatically move studies, by storage date, to another disk until it is full.
    I was searching but could not find any script. Is it possible to do it? Is there a danger with the data in the database?

Thank you.


I think you are looking for the following section “generic replication” in the Orthanc Book: