分类: 服务器与存储
2009-07-14 11:31:35
Backup command and result
available_media.cmd :
显示系统可用的备份介质,
C:\Program Files\VERITAS\NetBackup\bin\goodies>available_media.cmd
media media robot robot robot side/ ret size status
ID type type # slot face level KBytes
----------------------------------------------------------------------------
DataStore pool
NetBackup pool
None pool
tpclean
NAME
tpclean - manages tape drive cleaning
SYNOPSIS
/usr/openv/volmgr/bin/tpclean -L
/usr/openv/volmgr/bin/tpclean -C drive_name
/usr/openv/volmgr/bin/tpclean -M drive_name
DESCRIPTION
tpclean allows you to monitor Media Manager tape drive usage and optionally
configure tape drives to be automatically cleaned (except drives in ACS, LMF, ODL, RSM,
or TLH robots; or shared (SSO) drives).
#tpclean -L
Drive Name Type Mount Time Frequency Last Cleaned Comment
********** **** ********** ********** ************ *******
qsci_drv0 qscsi 0.0 0 N/A
rob_A_drv1 8mm* 11.4 30 14:33 05/29/92
4mm_drv5 4mm 5.6 10 13:01 06/02/92
dlt_drv6 dlt 3.0 0 N/A
The following example sets the cleaning frequency for the drive named qsci_drv0 to 25
hours. The drive will be flagged as needing cleaning after 25 hours of mount time has
occurred.
tpclean -F qsci_drv0 25
check_coverage.cmd
比较己备份镜像和实际备份内容的差异
C:\Program Files\VERITAS\NetBackup\bin\goodies>check_coverage.cmd
File System Backup Coverage Report (UNIX and WindowsNT/2000/XP/95/98/Me only)
-----------------------------------------------------------------------------
Key: * - Policy is not active
UNCOVERED - Mount Point not covered by an active policy
MULTIPLE - Mount Point covered by multiple active policies
CLIENT: seasky
Drive Letter Backed Up By Policy Notes
------------ ------------------- -----
C:\ UNCOVERED
D:\ UNCOVERED
E:\ UNCOVERED
F:\ UNCOVERED
G:\ UNCOVERED
H:\ UNCOVERED
System_State:\ UNCOVERED
C:\Program Files\VERITAS\NetBackup\bin\goodies>supportnow.exe
Vmpool
显示,增加,修改,删除卷池
C:\Program Files\VERITAS\Volmgr\bin>vmpool
Usage: vmpool [-h volume_database_host]
{
-listall [-b] |
-listscratch |
-add
-change
-delete
-set_scratch
-unset_scratch
}
C:\Program Files\VERITAS\Volmgr\bin>vmpool -listall
===================================================================
pool number: 0
pool name: None
description: the None pool (for anyone)
pool host: ANYHOST
pool user: ANY
pool group: NONE
================================================================================
pool number: 1
pool name: NetBackup
description: the NetBackup pool
pool host: ANYHOST
pool user: 0 (???)
pool group: NONE
================================================================================
pool number: 2
pool name: DataStore
description: the DataStore pool
pool host: ANYHOST
pool user: 0 (???)
pool group: NONE
bpconfig
显示或修改全局设置(modify or displays the netbackup global configuration attributes)
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpconfig
*NULL* 10 12 1 2 28 0 0 0 0 1 24 1 0 2
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpconfig ?
bpconfig: unrecognized option ?
USAGE: bpconfig [-cd seconds] [-ha hours] [-kl days] [-kt days]
[-ma [address]] [-mdtm drives]
[-sto seconds] [-mj number]
[-period hours] [-ppi 0|1] [-prep hours] [-to seconds]
[-max_copies 2...10]
[-tries times] [-wi minutes] [-v] [-M master_server,...]
bpconfig [-L|-l|-U [-v] [-M master_server,...]]
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpconfig -L -M SeaSky
Mail Admin: *NULL*
Wakeup Interval: 10 minutes
Max Jobs/Client: 1
Backup Tries: 2 in 12 hours
Keep Logs: 28 days
Max drives/master: 0
Compress DB Files: (not enabled)
Media Mnt Timeout: 0 minutes (unlimited)
Postprocess Image: immediately
Display Reports: 24 hours ago
Keep TIR Info: 1 days
Prep Interval: 4 hours (default)
Max Backup Copies: 2
Vmadm
基于字符的卷管理工具,为了生效vmadm所做的任何更改, media manager volume daemon –VMD必须激活, C:\Program Files\VERITAS\Volmgr\bin>vmd
vmadd
往卷库中增加卷
C:\Program Files\VERITAS\Volmgr\bin>vmadd
missing media type
Usage: vmadd -m
[-h
[-b
[-rn
[-rc1
[-p
[-op
vmchange
修改卷配置信息
C:\Program Files\VERITAS\Volmgr\bin>vmchange.exe
No change mode specified
Usage:
(Change volume-group residence)
vmchange.exe [-h
-vg_res -rt
-rh
(Change volume residence)
vmchange.exe [-h
-res -m
-rn
-rc1
(Change volume expiration date)
vmchange.exe [-h
-exp mm/dd/yy hh:mm:ss -m
(Change barcode for a volume)
vmchange.exe [-h
-barcode
[-rt
(Change media description)
vmchange.exe [-h
-d "
(Associate this volume with a different pool)
vmchange.exe [-h
-p
(Change volume's maximum mount count)
vmchange.exe [-h
-maxmounts
(Change volume's number of mounts count / cleanings)
vmchange.exe [-h
-n
(Change volume's media type)
vmchange.exe [-h
-new_mt
(Change volume's robot type)
vmchange.exe [-h
-new_rt
(Change volume group)
vmchange.exe [-h
-new_v
[-m
(Change a volume's vault name)
vmchange.exe [-h
-vltname
(Change the date a volume was sent to the vault)
vmchange.exe [-h
-vltsent mm/dd/yy hh:mm:ss -m
(Change the date when a volume returns from the vault)
vmchange.exe [-h
-vltreturn mm/dd/yy hh:mm:ss -m
(Change a volume's vault slot number)
vmchange.exe [-h
-vltslot
(Change a volume's vault session id)
vmchange.exe [-h
-vltsession
(Eject ACS, TLM, or TLH volumes)
vmchange.exe -api_eject -map
[-h
-res -ml
-rn
(Get robot information for TL8 or TLD)
vmchange.exe -res -robot_info -verbose
-rn
(Eject TL8 or TLD volumes)
vmchange.exe -res -multi_eject -w -verbose
-rn
-ml
(Inject TL8 or TLD volumes)
vmchange.exe -res -multi_inject -w -verbose
-rn
vmcheckXXXX
报告机械臂带库的介质组分
C:\Program Files\VERITAS\Volmgr\bin>vmcheckxxx.exe
Usage: vmcheckxxx -rt robot_type -rn robot_number
[-rh robot_control_host] [-h volume_database_host]
[[-if inventory_filter_value] [-if inventory_filter_value] ...]
[-full] [-list]
vmdelete
删除卷
C:\Program Files\VERITAS\Volmgr\bin>vmdelete.exe
missing media ID or volume group to delete
Usage: vmdelete.exe [-h
[-m
vmquery
查寻卷
C:\Program Files\VERITAS\Volmgr\bin>vmquery.exe
Usage: vmquery.exe [-h
[-b | -w]
{
-a |
-m
-v
-rn
-rt
-mt
-p
-pn
-res
-assignbyid
-deassignbyid
}
CAUTION: The act of unassigning volumes may lead to inconsistencies
between the application media database and volume database,
leading to the possibility for data loss. You must expire the
media from an application interface.
C:\Program Files\VERITAS\Volmgr\bin>vmquery -a
Vmupdate
清点机械壁带库的介质组分并更新卷数据库
C:\Program Files\VERITAS\Volmgr\bin>vmupdate
Usage: vmupdate -rt robot_type -rn robot_number
[-rh robot_control_host] [-h volume_database_host]
[[-if inventory_filter_value] [-if inventory_filter_value] ...]
[-full] [-recommend] [-interactive]
[-involgrp volume_group] [-outvolgrp volume_group]
[-mt media_type] [-p pool_name] [-use_barcode_rules]
[-use_seed] [-mp media_id_prefix] [-no_sides]
[-no_format_optical] [-overwrite_labels] [-empty_map]
Tpconfig
配置磁带命令
C:\Program Files\VERITAS\Volmgr\bin>tpconfig
Usage:
(Display device configuration)
tpconfig -d
tpconfig -dl
tpconfig -l
tpconfig -lsavdbhost
(Add drive)
tpconfig -add -drive -type
[-asciiname
[-cleanfreq
[-robot
[-robdrnum
[-ACS
(Update drive)
tpconfig -update -drive
[-type
[-newasciiname
[-cleanfreq
[-robot
[-robdrnum
[-ACS
(Delete drive)
tpconfig -delete -drive
tpconfig -multiple_delete -drive
(Add robot)
tpconfig -add -robot
[-vdbhost
tpconfig -add -robot
-port
[-vdbhost
tpconfig -add -robot
[-vdbhost
(Update robot)
tpconfig -update -robot
[-robtype
-port
-cntlhost
(Delete robot)
tpconfig -delete -robot
tpconfig -multiple_delete -robot
(Update standalone drive volume database host)
tpconfig -savdbhost
"4mm", for 4mm tape drives
"8mm", for 8mm tape drives
"8mm2", for 8mm tape drives (2)
"8mm3", for 8mm tape drives (3)
"dlt", for DLT tape drives
"dlt2", for DLT tape drives (2)
"dlt3", for DLT tape drives (3)
"hcart", for half-inch tape drives
"hcart2", for half-inch tape drives (2)
"hcart3", for half-inch tape drives (3)
"qscsi", for quarter-inch tape drives
"Tape0" for example
"acs", for Automated Cartridge System robotic libraries
"rsm", for Removable Storage Manager robotic libraries
"tl4", for Tape Library 4mm robotic libraries
"tl8", for Tape Library 8mm robotic libraries
"tld", for Tape Library DLT robotic libraries
"tlh", for Tape Library Half-inch robotic libraries
"tlm", for Tape Library Multimedia robotic libraries
"ts8", for Tape Stacker 8mm robotic libraries
"tsd", for Tape Stacker DLT robotic libraries
tpreq
请求挂卷及和指定的驱动名相关链
C:\Program Files\VERITAS\Volmgr\bin>tpreq.exe
File Name and media ID must be specified
Usage: tpreq -m media_id [-a (r/w)] [-d density] [-p poolname] [-f] filename
tpunmount.exe
从目录中移走磁带文件,并移走磁带卷从驱动器中
C:\Program Files\VERITAS\Volmgr\bin>tpunmount.exe
Usage: tpunmount [-f] filename [-force]
Do_not_eject_standalone option is specified in the vm.conf
Vmrule
管理微码
C:\Program Files\VERITAS\Volmgr\bin>vmrule
Usage: vmrule [-h volume_database_host]
{
-listall [-b] |
-add
-change
-delete
}
bpbakcup
往备份服务器上备份文件
C:\Program Files\VERITAS\NetBackup\bin\goodies>bpbackup
Specify either a listfile or a list of files on the command line.
USAGE: bpbackup [-p policy] [-s schedule] [-k "keyword phrase"]
[-L progress_log [-en]] [-S master_server...]
[-t policy_type] [-w [hh:mm:ss]]
-f listfile | filenames
bpbackup -i [-p policy] [-s schedule] [-k "keyword phrase"]
[-h hostname] [-L progress_log [-en]] [-S master_server...]
[-t policy_type] [-w [hh:mm:ss]]
EXIT STATUS 144: invalid command usage
Bpbackupdb
备份目录信息
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpbackupdb -help
USAGE: bpbackupdb [{-dpath disk_path} |
{-tpath tape_device_path [-m media_ID]} |
{-opath optical_device_path [-m media_ID]}]
[-nodbpaths] [-v] [path...]
bpdbjobs[/color
和NBU job数据库交互
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpdbjobs -help
bpdbjobs: [-report] [-M
[-file
bpdbjobs: -summary [-M
[-file
bpdbjobs: -delete [-M
bpdbjobs: -cancel [-M
bpdbjobs: -cancel_all [-M
[-M
bpdbjobs: -clean [-M
[-keep_hours
[-keep_successful_hours
[-verbose]
bpdbjobs: -version
bpdbjobs: -help
bpduplicate
创建一个备份拷贝
bperror
显示NBU状态及trouleshoot信息从NBU错误目录中得到
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bperror
USAGE: bperror {-S|-statuscode status_code}
[-r|-recommendation] [-p|-platform Unx|NTx] [-v]
bperror [-all|-problems|-media|{-backstat [-by_statcode]}]
[-L|-l|-U] [-columns ncols]
[-d mm/dd/yyyy HH:MM:SS|-hoursago hours] [-e mm/dd/yyyy HH:MM:SS]
[-client client_name] [-server server_name]
[-jobid job_id]
[-M master_server,...] [-v]
bperror [-s {severity[+]}|severity ...] [-t type ...]
[-L|-l|-U] [-columns ncols]
[-d mm/dd/yyyy HH:MM:SS|-hoursago hours] [-e mm/dd/yyyy HH:MM:SS]
[-client client_name] [-server server_name]
[-jobid job_id]
[-M master_server,...] [-v]
-by_statcode is used only with both -U and -backstat
Valid values for ncols:
40 or more
Valid values for severity:
ALL, DEBUG, INFO, WARNING, ERROR, CRITICAL
Valid values for type:
ALL, ARCHIVE, BACKSTAT, BACKUP, GENERAL,
MEDIADEV, RETRIEVE, SECURITY
Bpexpdate
改变备份介质目录的过期日期
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpexpdate.exe
bpexpdate: -m
[-host
[-M
bpexpdate: -deassignempty [-m
[-M
bpexpdate: -backupid
[-client
[-M
bpexpdate: -recalculate [-backupid
[-d
[-policy
[-M
legal values for sched: 0=full,1=differential incr,2=user,3=arch
4=cumulative incr
bpimport
引入备份
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpimport -help
bpimport: -create_db_info -id
[-passwd] [-local]
bpimport: [-l] [-p] [-pb] [-PD] [-PM] [-v] [-local] [-client
[-M master_server]
[-Bidfile
[-backup_copy
[-st
[-policy
[-pt
[-backupid
Valid values for sched_type:
FULL, INCR, CINC, UBAK, UARC, NOT_ARCHIVE
Valid values for policy_type:
Standard Apollo-wbak NetWare MS-Windows-NT
OS/2 AFS
Bplabel
往磁带介质上写标签
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bplabel
External media ID and density must be specified
Usage: bplabel -m media_ID -d density [-o] [-p volume_pool_name]
[-n drive_name | -u device_number]
bplist
列出备份及归档的文件
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bplist -help
USAGE: bplist [-A | -B] [-C client] [-S master_server]
[-t policy_type] [-k policy] [-keyword "keyword phrase"]
[-F] [-R [n]] [-b | -c | -u] [-l] [-r] [-T] [-I] [-PI]
[-unix_files | -nt_files] [-Listseconds] [-flops file_options]
[-s mm/dd/yyyy [HH:MM:SS]] [-e mm/dd/yyyy [HH:MM:SS]] [filename]
bppldelete
删除策略
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppldelete
bppldelete:
bppllist
列出备份策略
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppllist -help
bppllist: [
[-M
[-hwos]
[-byclient
bpmedia
freeze,unfreeze,suspend,unsuspend
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedia
bpmedia: operation not specified
bpmedia:
-freeze|-unfreeze|-suspend|-unsuspend -m
-movedb -m
bpmedialist
显示介质状态
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist -help
USAGE: bpmedialist [-mlist] [-U|-l|-L] [-m media_id] [-rl ret_level]
[-d density] [-p pool_name]
[-h host_name | -M master_server...] [-v]
bpmedialist -summary [-U|-L] [-brief] [-p pool_name]
[-h host_name | -M master_server...] [-v]
bpmedialist -mcontents -m media_id [-U|-l|-L] [-d density]
[-h host_name | -M master_server...] [-v]
bpmedialist -count -rt robot_type -rn robot_number [-d density]
[-U|-l] [-h host_name | -M master_server...] [-v]
bpplinfo
管理及显示策略信息
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpplinfo
USAGE: bpplinfo policy_name -L|-l|-U [-v] [-M master_server,...]
bpplinfo policy_name -set|-modify [-v] [-M master_server,...]
[-active | -inactive] [-pt policy_type]
[-ut] [-ef effective_time]
[-residence label]
[-pool label]
[-priority priority]
[-rfile flag] [-blkincr flag]
[-multiple_streams flag] [-keyword "keyword phrase"]
[-encrypt flag]
[-collect_tir_info value] [-compress flag]
[-crossmp flag] [-disaster flag] [-follownfs flag]
[-policyjobs max_jobs(0=unlimited)]
Valid values for policy_type:
Standard Apollo-wbak NetWare MS-Windows-NT
OS/2 AFS
Bprecover
恢复相关的nbu目录
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bprecover -help
bprecover: -l -m media_ID -d density [-v]
-l -tpath
-l -dpath
-l -opath
-r [ALL|image_number] -m media_ID -d density [-stdout] [-dhost
-r [ALL|image_number] -tpath
[-v]
-r [ALL|image_number] -dpath
]
-r [ALL|image_number] -opath
[-v]
bprestore
还原文件
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bprestore
USAGE: bprestore [-A | -B] [-K] [-l | -H | -y] [-r] [-T]
[-L progress_log [-en]] [-R rename_file] [-C client]
[-D client] [-S master_server] [-t policy_type]
[-p policy] [-k "keyword phrase"] [-cm] [-md]
[-td temp_dir] [-BR be_redirection_path] [-F file_options]
[-s mm/dd/yyyy [HH:MM:SS]] [-e mm/dd/yyyy [HH:MM:SS]]
[-w [hh:mm:ss]] -f listfile | filenames
EXIT STATUS 144: invalid command usage
Bpstuadd
创建nbu storage unit group or a storage unit
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpstuadd
USAGE: bpstuadd -group group_name [stunit name]
or
USAGE: bpstuadd -label storage_unit_label
-path path_name
or
-density density_type [-rt robot_type -rn robot_number]
[-host host_name]
[-cj max_jobs]
[-odo on_demand_only]
[-mfs max_fragment_size]
[-maxmpx mpx_factor]
[-nh NDMP_attach_host]
[-verbose]
[-fastrax]
[-M master_server,...]
Valid values for mpx_factor: 1..32
max_fragment_size in MB:
For removable media, 0 if unlimited or greater than 50
For disk, between 20 and 2000 (2GB)
Bpstudel
删除storage unit
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpstudel
bpstudel: -label
[-M
or
bpstudel: -group
[-M
bpstulist
列出storage unit
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpstulist -help
bpstulist: unrecognized option -help
bpstulist: -label
[-M
bpstulist: -group
[-M
bpverify
验证创建的备份
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpverify -help
bpverify: [-l] [-p] [-pb] [-v] [-local] [-client
[-st
[-policy
[-M master_server]
[-Bidfile
[-backup_copy
[-pt
[[-cn
[-backupid
Valid values for sched_type:
FULL, INCR, CINC, UBAK, UARC, NOT_ARCHIVE
Valid values for policy_type:
Standard Apollo-wbak NetWare MS-Windows-NT
OS/2 AFS
Vopied
提供密码验证的服务
C:\Program Files\VERITAS\NetBackup\bin\admincmd>vopied -help
Usage: vopied
-standalone
-debug
-portnum number
-max_time seconds
-log_dir path
-severity mask
bpclntcmd
C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd.exe /?
bpclntcmd.exe: unrecognized option /?
bpclntcmd.exe: -sv
bpclntcmd.exe: -pn
bpclntcmd.exe: -self
bpclntcmd.exe: -hn
bpclntcmd.exe: -server
bpclntcmd.exe: -ip
bpclntcmd.exe: -gethostname
bpclntcmd.exe: -is_local_host
C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd.exe -gethostname
wind-bhvit8vzqw
C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd.exe -sv
5.0GA
C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd.exe -pn
expecting response from server wind-bhvit8vzqw
wind-bhvit8vzqw wind-bhvit8vzqw 10.168.123.9 2218
C:\Program Files\VERITAS\NetBackup\bin>bpclntcmd.exe -self
gethostname() returned: wind-bhvit8vzqw
host wind-bhvit8vzqw: wind-bhvit8vzqw.boco.com.cn at 10.168.123.9 (0x97ba80a)
checkhname: aliases:
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/bingzhuan/archive/2008/08/26/2831425.aspx