当前位置: 技术问答>linux和unix
在Linux使用crontab设置自动执行备份脚本问题?
来源: 互联网 发布时间:2017-02-10
本文导语: 0 1 * * 0 /u01/app/oracle/RmanBackup/BackupFull.sh >>/u01/app/oracle/RmanBackup/BackupFull.log 0 1 * * 3 /u01/app/oracle/RmanBackup/BackupFull.sh >>/u01/app/oracle/RmanBackup/BackupFull.log 30 1 * * 1-2 /u01/app/oracle/RmanBackup/Incr1.sh >>/u01/app/oracle/RmanBackup/In...
0 1 * * 0 /u01/app/oracle/RmanBackup/BackupFull.sh
>>/u01/app/oracle/RmanBackup/BackupFull.log
0 1 * * 3 /u01/app/oracle/RmanBackup/BackupFull.sh
>>/u01/app/oracle/RmanBackup/BackupFull.log
30 1 * * 1-2 /u01/app/oracle/RmanBackup/Incr1.sh
>>/u01/app/oracle/RmanBackup/Incr.log
30 1 * * 4-6 /u01/app/oracle/RmanBackup/Incr1.sh
>>/u01/app/oracle/RmanBackup/Incr.log
这写的有错误吗?
我在Linux使用crontab设置自动执行备份脚本 总是写不了
[oracle@zlk ~]$ crontab -e
crontab: installing new crontab
"/tmp/crontab.XXXXo39zlr":2: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?
>>/u01/app/oracle/RmanBackup/BackupFull.log
0 1 * * 3 /u01/app/oracle/RmanBackup/BackupFull.sh
>>/u01/app/oracle/RmanBackup/BackupFull.log
30 1 * * 1-2 /u01/app/oracle/RmanBackup/Incr1.sh
>>/u01/app/oracle/RmanBackup/Incr.log
30 1 * * 4-6 /u01/app/oracle/RmanBackup/Incr1.sh
>>/u01/app/oracle/RmanBackup/Incr.log
这写的有错误吗?
我在Linux使用crontab设置自动执行备份脚本 总是写不了
[oracle@zlk ~]$ crontab -e
crontab: installing new crontab
"/tmp/crontab.XXXXo39zlr":2: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?
|
一条只能写一行,sh后面别换行