Senaite on docker: How to backup and migrate data?

I am new to senaite LIMS. I am currently running it in docker on Ubuntu laptop. It works fine.

However, I would like to know how to backup the data and import the data later. Just in case that I need to migrate to a new PC in the future. I find that installing a newer version in docker will be a fresh system and it cannot read the existing database.

I think this is important for me to understand before using it to store all the future data.

Thank you

Hi sweizhong, welcome to the community!

First, I highly recommend searching this site for previous queries regarding this and other questions you might have. It’s quite likely been answered before.

Docker is awesome, however, it’s not recommend to run docker containers for a production instance in this use case for a number of reasons: When you kill the container, you will lose all data. Read the documentation, here. I believe support for Docker is beyond the scope of this forum, however, given it’s popularity, I’m sure you’ll find tons of resources out there if you want to persist with this route.

What data are you trying to migrate? The config or the database? The ZODB blob cannot be readily migrated as you’re suggesting - someone else here might be able to explain the process of migrating as I haven’t approached this yet.

Installing on a Laptop probably isn’t a great idea, beyond an initial test and poke around, or offline development. Try using a cloud instance of ubuntu if you don’t have access to a dedicated server.

If this is your first exposure to Plone, which I think it is, it can be a bit different to the typical databases / data structures we come across. It can definitely be intimidating at first but persist and you’ll see the benefits. The Plone documentation is really useful too. I hope this helps.


1 Like

Thank you. Now I learnt something and found the way to create backup of the database and restore it on a new installation. :grinning:

Now I am trying to understand how custom template for analysis report can be create and added into my senaite lims installation.
I am now reading on GitHub - senaite/senaite.impress: HTML to PDF Rendering Engine for SENAITE but with my very basic knowledge, I have difficulty in understanding how it works.

1 Like