[Solved] Migrate Unimus across platforms?

General discussion of anything Unimus
Post Reply
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Sun Apr 29, 2018 2:57 am

Hey now.
So just started with Unimus so started with Portable on Win 10.
Now decided to give it a Debian 9 VM.

How do I migrate the install/data from the Win 10 portable install to the VM?

Thanks,
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Sun Apr 29, 2018 4:10 am

So trying to piece this together myself.

Stopped unimus on windows.
Stopped unimus on Deb

Code: Select all

service unimus stop
scp copied the

Code: Select all

c:\programdata\Unimus
folder into /etc on the Deb machine
renamed /etc/Unimus to /etc/unimus
started unimus on Deb

Code: Select all

service unimus start
After a few minutes for service to start I'm still asked to set up user and password (startup wizard) but DB encryption key is prefilled (correctly), license key is pre-filled (correctly). No credentials are present (had only one, ssh key). When I reselect my ssh key dashboard shows me 5 devices in the system (correct #) but device history is not there and backups are not there.

??
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Sun Apr 29, 2018 4:57 am

Tried a few more variations. No joy. Is there anywhere else that data is stored?
Don't understand why my backups didn't follow, why creds didn't follow... Doesn't add up if I'm using hsql.

What am I missing here?
thx.

Oh also, connector settings didn't follow, schedules didn't follow. Seems like more got left than got migrated. So def need some help with proper procedure or, if Win -> Linux migration not possible, should be a heads up at download page and probably in Wiki too.
User avatar
Tomas
Posts: 561
Joined: Sat Jun 25, 2016 12:33 pm

Sun Apr 29, 2018 9:47 am

Hi,

Migration is possible.
You had it right, but you need to change the DB path in the configuration file.

So do:
1) Stop Unimus on the old Windows system and new Linux system
2) create "/etc/unimus" on the new Linux system
3) copy "unimus.properties" and "hsql" directories from "C:\ProgramData\Unimus" to "/etc/unimus"
4) in "unimus.properties" change "database.path" value to "/etc/unimus/hsql/db"

Start Unimus on the Linux system.
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Sun Apr 29, 2018 4:45 pm

Tomas wrote:
Sun Apr 29, 2018 9:47 am
Hi,

Migration is possible.
You had it right, but you need to change the DB path in the configuration file.

So do:
1) Stop Unimus on the old Windows system and new Linux system
2) create "/etc/unimus" on the new Linux system
3) copy "unimus.properties" and "hsql" directories from "C:\ProgramData\Unimus" to "/etc/unimus"
4) in "unimus.properties" change "database.path" value to "/etc/unimus/hsql/db"

Start Unimus on the Linux system.
Thanks. I sort of got it working by doing a clean install, running through the wizard (w/ same encryption key and creds) and copying over just the DB folder (hsql?) contents.
Will have to wait till tonight or tomorrow to give this a shot.
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Thu May 03, 2018 5:14 am

Tomas wrote:
Sun Apr 29, 2018 9:47 am
Hi,

Migration is possible.
You had it right, but you need to change the DB path in the configuration file.

So do:
1) Stop Unimus on the old Windows system and new Linux system
2) create "/etc/unimus" on the new Linux system
3) copy "unimus.properties" and "hsql" directories from "C:\ProgramData\Unimus" to "/etc/unimus"
4) in "unimus.properties" change "database.path" value to "/etc/unimus/hsql/db"

Start Unimus on the Linux system.
So I just followed this process yet still I'm greeted with the EULA screen and the 'create user and password' screens. I did not go any further figuring better to ask first.

Thanks,
User avatar
Tomas
Posts: 561
Joined: Sat Jun 25, 2016 12:33 pm

Thu May 03, 2018 9:25 am

Could you please post the output of:

Code: Select all

cat /etc/unimus/unimus.properties | grep "database.path"
ls -l /etc/unimus/hsql
cat /var/log/unimus/unimus.log | grep "Connecting to database" -B 3 -A 3
JAz
Posts: 34
Joined: Thu Apr 26, 2018 11:06 pm

Fri May 04, 2018 9:12 pm

Tomas wrote:
Thu May 03, 2018 9:25 am
Could you please post the output of:

Code: Select all

cat /etc/unimus/unimus.properties | grep "database.path"
ls -l /etc/unimus/hsql
cat /var/log/unimus/unimus.log | grep "Connecting to database" -B 3 -A 3
Doh! My mistake - fat-fingered the path in .properties :oops: :oops: :oops:


All good now!
Post Reply