# vi /etc/cron.daily/backup

#!/bin/sh

DayOfWeek=$(date +"%u")

monit -g backup stop

if [ $DayOfWeek = 7 ]; then
/root/home/mondo-backup
fi

/root/home/rsync-backup

monit -g backup start

[root@server cron.daily]# cat /root/home/mondo-backup
#!/bin/bash

# monit -g backup stop

mondoarchive -O -i -E "/dev/sda|/mnt/iso|/mnt/share|mnt/backup" -d /mnt/share/samba/Backup -9 -N -s 5G -K 0 -z -F >/dev/null
mv /mnt/share/samba/Backup/mondorescue-1.iso /mnt/share/samba/Backup/`date '+%y%m%d%H%M'`_mondorescue-1.iso

# monit -g backup start

exit 0

[root@server cron.daily]# cat /root/home/rsync-backup
backdir=/mnt/share/samba/Backup
date=`date "+%Y%m%dT%H%M"`
rsync -aP -x --delete --delete-excluded --exclude-from /root/home/rsync-backup-excludes.txt --link-dest=$backdir/current / $backdir/backup-$date >/var/log/rsync-backup.log
rm -f $backdir/current
ln -s backup-$date $backdir/current

[root@server cron.daily]# cat /root/home/rsync-backup-excludes.txt
*.iso
/tmp
/var/cache