Page 1 of 1

[Solved] Change storage destination on Raspberry Pi installation

Posted: Thu Jul 06, 2017 2:31 pm
by acs_user
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.

Re: Change storage destination on Raspberry Pi installation

Posted: Thu Jul 06, 2017 6:33 pm
by Tomas
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

Re: Change storage destination on Raspberry Pi installation

Posted: Fri Jul 07, 2017 11:40 pm
by acs_user
Thanks Tomas. Worked like a charm.