Migration with path changes

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Migration with path changes

Postby odt » Thu Feb 07, 2013 11:05 am

Hey, I am planning to move my MusicCabinet from a win box to a new dedicated HTPC/NAS system running ubuntu testing. Im confident I can figure out the DB migration, but what about chaning the path to the music files? It used to be something like E:\music, but its going to change to /data/music. Otherwise it will be exactly the same content.

Has anyone undergone such a migration and what were the issues encountered? I plan to write it up if someone already hasnt but would like to be as well prepared as possible, as not to waste time :)
odt
 
Posts: 30
Joined: Wed Sep 19, 2012 11:09 am

Re: Migration with path changes

Postby hakko » Thu Feb 07, 2013 12:06 pm

You could actually start by removing your media folders from the Settings page (to have all traces of all current files wiped). Then migrate the db using standard PostgreSQL tools, install on your Linux box and add your new media folders. Then it shouldn't be necessary to download all information from last.fm again and neither starred tracks / most played etc, it should be transferred automatically with the PostgreSQL migration. That information is stored in the database in a way to make it resilient to you moving files around. (I haven't tried myself though, I'm just guessing from how I designed it)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Migration with path changes

Postby odt » Thu Feb 07, 2013 12:16 pm

OK, I will try it this way. Thanks for a quick answer. Wouldnt have thought deleting the media folder is the way to start.

EDIT: all done and working. minor quirks related to moving from win to ubuntu, all MC settings preserved perfectly.
odt
 
Posts: 30
Joined: Wed Sep 19, 2012 11:09 am


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 42 guests