큐브리드2009/07/18 23:18
GETBACKUPLIST

설명
GETBACKUPLIST 명령은 각 백업 레벨(0~2)별 백업 파일의 경로 정보를 조회하는 데 사용된다. 단, 레벨별로 최종 백업 정보만 조회가 가능하며, 상위 레벨의 백업이 되면 하위 레벨의 내역은 제외되어 출력된다. 즉, 2레벨까지 모두 백업된 이후에 1레벨을 백업하면 2레벨의 정보는 자동으로 제외될 것이다.


구문
GETBACKUPLIST 명령의 문법은 다음과 같다. 볼드체는 필수 입력 정보이다.

task:getbackuplist
token:{cmserver 인증후 받은 token 문자열}

dbname:{조회할 데이터베이스명}


예제
demodb 데이터베이스 백업 이력을 조회하는 예제이다.

--request--
task:getbackuplist
token:4504b930fc1be99b9cb8c885a0e8674a4ea3fcd68c6ea61530e72b1bd4aa20b67926f07dd201b6aa
dbname:demodb

--response--
task:getbackuplist
status:success
note:none
level0:/opt/frameworks/cubrid2/databases/demodb/backup/demodb_backup_lv0
level1:/opt/frameworks/cubrid2/databases/demodb/backup/demodb_backup_lv1
level2:/opt/frameworks/cubrid2/databases/demodb/backup/demodb_backup_lv2

--response:fail(존재하지 않는 데이터베이스)--
task:getbackuplist
status:failure
note:Can not find the directory database(notexistdb) is located

--response:fail(데이터베이스명 입력누락)--
task:getbackuplist
status:failure
note:Parameter(database name) missing in the request
저작자 표시 비영리 변경 금지
Posted by 종이비행기