Thursday 2 October 2014

RMAN Automatic Script : Backup Script Incremental Level 0 - 1

rman <<EOF
connect target rman/rman_oracledba@test2
connect catalog rman/rman_oracledba@test1
run { allocate channel d1 type disk;
backup incremental level 0 
filesperset 2
format '/data/oracle8/BACKUP/rman_LVL0_%d.%t.%p.%c.bus'
database;
}
EOF

rman <<EOF
connect target rman/rman_oracledba@test2
connect catalog rman/rman_oracledba@test1
run { allocate channel d1 type disk;
backup incremental level 1 
filesperset 2
format '/data/oracle8/BACKUP/rman_LVL1_%d.%t.%p.%c.bus'
database;
}
EOF

No comments:

Post a Comment