rman备份脚本:

#!/bin/bash
source /home/oracle/.bash_profile

rman target / << EOF
run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
backup incremental level 0 database include current controlfile plus archivelog delete all input;
release channel ch1;
release channel ch2;
}
quit;
EOF

crontab设置自动任务:

$crontab -l

0 1 * * * /home/oracle/backup.sh >> /home/oracle/backup.log

 

相关文章:

  • 2021-11-29
  • 2021-07-16
  • 2021-12-30
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-05-23
猜你喜欢
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案