Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How export contacts of Ubuntu one in 12. 10?

Another questions (possible duplicates) is about old versions, and packages like evolution-couchdb are removed in previous versions, thunderbird don't support couchdb.

I can see my contacts in

share|improve this question
Separate multiple questions please. Also I don't quite understand which contacts you mean. – Konstantin Schubert Dec 18 '12 at 1:17
Is only one, how export? ..., i edit for where i see my contacts – Andrés Ricardo Torres Martínez Dec 18 '12 at 11:54
@Konstantin I presume he means the contacts in the Ubuntu One database in Evolution via evolution-couchdb and desktopcouch, the former of which is no longer in Ubuntu 12.10, and the latter of which is removed from Ubuntu 13.04 as well. – dobey Dec 18 '12 at 16:02
I apologize for posting this as an 'answer' rather than as comments on the answers above, but as a new user it seems I don't have sufficient reputation to do that. The script suggested by Roman and in the Ubuntu One FAQs appears to hang indefinitely (or at least for 4+ hours) and produces no output. The "little script I just threw together" link from Chipaca leads to a page that reads: > The Paste you are looking for does not currently exist. Responses to [another AskUbun – khaeru Mar 17 '13 at 15:24
up vote 0 down vote accepted

There is a script that creates a vCard file from the data that is stored in Ubuntu One online couchdb. You will need to install python-vobject package for it to work.

python ubuntuone-addressbook-export addressbook.vcf

The address book entries will be written to addressbook.vcf.

share|improve this answer

For now, the contacts are still backended to CouchDB. This will stop being the case over the next few months (this should get updated when that happens).

What you need to do is determine the right endpoint for your couchdb instance on the server, and then query that using the couchdb REST API. As all these requests need to be OAuth-signed, it's not trivial to do; there is Roman's tool that will put the credentials into environment variables you can use to build URLs for curl or wget, there is a helper u1oauthrequest (part of the old ubuntuone-couch) that gets your credentials from the keyring, signs the given URL, and prints the result. There is a little script I just threw together from scripts used by people on my team.

If you save the latter in a file called, you can then call it via


and it should print out the information about your contacts database. If you want to get the list of documents you'd do

python /contacts/_all_docs

and if you want the actual documents and not just the ids and revnos you'd do

python /contacts/_all_docs?include_docs=true

The whole thing is quite unreliable to be honest so you might need to retry a couple of times, or retry at a less-busy time, which is why we flagged it for EOL over a year ago. The move to u1db should make this quite a lot better (soon!), at which point I'll update this answer.

share|improve this answer
Note that this will not work if the contents are not synced to U1 (though OP's are). If the contacts are not synced to the U1 server, you'll need to pull them out of the local couchdb. You can do this even if they are synced as well. With desktopcouch-service (and it's instance of couchdb) started up and running, you can open the HTML file in ~/.local/share/desktopcouch/ in a browser to access the Futon interface to couchdb. You should be able to find your contacts entries in there as well. – dobey Dec 18 '12 at 20:47
good point @dobey. work it into the answer? – Chipaca Dec 19 '12 at 2:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.