I discovered only today the tool Vdirsyncer to synchronize CalDAV and CardDAV.
https://vdirsyncer.pimutils.org/en/stable/index.html
That's great because otherwise I was planning to code a similar tool by myself to synchronise the contacts between my different CardDAV servers for backup purpose.