[Solved] Backing up Unimus server

General discussion of anything Unimus
Post Reply
avious2
Posts: 26
Joined: Thu May 18, 2017 10:10 pm

Tue Feb 26, 2019 6:08 pm

Hello, I just want to start by saying thanks for making this great software.

I have a couple Unimus servers running on Win10 X64 It's working great and I have about 120 to 150 devices getting backed up on each server.

Now I find myself wanting to find a way to copy these backup files to an offsite location to make sure we do not lose these backup files.

Is there any way to backup up the Unimus files to an offsite location and then possibly restore them to new hardware?

If not is there any way you could suggest to go about backing up Unimus itself?
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Tue Feb 26, 2019 6:20 pm

Hi,

Unimus is basically comprised of 3 components:
1) the application itself
2) config file
3) database

For backing up Unimus itself, you are interested in items 2 and 3.

Config file is located in "C:\ProgramData\Unimus\unimus.properties" or "/etc/unimus/unimus.properties".
You will want to back it up.

For the database - it depends on what DB you are using.
You can find that in the config file.

If using HSQL (the embedded file-based DB), by default that is located in "C:\ProgramData\Unimus\hsql" or "/etc/unimus/hsql".
You can just backup this directory.

If using MySQL or PostgreSQL, you will have to dump the DB using the DB-specific tools, and backup the dump.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Tue Feb 26, 2019 6:22 pm

Perhaps a few words on recovery would be useful as well.

If you want to recover, you can just install a clean instance of Unimus.
Stop the service imediatelly after the install finishes.

After that, put the DB in place.
If HSQL, just copy the "hsql" directory into the appropriate place.
If MySQL or PostgreSQL, restore the DB and the DB user / privileges.

After the DB is restored, put the config file in place.

After that, just start the Unimus service, and everything should be back up as before.
avious2
Posts: 26
Joined: Thu May 18, 2017 10:10 pm

Tue Feb 26, 2019 7:34 pm

Wow! Thank you for the info. That is exactly what I was looking for!
Post Reply