日期:2014-05-16  浏览次数:20636 次

linux 务计划 oracle 远程自动备份
Linux 任务计划 crontab -e 编辑任务计划 crontab -r 删除任务计划 crontab -l 查看任务计划。

52 16 * * 0-6 ./backup.sh

52代表分钟  16 代表小时 * 天  * 月  0-6 代表周日-周六 就每天执行这个任务。

rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp procity_xmjp/US_211xm owner=procity_xmjp file=/ylx/DB_XM/xmjp/xmjp_$rq.dmp"