Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you are moving images from one server to another, with no change in the URL, it should be sufficient to just move the VIVO home directory with no changes. VIVO will find file_storage_namespaces.properties and file_storage_root in [home]/uploads, and everything still works.

If you are changing to a new URL, I presume that you are changing to a new default namespace.  Have you used the “Change Namespace of Resources" tool? (http://localhost:8082/vivo/ingest?action=renameResource)

So your file individual has changed from the old URI
http://localhost:8082/vivo/individual/n187
to the new URI
http://logics.emap.fgv.br:8080/vivo/individual/n187

However, file_storage_namespaces.properties does not know how to translate this new namespace.

One way to cope with this is to edit file_storage_namespace.properties accordingly, adding this line:
b = http://logics.emap.fgv.br:8080/vivo/individual/
and rename your
[home]/uploads/file_storage_root/a~n

directory to
[home]/uploads/file_storage_root/b~n

The new URI now translates to b~n187, and the file which is now stored at
[home]/uploads/file_storage_root/b~n/187/servletrecuperafoto.jpeg
is accessible by its new URI.

Thank you. I was able to recover everything in the same server, same base URL. But the question remains valid: if we need to move vivo of a new server with new URL, how to transfer the images?