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"

猜你喜欢

转载自zjutsoft.iteye.com/blog/1753940