crontab -e 里写 0 3 * * * /path/to/backup.sh,每天凌晨三点准时跑备份,时间、日期、星期五段排好就能用。改完先用 crontab -l 对一遍,别等第二天才发现写错了。