I have tried, with the help I could find here and there, to make a script to sync only our contacts to nextcloud, see below one of the version that I think should be working. Unfortunately, all my attempt failed. I always get the same error : [ERROR] error code from SyncEvolution fatal error (local, status 10500) : no such datastore(s): NextcloudContactDatastore Any idea why do I get this error and how to fix it? How to improve the script? Cheers to all, #!/bin/bash # It is script to sync contacts between my Nexus 5 with UBports ubuntu touch OTA 12 and a nextcloud server # --------------- [ Server ] ---------------- # echo "What is the URL of your nextcloud server?": read NEXTCLOUD_URL echo "What is your username?": read USERNAME echo "What is your password?": read PASSWORD # ----------------- [ Phone ] ----------------- # CONTACTS_CONFIG_NAME="NextcloudContactConf" CONTACTS_NAME="NextcloudContactDatastore" echo "What name do you want to give to your local Adressbook?": read CONTACTS_VISUAL_NAME CRON_FREQUENCY="hourly" export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) #Create contact list syncevolution --create-database backend=evolution-contacts database=$CONTACTS_VISUAL_NAME #Create Peer syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$NEXTCLOUD_URL/remote.php/dav/addressbooks/users/$USERNAME/contacts/ keyring=no target-config@$CONTACTS_CONFIG_NAME #Create New Source syncevolution --configure backend=evolution-contacts database=$CONTACTS_VISUAL_NAME @default $CONTACTS_NAME #Add remote database syncevolution --configure database=$NEXTCLOUD_URL/remote.php/dav/addressbooks/users/$USERNAME/contacts/ backend=carddav target-config@$CONTACTS_CONFIG_NAME $CONTACTS_NAME #Connect remote contact list with local databases syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@$CONTACTS_CONFIG_NAME username=$USERNAME password=$PASSWORD $CONTACTS_CONFIG_NAME $CONTACTS_NAME #Add local database to the source syncevolution --configure sync=two-way backend=evolution-contacts database=$CONTACTS_VISUAL_NAME $CONTACTS_CONFIG_NAME $CONTACTS_NAME #Start first sync syncevolution --sync refresh-from-remote $CONTACTS_CONFIG_NAME $CONTACTS_NAME #Add Sync Cronjob sudo mount / -o remount,rw COMMAND_LINE="export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CONTACTS_CONFIG_NAME" sudo sh -c "echo '$COMMAND_LINE' > /sbin/sogosync" sudo chmod +x /sbin/sogosync CRON_LINE="@$CRON_FREQUENCY /sbin/sogosync" (crontab -u phablet -r;) # only if no other cronjob already exist in the crontab (crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet - sudo mount / -o remount,ro sudo service cron restart