maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Contacts backup question (https://talk.maemo.org/showthread.php?t=49605)

aperles 2010-04-09 15:07

Contacts backup question
 
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

Rob1n 2010-04-09 15:16

Re: Contacts backup question
 
Quote:

Originally Posted by aperles (Post 602971)
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.

rooted 2010-04-14 21:45

Re: Contacts backup question
 
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?

Rob1n 2010-04-15 08:06

Re: Contacts backup question
 
Quote:

Originally Posted by rooted (Post 610897)
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

rooted 2010-04-15 17:58

Re: Contacts backup question
 
Ahh, it shouldn't be run as root... I know, I know.

N900Roger 2011-08-27 14:47

Re: Contacts backup question
 
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?


All times are GMT. The time now is 05:07.

vBulletin® Version 3.8.8