rq=`date +"%m%d"`
su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
rq=`date +"%m%d"`
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
rq=`date +"%m%d"`
su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"
0 2 1 * * /oracle/exp_comp.sh # 每月 1 號 02:00 完全備份
30 2 * * 0-5 /oracle/exp_incr.sh # 週一~六 02:30 增量備份
45 2 * * 6 /oracle/exp_cumu.sh # 週日 02:45 累積備份
時間表可依需求調整,以上僅為範例。