Sync Thunderbird Addressbook with Baikal using carddav

In my last article I described how to import Contacts from your Goggle Account. Now I will describe how to bring those (and also every other) contacts to baikal and how to setup synchronisation between Thunderbird and Baikal.

First of all we need to install the Sogo-Adapter Addon for Thunderbird (this provides DAV)

Sogo-Adapter
Sogo-Adapter

After that, we are able to create a Remote-Address Book in Thunderbird. Here you can see my settings for that address book.

The value „philipp“ is the ID of my Baikal-user, „default“ is the token-id of my address book in baikal (see related Baikal article).

Remote Address book
Remote Address book

Now you can move your contacts from your Google Addressbook to your Baikal Address book via drag&drop (or via copy&paste). After you have moved/copied the contacts to the baikal address book you should run the sync-command to push the contacts to your baikal-server (right-click on your baikal address book and hit „Synchronize“).

After that, the contacts should be available in your baikal database. Let’s to a simple check:

philipp@eliteX:~$ mysql -u baikalUser -p
Enter password: 
// removed some simple lines...

mysql> use baikal
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select count(*) from cards;
+----------+
| count(*) |
+----------+
|      323 |
+----------+
1 row in set (0.00 sec)

 

In my case, all of my 323 Google Contacts were stored in the database. Now I can sync every device and tool (Thunderbird, Android, etc.) with my baikal address book.

Related articles:

Import Google Contacts to Thunderbird AddressBook

For my project to move all my contacts to Baikal (see related articles) it is necessary to bring my google contacts to Thunderbirds Addressbook.

Install Gcontactsync addon for thunderbird:

gContactsSync Plugin
gContactsSync Plugin

Create a new Address Book which should be used to import the Google Contacts. Also configure your google-Accont. If you are using app-passowords, you have to generate one in your google account.

I have set the Sync-Type to Read-Only, because I just want to receive the contacts, but not to modify them (also it is more secure if we do some mistakes).

gcontactSync Addressbook
gcontactSync Addressbook

Now you can close the window and click on „gcontactSync“ -> „Sync“ to receive the contacts. They should now be available in your GoogleContacts Addressbook.

Related articles:

Baikal: Setup a user and addressbook

Open the web-admin-page of baikal: http://yourhost/<path_to_baikal>/admin/

In the admin-menu you can create a new user, in my case I created the user „Philipp“:

Create User
Create User

Now create a addressbook for that user:

Create Addressbook
Create Addressbook
Addressbook token id
Addressbook token id

 

That’s all. For synchronisation you need the card-dav URL:

// general
http://localhost/baikal/card.php/addressbooks/<user>/<addressbook_token_id>/

// in this case
http://localhost/baikal/card.php/addressbooks/philipp/default/

Related articles:

Sync Owncloud Contacts with Android

Hi there,

I handle some of my Contacts (especially email-only-contacts) via my owncloud instance instead via google. Now I had the problem that I need all those contacts on my mobile android device to be able to write emails to those people.

I don’t like to sync my email-pnly-contacts with my google account, so I need a solution that is working fine with android but without merging the contacts.

The solution that works well for me is to sync the contacts to my phone / tablet via CardDav free (https://play.google.com/store/apps/details?id=org.dmfs.carddav.sync&hl=de)

How to Setup the Sync:

  1. Open CardDav and select „New Account“
  2. CardDav
  3. http://<myHost.com>/cloud/remote.php/carddav/addressbooks/<user>/contacts   (you can also see this in your owncloud web interface)
  4. Enter your owncloud username and password
  5. setup your sync-interval and if you would like to have a uni-direction sync
  6. Start the sync (via settings -> accounts ) and have fun with your contacts on your mobile device