Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

옵션설명
-u, --startup/ --recovery[=simple,complex,reset]마크베이스 서버 시작/ 복구 mode (기본: simple)

-s, --shutdown

마크베이스 서버 정상 종료
-c, --createdb마크베이스 데이터베이스 생성
-d, --destroydb마크베이스 데이터베이스 삭제
-k, --kill마크베이스 서버 강제 종료
-i, --silence출력 없이 실행
-r, --restore백업에서 데이터베이스 복구
-x, --extract백업 파일을 백업 디렉터리로 변환
-w, --viewimage백업 이미지 파일의 정보 출력-e, --check마크베이스 서버 실행 체크
-t, --licinstall라이선스 파일 설치
-f, --licinfo설치된 라이선스 정보 출력

...

Code Block
languagetext
mach@localhost:~$ machadmin -r 'backup'
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Backed up database restored successfully.

백업 폴더로 변환

Syntax:

Code Block
machadmin -x backup_file extract_path

단일 백업 파일 (*.ibf)을 백업 디렉터리에 출력한다: -x backup_file extract_path.

단일 백업 파일로 백업한 경우, 디렉터리 형태의 백업으로 변환해야 백업 복구가 가능하다.

Example:

Code Block
languagetext
mach@localhost:~$ machadmin -x 'backup.ibf' 'backup'
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Extract backup image successfully.

백업파일 정보 확인

Syntax:

Code Block
machadmin -w backup_file

Example:

Code Block
languagetext
mach@localhost:~$ machadmin -w 'backup'
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Display information of backup image file.
--------------------------------------------------------------
     File name        - mach_backup_19700101090000_20150805092853_1
     Create time      - 2015-08-04 15:35:56
     Data duration    - 1970-01-01 09:00:00 ~ 2015-08-05 09:28:53
     Backup duration  - 2015-08-05 09:28:53 ~ 2015-08-05 09:28:53
     Version          - DB(4.0) Meta(2.0) CM(1.5)
-----------------------------------------------------------------


서버 실행 유무 확인

Syntax:

Code Block
machadmin -e

...