I'm about to move all of my music into another folder called Music, and I've spent a lot of time organizing the metadata of it. When I move the music into another folder, will my custom metadata be lost?
I'm running Banshee 2.0.1 on Ubuntu Lucid.
I'm about to move all of my music into another folder called Music, and I've spent a lot of time organizing the metadata of it. When I move the music into another folder, will my custom metadata be lost?
I'm running Banshee 2.0.1 on Ubuntu Lucid.
I had my music collection under /data/music
and wanted to move it to /media/SD/music
. I did the following:
cd ~/.config/banshee-1
sqlite3 banshee.db ".dump" > dump
mv banshee.db banshee.db.backup
sed -i 's+file:///data/music/+file:///home/marc/Music/+g' dump
cat dump | sqlite3 banshee.db
rmdir ~/Music
ln -s /media/SD/music ~/Music
Here is an explanation of what I did:
file:///data/music/
with file:///home/marc/Music
in the DB dump.~/Music" directory
./media/SD/music
from ~/Music
.The result is that I removed the standard ~/Music
directory and created a symlink to the actual directory where I store my music files. I told the Banshee database to look for my music in the location of the symlink. If I ever want to change the location of my music again, all I have to do is move my files and update the location of the symlink.
I have moved my Music from one system to another and I have also moved from one LVM to another LVM.
One move I completed was an scp from my laptop (Ubuntu) to my desktop (Windows) and all the information including the metadata of each of my songs were great.
I then did another copy from LVM volume to another LVM volume using the following command:
sudo cp -a ./Music/* /mnt/tmpMusic/
I am using that new copied Music folder for Banshee as we speak with no metadata problems.
Before you move all your music from one folder to another, just do a small test for one song move to a new directory. Once the song has been moved, import it back into Banshee to verify that the metadata is not harmed. Example below:
sudo cp -a /path/to/current/song.mp3 /new/path/to/song.mp3
Hope this helps.