Copy Subsonic to different Server

Need help? Post your questions here.

Moderator: moderators

Copy Subsonic to different Server

Postby Qbix » Fri Jul 22, 2011 11:42 am

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! :)
Cheers,
Image
------------------
14.985 artiesten
10.798 albums
90.526 nummers
822,06 GB (~ 12.770 uur)
------------------------------
Qbix
 
Posts: 97
Joined: Thu Jun 30, 2011 1:36 pm
Location: Netherlands

Postby supra92 » Mon Jul 25, 2011 5:07 pm

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
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Postby Qbix » Tue Jul 26, 2011 7:52 am

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! :)
Cheers,
Image
------------------
14.985 artiesten
10.798 albums
90.526 nummers
822,06 GB (~ 12.770 uur)
------------------------------
Qbix
 
Posts: 97
Joined: Thu Jun 30, 2011 1:36 pm
Location: Netherlands

Postby supra92 » Sat Jul 30, 2011 4:19 pm

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
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Postby Qbix » Mon Aug 01, 2011 6:33 am

Well ok...goodluck with that! :)
Cheers,
Image
------------------
14.985 artiesten
10.798 albums
90.526 nummers
822,06 GB (~ 12.770 uur)
------------------------------
Qbix
 
Posts: 97
Joined: Thu Jun 30, 2011 1:36 pm
Location: Netherlands


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests