Community
OpenEnergyMonitor

Community

How to backup/export/import data between servers when using docker

Tags: #<Tag:0x00007f6e13a95208> #<Tag:0x00007f6e13a95078> #<Tag:0x00007f6e13a94ec0>

Hello everyone.

Almost 2 years that i’m running emoncms in docker using a linux VM inside esxi 6.5 but is time to move on.
Now i will run proxmox and i don’t want use the same VM, but instead use proxmox container, i try install the backup app inside docker on current installation but i’m not succeed as the app is for run in emonpi.

So if anyone can help how i can migrate the data to the new containet i would love that.

The Mysql database is external so no problem with that data, but the redis things is docker and i already try put a new emoncms instance and setting the old database but the feeds and apps settings appear to don’t be in the mysql or for some reason don’t work… so if anyone can point me the way…

EMONCMS, Version 10.2.3

Thanks

If you look at the backup module, there is a file emoncms-export.sh. You will need to modify the config file to suit, but this should run from the command line.

I have an emoncms container running on Proxmox installed using the emonscripts and an Ubuntu Container (rather than a full VM). This then adds all the additional modules like backup as well. Note, the best way to do it is create a Pi user on Ubuntu.

Works great, Much better that ESXi.

@borpin thank you or your time.

I will try and create a new container in proxmox follow your steps.

@borpin do you follow any guide to install in the proxmox container?

Nothing special, just pulled in the Ubuntu LXC template, updated it and then used the emonScrips Guide for Ubuntu.

@borpin thanks for you help for some reason that i don’t know i’m not able to install it … or at least i think not, the sudo keeps always report an error
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
So i don’t know if is ok or not.

About how todo the backup in the current VM i don’t know what to set in the database_path if anything… is mysql database is indepedent from emoncms…

Thanks

You need to install sudo probably.

I got those but ignored them and it seemed to be fine.

Did you create a pi user and add them to sudoers, then log in as pi?