Posted by Mike Ratcliffe on 26 Mar 2013
Moving your Contacts and Calendar Away from Google (and into ownCloud)Exporting Contacts from Google Contacts
At the time of writing, exporting contacts from Google Contacts as a .vcf file only exports one name, phone number and email address per contact. Fortunately, if you export your contacts from an Android phone you will keep all of your contact information including mugshots. To do this:
From a Home or All Apps screen, touch the People icon.
Select Menu > Import / Export.
Select "Export to storage."
Touch "OK" to confirm.
A file with the .vcf extension will be saved to the root directory of your phone's internal storage. This file contains all of your contacts including their photos. Transfer this file to your computer via a USB cable or email.
Go to
http://yourdomain.com/owncloud/ Click Contacts -> Import.
Select the file .vcf file that you copied to your computer and click OK to import.
Importing Calendar to ownCloud Go to
http://www.google.com/calendar/ Click settings -> Settings -> Calendars -> Export Calendar.
Save the .ics file to your computer.
Go to
http://yourdomain.com/owncloud/ Click Files and drag the .ics file into the files window in order to upload it.
Click on the .ics file.
In the Import calendar dialog that appears select "Default calendar" and click import.
When the calendar has been imported close the dialog and delete the .ics file.
Configure Thunderbird
Calendar
Uninstall the Provider for Google Calendar add-on.
Install SOGo Connector.
Install MoreFunctionsForAddressBook.
Install the Lightning extension.
In your owncloud calendar copy your calendar's CalDAV link.
Back in Thunderbird open the calendar.
Click File -> New Calendar -> On the Network -> Next -> CalDAV.
Type the following into the location field:
https://yourdomain/owncloud/remote.php/caldav/calendars/USERNAME/CALENDARNAME (the default calendar name is defaultcalendar).
Check Offline Support.
Click Next
Give your calendar a name and an email address. The email address is used for email notifications.
Contacts
Uninstall the Google Contacts addon.
Install SOGo Connector.
In Thunderbird open the Address Book.
File -> New -> Remote Address Book.
Give your address book a name.
Type the following into the URL field:
http://your domain/owncloud/remote.php/carddav/addressbooks/username/contacts/
Click okay and synchronize and your contacts should download.
Configure Android Phone
Contacts
Go to People.
Choose Settings -> Accounts -> Your Google account.
Clear the checkbox so that Google Contacts are no longer synchronized.
Install CardDAV from the Google Play Store. There is a free version CardDav-Sync free beta and a paid version called CardDav-Sync beta. The paid version syncs more contact fields. You can start with the free and upgrade later.
Run CardDAV-Sync and use these settings:
Server URL: /owncloud/remote.php/carddav/
Use SSL: check accordingly.
Username: your login name.
Password: your password.
Click OK.
Go back to People.
Choose Settings -> Contacts to display -> Customize.
Expand your Google account and clear all of it's checkboxes.
Expand your CardDav account and check all of of it's checkboxes.
Click OK and your contacts will be synchronized.
Calendar
Install CalDAV from the Google Play Store. There is a free version called CalDav-Sync free beta and a paid version called CalDav-Sync beta, both written by Marten Gajda.
Open Calendar.
Choose Settings -> Settings -> Your Google account.
Clear the checkbox so that Google Calendar is no longer synchronized.
Click Add Account -> CalDav and use these settings.
Server URL: <servername>/owncloud/remote.php/caldav/
Use SSL: check accordingly.
Username: your login name.
Password: your password.
Click Next.
Under "Select accounts to sync" select all appropriate calendars.
Click Next.
Enter the email address. The email address is used for email notifications.
Click OK and your calendar(s) will be synchronized.
Go to phone Settings -> Accounts -> Google -> Select the Google account with the sync icon next to it -> Uncheck calendar.
Congratulations, you now no longer need an external service to synchronize your contacts and calendar. As a bonus there are a bunch of ownCloud add-ons that give you much more power than you previously had.
http://flailingmonkey.com/moving-contacts-calendar-google