Hi there,
I’m a computer scientist and I plan to migrate a whole Omeka S site with the database, template, and so on. The first step is to discover Omeka S, and after that, I just want to know if there are best practices to do this migration smoothly.
For instance, I don’t know the SGBD of the initial site but I presume it’s MySQL, and, idealy, I plan to use MariaDB on the new server, but I don’t know if it’s possible.
Is there documentation about Omeka S site migration? I searched in this forum, but I can’t find complete information.
You should be able to use either MySQL or MariaDB, subject to using a supported version. But our requirements are pretty loose there so you’re probably fine.
Making and then restoring a dump is the best move for moving over the database, definitely.
As for the core and the modules/themes/etc., it’s up to you. You can grab everything and bring it over to another server and that will work, just so long as you have valid credentials for the new server in your config/database.ini. Or you can use new copies of the core and the addons if you’d like. Both methods work fine. Note that if you are planning to get fresh copies of the code, you’ll still need to bring over the “files” folder from your old install: that’s where your uploaded files and generated thumbnails are stored.
A further note, just because you mentioned that other thread: there’s no need to install Omeka S on the new server, in the sense of running the installer. Regardless of the method you choose, just having your site’s database, the Omeka S files, and the config/database.ini pointing to that database is enough.
@jflatnes Thanks for your reply.
I need to install Omeka S CMS because we leave a private Omeka S CMS platform and migrate to a public one, which will be managed by me.
Another question I have to prevent error is about the data itself. On the legacy database, all data are linked to an open repository (https://nakala.fr/). Is there any precaution with this kind of configuration?
Regards,
arnome
Everything it working at the new DNS EXCEPT in one of our exhibitions they used Absolute URLs (not Relative) to point to pages, items, etc. So all these links break in the new location.
Is there any programmatic way to locate and change all Absolute links to Relative throughout an entire Omeka-S instance?
You can run a query directly in the database to update the links. I know there are two modules that do bulk find and replace ( Omeka S - Batch Values and Omeka S - Bulk Edit ), but I think they are both limited to item and media property values and won’t replace text in site pages, navigation, hard coded in themes, and possibly a few other database fields.
Even if you do that, you will probably want to add a rule to your .htaccess file right after RewriteEngine On so that any external links are also redirected to the new url:
RewriteRule ^omeka-s(?:/(.*))?$ /$1 [R=301,L]
You could also probably just get away with the rewrite rule.