SUroot
Extreme Android User
Any bash experts? crontab runs backup.sh on schedule only. However, the last command in backup.sh (date >) seems to run every minute. Why? The backup doesn't keep running...
Not that it should matter but:
Really annoying me. Why does the date write to file every minute? I just want it to write at the end of each backup. The rsync works correctly and only runs when scheduled. Any help is greatly appreciated. Thanks.
Not that it should matter but:
Code:
#!/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/sbin
export PATH
sudo rsync -rltDvu --modify-window=1 --progress --delete-excluded --exclude-from=/home/dan/bash/exclude.txt / /mnt/NAS/backup/ubuntu
date > /home/dan/bash/backup.log
Really annoying me. Why does the date write to file every minute? I just want it to write at the end of each backup. The rsync works correctly and only runs when scheduled. Any help is greatly appreciated. Thanks.