forked from inverse-inc/packetfence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packetfence.cron.d
18 lines (13 loc) · 921 Bytes
/
packetfence.cron.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# /etc/cron.d/packetfence: crontab entries for the packetfence package
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Database backup and maintenance script
30 00 * * * root /usr/local/pf/addons/backup-and-maintenance.sh
# Renew any Let's Encrypt certificates the first of the month
1 0 1 * * root /usr/local/pf/bin/pfcmd renew_lets_encrypt
# Active / Passive synchronization
#SYNC_SERVER_IP=X.X.X.X
# Synchronization for /usr/local/pf
#*/15 * * * * pf [ ! -d /var/lib/mysql/pf ] && rsync -e 'ssh -i /usr/local/pf/.ssh/packetfence-sync' --delete -logDprtuv --exclude=logs/* --exclude=var/* --exclude=.ssh/* $SYNC_SERVER_IP:/usr/local/pf /usr/local
# Synchronization for /usr/local/fingerbank
#*/15 * * * * pf [ ! -d /var/lib/mysql/pf ] && rsync -e 'ssh -i /usr/local/pf/.ssh/packetfence-sync' --delete -logDprtuv --exclude=logs/* $SYNC_SERVER_IP:/usr/local/fingerbank /usr/local