1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-29 16:55:32 +00:00
Radicale/versioning.md

27 lines
749 B
Markdown
Raw Normal View History

2016-08-11 19:03:50 +02:00
---
layout: page
title: Versioning
permalink: /versioning/
---
2017-05-24 19:13:47 +02:00
This page describes how to keep track of all changes to calendars and
address books with **git** (or any other version control system).
2017-05-27 12:06:41 +02:00
The repository must be initialized by running `git init` in the file
2017-05-24 19:13:47 +02:00
system folder. Internal files of Radicale can be excluded by creating the
2017-05-27 12:06:41 +02:00
file `.gitignore` with the following content:
2017-05-24 19:13:47 +02:00
```
.Radicale.cache
.Radicale.lock
.Radicale.tmp.*
```
2017-05-27 12:06:41 +02:00
The configuration option `hook` in the `storage` section must be set to
2017-05-24 19:13:47 +02:00
the following command:
2017-05-27 12:06:41 +02:00
```shell
2017-05-24 19:13:47 +02:00
git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
```
The command gets executed after every change to the storage and commits
the changes into the **git** repository.