Contacts app - How to backup/export full addressbook?

Got a few hundred contacts and exporting single one is not really an option.
The export function was possible in older app versions. Same as for calendars.
Did that normally using cron. Let’s see what is possible in the future again.

Hello,
i export my contacts that way:

!/bin/bash
MONAT=`date +%m`
DATZEIT=`date +%d%H%M`
TAG=`date +%d`
ZEIT=`date +%d.%m.%y__%T`
echo ">>>  $ZEIT buvcf START" >> /media/bu/mountbu.log
UP_J=USER:PASSWORD
OF_J=/media/bu/card/js/$MONAT
mkdir -p $OF_J
ADR_J=https://XXX.de/owncloud/remote.php/carddav/addressbooks/USER/
#Joachims AdressbĂŒcher
declare -a array=(joachim)
for i in ${array[@]}
	do
curl -u $UP_J $ADR_J$i?export > $OF_J/$i$DATZEIT.vcf
done
ZEIT=`date +%d.%m.%y__%T`
echo "<<<  $ZEIT buvcf ENDE" >> /media/bu/mountbu.log
1 Like

Just tried the fix.

My export dialog looks like:

As soon as I download I got a white screen.
Is it working for you?

Nextcloud version 11.
Contacts app version 1.5.2

/OTON

rakekniven! :relaxed:

/OTOFF

I’m doing this with Thunderbird or Evolution.

Does OT means Off Topic?

I’d like to know why the functionality was removed? Nextcloud was forked from OwnCloud and the functionality was there when the fork was done. OwnCloud still maintains this functionality.

I too was looking to backup my information and prefer an easy way to export all my contacts as VCF. I should not have to depend on some convoluted external tool or script.

I was seriously considering switching from OwnCloud to Nextcloud, but I’m sticking with OwnCloud at least until this functionality is made available again.

Wait for next app release. Function was not removed as feature.
Contacts app of nextcloud has a maintainer and still receives features and fixes.

As a workaround I export my adressbook on my Mac using OS X addressbook and that works well at the moment.

Hi - Not sure if this will help or not, but here’s how I backup my contacts and get them from VCF to CSV:

This will take the large VCF file and make it into a CSV, for import into Excel, etc. I have only used it with Excel though.

mp/m

A little bit easier for unschedulded action.

https://nextcloud.[DOMAIN].[TLD]/remote.php/dav/addressbooks/users/[USERNAME]/contacts?export

3 Likes

Topic is how to get my contacts out of Nextcloud as vcf.
Nice you showing me how to move them into Excel from VCF :confused:

Hey, you made my day. It works pretty well.

As a german user my UI language is german as well and just discovered that your solutions has to be localized for me :slight_smile:

https://nextcloud.[DOMAIN].[TLD]/remote.php/dav/addressbooks/users/[USERNAME]/contacts?export does not work.

But https://nextcloud.[DOMAIN].[TLD]/remote.php/dav/addressbooks/users/[USERNAME]/kontakte?export does.

Anyway thumbs up!

Update: Using curl command in my crontab now. Works pretty well.

1 Like

Thanks, you save me lot of headache as “categories” is mandatory for me and Thunderbird exports discard it !

This is fixed with v1.5.3 now.


Unfortunately, there’s no changelog.


@Mods: Please, can you move this topic in the contacts category? Thanks!

1 Like

Hello, just updated to latest version and stuff is working pretty well.
Thank you.

btw. thank you as well for changelog at https://github.com/nextcloud/contacts/releases/tag/v1.5.3

Just wanted to say that I have upgraded to 11.02, and the export functionality is back, and it works!
Thank you very much! I have now switched from owncloud to nextcloud. I have also recommended nextcloud to a co-worker/friend, and he is using it now and is impressed.

Best regards --Tad

1 Like

Hej,
I really would like to use that with my NC 12/contacts 1.5.3 setup, but both of these URL versions (with SERVERNAME and USERNAME replaced of course) ony result in a “Not Found” error page.

https://[SERVER]/remote.php/dav/addressbooks/users/[USERNAME]/contacts?export
https://[SERVER]/remote.php/dav/addressbooks/users/[USERNAME]/kontakte?export

Is this still supported? Am I doing it wrong? What would I have to do? Are there alternatives? :slight_smile:

You can find the right .vcf file with a click on “Einstellungen” and the download icon of the adressbook.

I have an additional slash in the URL (I don’t know, if this may be a problem).
https://[SERVER]/remote.php/dav/addressbooks/users/[USERNAME]/Contacs/?export

1 Like

That link is not really correct. “contacts” right before export is not a fixed string. It has to be the ‘uri’ of the according addressbook. This might be different from “contacts” due to localization (see rakeknivens comment above) or naming of additionaly created addressbooks. The ‘uri’ can be looked up in table ‘oc_addressbooks’ in your Nextcloud database (prefix might be different from ‘oc_’ in your installation). So the link should be:
https://[SERVER]/remote.php/dav/addressbooks/users/[USERNAME]/[URI]?export

Though the download also does work with an additional slash in the URL, I would leave the slash out. The download-link of the contacts-app doesn’t have it either.

There is also the script calcardbackup which has the advantage that no cleartext passwords have to be stored on the server and added calendars/addressbooks will be backed up automatically without the need to adapt a script.

Cheers, Bernie_O

1 Like

Wow, how could I miss that! Thanks a ton! :thumbsup: