Reply
Thread Tools
Posts: 20 | Thanked: 18 times | Joined on Sep 2009 @ Valencia (Spain)
#1
Hi all.

I would like to backup N900's address book to a file prior to a rsync to my desktop Linux box.

Using syncevolution or manually using the "backup" option of the address-book app is not an option for me.

This is that I found in my device using "ssh" and tweaking, but I'm not sure if this is the correct way:

-In dir /home/user/.osso-abook/db of the N900 is the database with contacts.
-The file addressbook.db seems to contain the relevant information.
-Copying this file to a Linux box and using the "file" command tells me that the "Berkeley DB" format is utiliced.
- The file could be copied, and data dumped for the backup, but format could change in the future. I think that is not a good idea to copy this file.

I decided another way:

-In /usr/bin/ there is an exec called "osso-addressbook-backup". This can be called to see available arguments.
-It seems that this app let to export/import contacts to vCard 3 format, for example:

osso-addressbook-backup --export=contactesmeus.txt

creates a file with contacts dumped in.

Somebody knows is this is a correct way or there is a better way?

Thanks,
Àngel





I
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
Originally Posted by aperles View Post
Somebody knows is this is a correct way or there is a better way?
That's probably the best way, yes - the main backup program on the N900 is using this to backup the address book anyway.
 

The Following 2 Users Say Thank You to Rob1n For This Useful Post:
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#3
open_system_abook: Cannot open book

I get this no matter what I try with osso-addressbook-backup. What is the correct, working syntax for it?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
Originally Posted by rooted View Post
open_system_abook: Cannot open book

I get this no matter what I try with osso-addressbook-backup. What is the correct, working syntax for it?
Exactly as aperles said:
Code:
osso-addressbook-backup --export=contactesmeus.txt
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#5
Ahh, it shouldn't be run as root... I know, I know.
 
Posts: 12 | Thanked: 5 times | Joined on Feb 2011 @ Nkozi
#6
My N900 got busted. I have "System backup" from RobbieThe1st and native backup of contacts on my computer.
I need to import addressbook.db to Mac Address Book or Bento, or whatever.

Anyone can help me?
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:28.