FAQ  •  Register  •  Login

Change location of the database?

<<

foobsz

Serviio newbie

Posts: 10

Joined: Thu Oct 10, 2013 3:19 pm

Post Thu Oct 10, 2013 3:26 pm

Change location of the database?

Hi,

I tried changing the location to the database by modifying the following file
ServiioService.exe.VMOPTIONS and adding the line
-Dderby.system.home=F:\Data\serviio\database
I also tried
-Dderby.system.home="F:\Data\serviio\database"

Serviio 1.3.1 on Windows 7 x64.
Unfortunately when I restarted the Serviio service in services.msc the service was still using the default location.
I would like to move the serviio database location to a different disk/drive.

I could make a hard link, but prefer to edit and have a working configuration. Anyone successfull in changing the database location?

I followed the instructions listed on http://www.serviio.org/index.php?option ... icle&id=43
Last edited by foobsz on Thu Oct 10, 2013 5:13 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 10, 2013 4:27 pm

Re: Change location of the database?

it must be in the service vmoptions file, not the console one
<<

foobsz

Serviio newbie

Posts: 10

Joined: Thu Oct 10, 2013 3:19 pm

Post Thu Oct 10, 2013 5:14 pm

Re: Change location of the database?

My bad indeed, sorry did a quick copy and paste when posting the message.... but I did change the ServiioService.exe.VMOPTIONS file.
I edited my original post to reflect that.

ServiioConsole.exe.VMOPTIONS file is empty (no lines)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Oct 11, 2013 11:42 am

Re: Change location of the database?

so how does the vmoptions file look like now?
<<

foobsz

Serviio newbie

Posts: 10

Joined: Thu Oct 10, 2013 3:19 pm

Post Fri Oct 11, 2013 11:51 am

Re: Change location of the database?

just one entry

-Xmx512m
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Oct 11, 2013 3:37 pm

Re: Change location of the database?

and you add your on a new line, right?
<<

foobsz

Serviio newbie

Posts: 10

Joined: Thu Oct 10, 2013 3:19 pm

Post Fri Oct 11, 2013 4:01 pm

Re: Change location of the database?

yes

so the modified VMOPTIONS file would have
-Xmx512m
-Dderby.system.home=F:\Data\serviio\database

are you able to reproduce?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 13, 2013 12:38 am

Re: Change location of the database?

looking at the code, this property might not be used. try with the below

  Code:
-DdbURL=jdbc:derby:F:/Data/serviio/database
<<

foobsz

Serviio newbie

Posts: 10

Joined: Thu Oct 10, 2013 3:19 pm

Post Fri Oct 18, 2013 2:52 pm

Re: Change location of the database?

Yes, that works! This should go in the FAQ :-)

Cache and tumbnails are still in %PROGRAMFILES%\Serviio\library\cache and %PROGRAMFILES%\Serviio\library\search
I suppose this will have to do...

I prefer all my programs and data on separate disks.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 37 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.