More languages
More actions
The crontab
The script is called from the root user's crontab, configured to run at 40 minutes past the hour every 10 hours.
root@prolewiki:/etc/cron.daily# crontab -l 40 */10 * * * /root/bin/backup.sh | tee -a /var/log/backup.sh.log
The log
- Cron redirects the output of the script to
/var/log/backup.sh.log
- Zip logs output to
/var/log/backup.sh.zip.log
There is currently no log rotation/truncation set up!!
The code
See /root/bin/backup.sh