Page 1 of 1

Migration with path changes

PostPosted: Thu Feb 07, 2013 11:05 am
by odt
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 :)

Re: Migration with path changes

PostPosted: Thu Feb 07, 2013 12:06 pm
by hakko
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)

Re: Migration with path changes

PostPosted: Thu Feb 07, 2013 12:16 pm
by odt
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.