Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1210189
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-16 19:50:47

完全备份的SH文件:exp_comp.sh
  rq=` date +"%m%d" `
  su - -c "exp system/manager full=y inctype=complete file=//export/db_comp$rq.dmp"
  累计备份的SH文件:exp_cumu.sh
  rq=` date +"%m%d" `
  su - -c "exp system/manager full=y inctype=cumulative file=//export/db_cumu$rq.dmp"
  增量备份的SH文件: exp_incr.sh
  rq=` date +"%m%d" `
  su - -c "exp system/manager full=y inctype=incremental file=//export/db_incr$rq.dmp"
  root用户crontab文件
  /var/spool/cron/crontabs/root增加以下内容
  0 2 1 * * //exp_comp.sh
  30 2 * * 0-5 //exp_incr.sh
  45 2 * * 6 //exp_cumu.sh
  当然这个时间表可以根据不同的需求来改变的,这只是一个例子。
阅读(501) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~