Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to use sites like last.fm, but because I'm often moving from OS to OS, and mostly listen to music on an mp3 player, most of my listening data gets lost.

Is there any way I can backup Banshee's listening history, and restore it on a new install?

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

The database is a SQLite db sitting at:

~/.config/banshee-1/banshee.db

You can carry that around where you like with one caveat: You can never take a version that has run on a newer version of banshee to a computer that has an older version.

They constantly change the database layout and only provide one-direction migration code so once you run it on a newer version, that's it. All your computers need to run that version.

share|improve this answer
    
I should add that Last.fm and Banshee's database are two completely different things. You can log into Last.fm from multiple machines without the same library. –  Oli Oct 20 '10 at 22:46
add comment

Oli is quite right, but as an alternative, if you go to Edit->Preferences with Banshee, on the General tab there is an option to "Write ratings and play counts to files".

This means you don't have to worry about moving Banshee's config files around - Banshee can read the play count directly from the mp3/audio file - whichever Ubuntu install you using.

(Note: your MP3 player, and programs other than Banshee probably won't look at this.)

Banshee screenshot

share|improve this answer
4  
I also don't think this is retroactive. In order for a play count to get written to file, it has to be played after this is set. And it doesn't count as a "play" unless it's 30 seconds of playtime IIRC. –  Oli Oct 21 '10 at 22:48
    
Note: If you gapless mode turned on then "plays" are counted slightly differently, something like as soon as you start playing them. –  8128 Oct 22 '10 at 6:54
    
@fluteflute When the song starts and sometimes again when it ends. That's a bug in Banshee's gapless implementation. :( –  michaelms Nov 7 '11 at 17:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.