Documentation

Help for MailMigrata and the whole suite

Migrate Nextcloud Contacts to Google Contacts

This article explains how to copy contacts from a self-hosted Nextcloud server into Google Contacts with ContactMigrata. ContactMigrata is free and moves contacts only. It copies records directly rather than through CSV. See Why not CSV.

Most support requests are caused by the wrong URL. Use .../remote.php/dav/addressbooks/users/<user>/. The Contacts web app URL (/apps/contacts) does not work.


Limitations

  • Mail, calendars, and files are not migrated. Use MailMigrata, CalendarMigrata, and FileMigrata.
  • The company directory (GAL) is not migrated.
  • ContactMigrata is not a CRM. It does not merge two contacts that share a display name.
  • Duplicate detection uses each contact's hidden ID (UID) and works within one job only. A second job into the same address book creates duplicates. See Duplicates and UIDs.
  • Nextcloud Files, Talk, and Circles are not migrated.
  • KIND:group contacts become Google labels only where Google supports them. Others are not migrated.
  • localhost addresses and self-signed TLS certificates fail. The ContactMigrata engines must reach the host. See CardDAV discovery and SSRF.

What is migrated

  • People: names, email addresses, phone numbers, postal addresses, organisation, job title, notes, websites, and birthday, where the destination has a matching field. See vCard fields that survive.
  • Groups: named lists, such as Vendors or Family, where the destination can store an equivalent.
  • Photos: up to about 512 KB. Larger photos are skipped; the rest of the contact is copied. See Contact photos and size limits.

Prerequisites

  • A Nextcloud app password.
  • The exact CardDAV URL.
  • A host reachable from the ContactMigrata engines.
  • Write access to the destination Google account.

Address book mapping

  • Map each Nextcloud address book to My contacts or to a label.

Steps

  1. Connect the source. See Connect Nextcloud Contacts.
  2. Connect the destination. See Connect Google Contacts.
  3. If the host is on a private IP address and you have made it reachable, enable Allow private network.
  4. Select one address book for the first run.
  5. Run the job. Pause takes effect between batches.
  6. Check a group, a photo, and a contact with two email addresses.
  7. If the job stops, resume the same job. Do not start a second job into the same address book.

Troubleshooting

  • Timeout: The server cannot be reached. Fix the network path, then retry.
  • SSRF error: The private IP address needs the allow option.
  • Destination is Microsoft 365: See Nextcloud Contacts to Microsoft 365.

Related articles