🤖 Planifier la synchro une fois par jour à 21 h, du lundi au samedi

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
zeguiguiandClaude Opus 5.5 committed 2026-11-17 10:16:39 +01:00
1 parent f6a01b85e1
commit 5b05311b82
2 files changed
+11 -75

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
# Synchronisation toutes les heures, de 7 h à 20 h, du lundi au vendredi.
# Synchronisation une fois par jour à 21 h, du lundi au samedi.
# Remplacer /chemin/vers/nextlsynch par le dossier d'installation.
# Installation Python (venv) :
0 7-20 * * 1-5 cd /chemin/vers/nextlsynch && .venv/bin/ldap2nextcloud >> state/sync.log 2>&1
0 21 * * 1-6 cd /chemin/vers/nextlsynch && .venv/bin/ldap2nextcloud >> state/sync.log 2>&1
# Variante Docker :
# 0 7-20 * * 1-5 cd /chemin/vers/nextlsynch && docker compose -f deploy/docker-compose.yml run --rm sync >> state/sync.log 2>&1
# 0 21 * * 1-6 cd /chemin/vers/nextlsynch && docker compose -f deploy/docker-compose.yml run --rm sync >> state/sync.log 2>&1