标签:
脚本原创,盗转死妈
http://blog.csdn.net/ashic/article/details/46311573
-h 查看帮助信息
[oracle@gc1 ~]$ sh backup.sh -h
The following information teach you how to use this script
backup.sh --full
backup.sh --incr0 <RMAN_HOME>
backup.sh --incr1 <RMAN_HOME>
THE <RMAN_HOME> is the place where you want to store the backup
After you set the RMAN_HOME , The script will create the following directory:
-- 2015_06_01
|-- archlog --This directory store your archivelog backup
|-- ctlfile --This directory store your controlfile bakcup
|-- data --This directory store your backup
| |-- incr0 --This is your incr0 backupset
-- log --This is your backup log directory
|-- dbbak.log --This log records the backup start and finish time points
|-- incr0_2015-06-01.log --This your backup log records the rman output information
backup.sh --help
Usage:
backup.sh --full <rman full backup>
backup.sh --incr0 <incremental 0 bakcup>
backup.sh --incr1 <incremental 1 backup>
backup.sh --help <help>
#!/bin/bash
cmd=$1RMAN --full --incr0 --incr1三合一脚本
标签:
原文地址:http://blog.csdn.net/ashic/article/details/46311573