Page 1 of 1

Copy Subsonic to different Server

PostPosted: Fri Jul 22, 2011 11:42 am
by Qbix
Hi All,

I want to transfer my Subsonic environment to a different server with more performance. Therefor I want to know if it's possible to run the setup on the new environment and copy all content of the web interface to the new server.

Will this work?

I changed/modded a lot of files on the web-interface so I want to make sure that doesn't get lost.

TIA! :)

PostPosted: Mon Jul 25, 2011 5:07 pm
by supra92
It's doable, but if you actually modified the source code files in the 'jsp' directory, you'll need to consider two things:

1. A fresh SS install of the latest version on your new server clearly won't have your modifications in it, so the only way to not have to re-do them is to manually keep track of which .jsp files you've modified and then copy them over from the old server to the new server after the fresh install.

2. Be aware that if you, for example, copy over your modified "top.jsp" file from the old server (let's say it's v4.4) to the new server's install (let's say it's 4.5b).... if Sindre made any changes to "top.jsp" for 4.5b, you will lose those changes by copying over your old 4.4 version.

The only way to avoid Item #2 is to write down a changelog of the changes you made to the .jsp file, and then re-make those same changes in the new install's .jsp files. A hassle, to be sure, but it's the only way to preserve your own mods whilst ensuring that you're not overwriting/losing any new changes to the .jsp files that Sindre made.

For the database info, such as album ratings and comments, you'll want to preserve the /var/subsonic/db, particularly the subsonic.data file in it.

Hope this helps, and cheers,
Supra92

PostPosted: Tue Jul 26, 2011 7:52 am
by Qbix
supra92 wrote:It's doable, but if you actually modified the source code files in the 'jsp' directory, you'll need to consider two things:

1. A fresh SS install of the latest version on your new server clearly won't have your modifications in it, so the only way to not have to re-do them is to manually keep track of which .jsp files you've modified and then copy them over from the old server to the new server after the fresh install.

2. Be aware that if you, for example, copy over your modified "top.jsp" file from the old server (let's say it's v4.4) to the new server's install (let's say it's 4.5b).... if Sindre made any changes to "top.jsp" for 4.5b, you will lose those changes by copying over your old 4.4 version.

The only way to avoid Item #2 is to write down a changelog of the changes you made to the .jsp file, and then re-make those same changes in the new install's .jsp files. A hassle, to be sure, but it's the only way to preserve your own mods whilst ensuring that you're not overwriting/losing any new changes to the .jsp files that Sindre made.

For the database info, such as album ratings and comments, you'll want to preserve the /var/subsonic/db, particularly the subsonic.data file in it.

Hope this helps, and cheers,
Supra92


Hi Supra92,

Thanks for the explanation, I figured out most of this out myself already.
I'm glad that I kept a change log so I can redo all the changes I made before without losing a new version from Sindre.

I already copied all stuff to a new server and it works instantly including all user info etc..great stuff! :)

PostPosted: Sat Jul 30, 2011 4:19 pm
by supra92
Fantastic, glad to hear it. Going through the same process here this morning with 4.5b2, redoing all the customisations written down in a personal changelog textfile. Your post reminded me that I still need to upgrade the underlying OS from Scientific Linux 5, to 6. One of these days :)

Cheers,
Supra92

PostPosted: Mon Aug 01, 2011 6:33 am
by Qbix
Well ok...goodluck with that! :)