Move Storage API

Dear Team,

Im trying to move local images from orthanc to an azure storage. I was looking for the solution provided in this guide: Cloud Object Storage plugins — Orthanc Book documentation

In this, you mention to call this “move-storage” resource, however, in the most recent versions, i have the 1.12.10 version, cannot find that resource, neither anything related to the move-storage information

http://localhost:8042/move-storage 

I really appreciate your support on this, as my local C disk its almost full, and i need to move some old images to the azure storage.

Thanks in advance for your support.

Hi,

The Azure plugin must be loaded and configured in hybrid mode.
All the available information is in the Orthanc book page you are referencing.

Best,

Alain.

Thanks for the reply, but, how can i, for example, move all the studies before end of 25 to azure storage?

You’ll need to write a script to list all studies whose StudyDate is small than 20260101 (by calling /tools/find) and then call the /move-storage on each of them.

Hi Alain, thanks for the response, however im trying to execute through postman the move-storage resource but without success. It says “resource not exists” like the image below.
Also, a quick question, whats the parameter “Resources”, the study id?

Thanks

Dear team, any update on this?

I really appreciate your support on this.

Thanks and regards

yes

Thanks Alain for the response,

Any update about the move-storage?

Thanks!

Have you checked this ?

Check your startup logs in verbose mode and/or check http://localhost:8042/ui/app/#/settings to see the loaded plugins

Dear Alain, it works! but it works only when my DB is sqlite and the files are stored in the default folder: C:/Orthanc, however, in my prod environment im using postgresql as primary DB, so, when running the move-storage command it says success, however, no file has been uploaded to the storage container.

Please see the verbose logs:

By now, this is the parameter “HybridMode”: “WriteToFileSystem”. Also, when calling the api is as follows:


Thanks in advance for your support

Btw, in the postgresql.json config, the EnableIndex and EnableStorage are both in “true”.

You can not 2 storage plugins at the same time (Azure + PostgreSQL Storage mode).
Just start a new setup and migrate your data