From 2aeba60095c2dd341fb74f242f9d4862b5bc1d88 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 19 Dec 2019 14:17:15 +0100 Subject: [PATCH] better install documentation (cron jobs) --- docs/install.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/install.md b/docs/install.md index 22d3aed..d27adab 100644 --- a/docs/install.md +++ b/docs/install.md @@ -16,16 +16,16 @@ The chroot jails depend on these packages ~~~ apt install \ - bash \ - coreutils \ - sed \ - dash \ - mount \ - rsync \ - openssh-server \ - openssh-sftp-server \ - libc6-i386 \ - libc6 + bash \ + coreutils \ + sed \ + dash \ + mount \ + rsync \ + openssh-server \ + openssh-sftp-server \ + libc6-i386 \ + libc6 ~~~ ## Client dependencies @@ -37,11 +37,13 @@ The clients only require OpenSSH and rsync. Edit the root crontab ~~~ -# crontab -e -+ 30 10 * * * /usr/sbin/bkctld inc && /usr/sbin/bkctld rm +# $editor /etc/cron.d/bkctld ++ 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 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 -backups **for ever**, just don't run `bkctld rm`. \ No newline at end of file +backups **for ever**, just don't run `bkctld rm`.