Converting Nokia Backup Files (nbf) to CSV without a Nokia phone

Converting Nokia Backup Files (nbf) to CSV without a Nokia phone

 

Recently I found myself in need to access an old backup of my phonebook. The backup was created using the backup function of my Nokia phone. It used the “NBF” (Nokia Backup File) extension.

I struggled with Nokia PC Suite, Nokisoft, and some nfb python scripts before realizing that I was actually looking at a zip archive of my phone filesystem!

Wow, so it’s really this easy:

  • rename the backup from backup.nbf to backup.zip
  • unpack it with: unzip backup.zip (or using winzip)
  • search for .vcf files inside the archive. In my case they were located under predefhiddenfolder/backup/WIP/32/contacts
  • YMMV

Converting the .vcf files to something which vaguely resembles a .csv file is trivial.

I used an ugly oneliner to do it. Here it comes for your pleasure:

$ cat *.vcf |grep -v ^VERSION|grep -v ^BEGIN|grep -v ^END|cut -d ':' -f 2- |sed 'N;s/\r\n/,/;s/;/ /'

HTH

Advertisements

One thought on “Converting Nokia Backup Files (nbf) to CSV without a Nokia phone

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s