谁能给个通过rman备份一周的经典案例?
周一到周日的备份
要怎么做?
周一做全备份,周二做增量备份,周三.........................
------解决方案--------------------全备份:backup incremental level 0 database;
差异增量备份:backup incremental level 1 database;
累积增量备份:backup incremental level 1 cumulative database;
------解决方案--------------------
------解决方案--------------------全量备份 : backup incremental level 0 format='*level0*' database;
差异增量备份:backup incremental level 1 format='*level1*' database;
累积增量备份:backup incremental level 2 format='*level2*' database;
level0.sh
#!/bin/bash
rman target/ <<EOF
backup incremental level 0 format='*level0*' database;
EOF
level1.sh
#!/bin/bash
rman target/ <<EOF
backup incremental level 1 format='*level0*' database;
EOF
level2.sh
#!/bin/bash
rman target/ <<EOF
backup incremental level 2 format='*level0*' database;
EOF
crontabrman
* 23 * * 1,2,3,5,6 sh level1.sh
* 23 * * * 4 sh level2.sh
* 23 * * * 7 sh level0.sh