[Solved] Change storage destination on Raspberry Pi installation

General discussion of anything Unimus
Post Reply
acs_user
Posts: 12
Joined: Sat Jul 01, 2017 3:56 pm
Location: USA

Thu Jul 06, 2017 2:31 pm

Hello All,
I'm running Unimus on a Raspberry Pi in a SOHO environment. Does anyone know how to have Unimus point the backups to a USB drive? I'd rather not use the SD card that Raspbian in running on.
Last edited by acs_user on Fri Jul 07, 2017 11:41 pm, edited 1 time in total.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Thu Jul 06, 2017 6:33 pm

You can mount the USB drive under '/mnt/usb1' for example (through normal Linux ways).
I will be using that through the rest of this post.

For a new installation, when running HSQL, you can simply enter '/mnt/usb1/unimus/db' as the DB path in the Wizard.
From then on, the HSQL DB files will live there.

For an existing installation, you can migrate the HSQL DB like this:
1) Stop Unimus
2) Migrate DB
Default path is '/etc/unimus/hsql/db'.
You can move the 'hsql' directory to '/mnt/usb1'.
Then just change the config in '/etc/unimus/unimus.properties' - the config value to change is 'database.path'.
3) Start Unimus back up, everything will be as before
acs_user
Posts: 12
Joined: Sat Jul 01, 2017 3:56 pm
Location: USA

Fri Jul 07, 2017 11:40 pm

Thanks Tomas. Worked like a charm.
Post Reply