Code: Select all
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
# crontab for rsnapshot
00 01 * * mon /usr/bin/rsnapshot -c /etc/rsnapshot/backup1 weekly
00 02 * * * /usr/bin/rsnapshot -c /etc/rsnapshot/backup2 daily
Code: Select all
#!/bin/sh
/usr/bin/rsnapshot -c /etc/rsnapshot/backup2 daily
EDIT: My config now has the .sh files in them instead of rsnapshot as a permanant thing. I noticed my .sh files were not chmoded 644 and I read this fixed an issue for someone on these forums with crontab running scripts/files. Hopefully that may fix it although Id still like confirmation everything in crontab is okay.