better install documentation (cron jobs)

This commit is contained in:
Jérémy Lecour 2019-12-19 14:17:15 +01:00 committed by Jérémy Lecour
parent 24ffa76dfc
commit 2aeba60095

View file

@ -16,16 +16,16 @@ The chroot jails depend on these packages
~~~ ~~~
apt install \ apt install \
bash \ bash \
coreutils \ coreutils \
sed \ sed \
dash \ dash \
mount \ mount \
rsync \ rsync \
openssh-server \ openssh-server \
openssh-sftp-server \ openssh-sftp-server \
libc6-i386 \ libc6-i386 \
libc6 libc6
~~~ ~~~
## Client dependencies ## Client dependencies
@ -37,11 +37,13 @@ The clients only require OpenSSH and rsync.
Edit the root crontab Edit the root crontab
~~~ ~~~
# crontab -e # $editor /etc/cron.d/bkctld
+ 30 10 * * * /usr/sbin/bkctld inc && /usr/sbin/bkctld rm + MAILTO=alert4@evolix.net
+ 30 11 * * * root /usr/sbin/bkctld inc && /usr/sbin/bkctld rm
+ 30 23 * * * root /usr/share/scripts/check-incs.sh 1> /dev/null
~~~ ~~~
## Notes ## Notes
If you want mutiples backups in a day (1 by hour maximum) you can If you want mutiples backups in a day (1 by hour maximum) you can
run `bkctld inc` multiples times, if you want to keep incremental run `bkctld inc` multiples times, if you want to keep incremental
backups **for ever**, just don't run `bkctld rm`. backups **for ever**, just don't run `bkctld rm`.