Command Options for BRBACKUP
This section describes the command options for BRBACKUP. If you start BRBACKUP without command options, the values in the Initialization Profile init<DBSID>.sap are used. Unless otherwise specified in the initialization profile init<DBSID>.sap, BRBACKUP starts an offline complete backup to a local tape device, with a storage capacity of 1200 MB and no file compression.
For more information about features common to both tools, see Common Features of BRBACKUP and BRARCHIVE.
If you use BRBACKUP with command options, these override the corresponding values in the initialization profile. To use the options, you can specify either the letter indicated or the complete word.
This is the full command syntax:
Syntax
-
brbackup
-
[-a|-archive [<bra_options>]]
-
[-b|-backup <log_name>|last [-bd|-backup_delete <log_name>|last]
-
[-c|-confirm [force]]
-
[-d|-device tape|disk|pipe|disk_copy|disk_standby|tape_auto|pipe_auto|tape_box|pipe_box|util_file| util_file_online|util_vol|util_vol_online|stage|stage_copy|stage_standby|rman_prep|rman_util|rman_disk|rman_stage]
-
[-db|-delete_backup <log_name>|last]
-
[-e|-execute <number>]
-
[-f|-fillup <log name1>[<log name2>,..]|<yyyy-mo-dd hh.mi.ss|<days>|last]
-
[-h|-help [version]]
-
[-i|-initialize [force|show]]
-
[-k|-compress no|yes|hardware|only]
-
[-l|-language E|D]
-
[-m|-mode all|all_data|full|incr|<tablespace_name>|<file_ID>|<file_ID1>-<file_ID2>|<generic_path>|<object list>]|sap_dir|ora_dir|all_dir|partial|non_db]
-
[-n|-number <number of tapes>]
-
[-o|-output dist|time[,time|dist]]
-
[-p|-profile <profile>]
-
[-q|-query [check|nolog|split]]
-
[-r|-parfile <parameter_file>]
-
[-s|-saveset 1|2|3|4|tsp|all]
-
[-t|-type online|online_cons|offline|offline_force|offline_standby|offline_stop|online_split|offline_split| online_mirror|offline_mirror|online_standby|offstby_split|offstby_mirror]
-
[-u|-user [<user>[/<password>]]]
-
[-v|-volume <volume>|<volume list>|SCRATCH]
-
[-w|-verify [use_dbv|only_dbv|only_conf|use_rmv|only_rmv]]
-
[-V|-VERSION [ALL]]
参考:https://help.sap.com/saphelp_nwpi711/helpdata/en/46/ab9acaba0b62dbe10000000a1553f7/frameset.htm
例如:
备份时使用的CMD命令(也可制作为Bat文件)为:
D:\usr\sap\PRD\SYS\exe\uc\NTAMD64\brbackup.exe -p initPRD.sap -u system/manager1 -d disk -t offline_force -m full -k yes -c
命令选项解释:
-m:备份模式
-m:-mode all|all_data|full|incr|<tablespace_name>|<file_ID>|
-t : 备份类型
-t:-type online|online_cons|offline|offline_force|offline_standby|offline_stop|online_split|offline_split|online_mirror|offline_mirror|online_standby|offstby_split|offstby_mirror]
-c:-confirm [force],确认
-u:-user [<user>[/<password>]]
-d:-device tape|disk|pipe|disk_copy|disk_standby|tape_auto|
-k:-compress no|yes|hardware|only|
-v:-volume <volume>|<volume list>|SCRATCH]
-p:-profile <profile>
需要了解SAP服务器上初始配置文件init<DBSID>.sap:如果将BRBACKUP与命令选项一起使用,则这些命令将覆盖初始化配置文件(我的文件名是:initPRD.sap)中的相应值。