1 Backup CardDAV vCards into git
2 ==============================
4 Small script to backup address books stored on a CardDAV server into
5 a local git repository.
6 Git commit messages contain the names of modified, added and deleted contacts
7 so it's easy to find out when someone was modified, and thus easy to find
10 Tested with vdirsyncer 0.19.2 and Nextcloud 23.
15 1. Install `vdirsyncer`__ 0.19.x
16 2. Clone this repository
17 3. Run ``./backup.sh``. Directory ``contacts`` will be created and a
18 sample sync configuration will be added
19 4. In ``contacts`` directory adjust ``vdirsyncer-config``
22 vdirsyncer --config=vdirsyncer-config discover
24 Create all local collections when asked.
25 5. In ``contacts`` run::
27 vdirsyncer --config=vdirsyncer-config metasync
29 6. Run ``./backup.sh`` which should commit all contacts to git.
30 7. Setup a cronjob on your home server to run ``backup.sh`` every night
33 __ http://vdirsyncer.pimutils.org/en/stable/
38 This script was written by `Christian Weiske <https://cweiske.de/>`_
39 and is licensed under the AGPL v3.