Chinaunix首页 | 论坛 | 博客
  • 博客访问: 172561
  • 博文数量: 32
  • 博客积分: 3453
  • 博客等级: 上尉
  • 技术积分: 244
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-04 21:27
文章分类
文章存档

2011年(8)

2010年(24)

分类: 服务器与存储

2010-04-26 02:34:07

1.首先用bconsole启动可以跟上很多参数,例如:
Usage: bconsole [-s] [-c config_file] [-d debug_level]
       -c    set configuration file to file
       -dnn        set debug level to nn
       -n          no conio
       -s          no signals
       -t          test – read configuration and exit
       -?          print this message.

2.进入命令控制台后,所有命令的格式。
[=] [=] …

For example:

list files jobid=23

will list all files saved for JobId 23. Or:

show pools

will display all the Pool resource records.

The maximum command line length is limited to 511 characters, so if you are scripting the console,

you may need to take some care to limit the line length.
最大的命令字节长度为511个字节,所以如果你想使用脚本运行console,你需要注意最大字节长度的限制。
首先是关键词的介绍,按照首字母排列。

其实所有的keywords都可以由直接输入命令 然后选择来设定(mod),并不需要手动敲入,相当于命令的参数。这

部分只需要了解 实际应用并不多,要深入研究可以自行浏览原版文档。

Alphabetic List of Console Keywords
restart  //重启
Permitted on the python command, and causes the Python interpreter to be restarted. Takes no

argument.

all
Permitted on the status and show commands to specify all components or resources respectively.

allfrompool
Permitted on the update command to specify that all Volumes in the pool (specified on the command

line) should be updated.

allfrompools
Permitted on the update command to specify that all Volumes in all pools should be updated.

before
Used in the restore command.

bootstrap
Used in the restore command.

catalog  //目录 可以指数据库
Allowed in the use command to specify the catalog name to be used.

catalogs
Used in the show command. Takes no arguments.

client | fd  //终端
clients
Used in the show, list, and llist commands. Takes no arguments.

counters
Used in the show command. Takes no arguments.

current
Used in the restore command. Takes no argument.

days
Used to define the number of days the “list nextvol” command should consider when looking for jobs to

be run. The days keyword can also be used on the “status dir” command so that it will display jobs

scheduled for the number of days you want.

devices //设备 接受备份的介质
Used in the show command. Takes no arguments.

dir | director
directors
Used in the show command. Takes no arguments.

directory
Used in the restore command. Its argument specifies the directory to be restored.

enabled
This keyword can appear on the update volume as well as the update slots commands, and can allows one

of the following arguments: yes, true, no, false, archived, 0, 1, 2. Where 0 corresponds to no or

false, 1 corresponds to yes or true, and 2 corresponds to archived. Archived volumes will not be

used, nor will the Media record in the catalog be pruned. Volumes that are not enabled, will not be

used for backup or restore.

done
Used in the restore command. Takes no argument.

file
Used in the restore command.

files
Used in the list and llist commands. Takes no arguments.

fileset  //被备份的文件
filesets
Used in the show command. Takes no arguments.

help
Used in the show command. Takes no arguments.

jobs //工作项目 备份单元
Used in the show, list and llist commands. Takes no arguments.

jobmedia
Used in the list and llist commands. Takes no arguments.

jobtotals
Used in the list and llist commands. Takes no arguments.

jobid
The JobId is the numeric jobid that is printed in the Job Report output. It is the index of the

database record for the given job. While it is unique for all the existing Job records in the catalog

database, the same JobId can be reused once a Job is removed from the catalog. Probably you will

refer specific Jobs that ran using their numeric JobId.

job | jobname
The Job or Jobname keyword refers to the name you specified in the Job resource, and hence it refers

to any number of Jobs that ran. It is typically useful if you want to list all jobs of a particular

name.

level
listing
Permitted on the estimate command. Takes no argument.

limit
messages
Used in the show command. Takes no arguments.

media
Used in the list and llist commands. Takes no arguments.

nextvol | nextvolume
Used in the list and llist commands. Takes no arguments.

on
Takes no keyword.

off
Takes no keyword.

pool
pools
Used in the show, list, and llist commands. Takes no arguments.

select
Used in the restore command. Takes no argument.

storages
Used in the show command. Takes no arguments.

schedules
Used in the show command. Takes no arguments.

sd | store | storage
ujobid
The ujobid is a unique job identification that is printed in the Job Report output. At the current

time, it consists of the Job name (from the Name directive for the job) appended with the date and

time the job was run. This keyword is useful if you want to completely identify the Job instance run.

volume
volumes
Used in the list and llist commands. Takes no arguments.

where
Used in the restore command.

yes
Used in the restore command. Takes no argument.

然后是整个系统的运行核心 命令部分
Alphabetic List of Console Commands
同样按照字母表的顺序排列,重点是run restore delete list等。

下回继续… to be continue…

阅读(1932) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~