amrestore 명령을 사용하여 테이프에서 데이터를 복원하는 방법

이 기사는 아만다 엔터프라이즈(AE)

이 단계는 Amanda 서버가 충돌하고 모든 인덱스 데이터가 손실되었을 때 유용합니다. 이러한 단계를 통해 해당 정보없이 테이프에서 데이터를 복원 할 수 있습니다.

  1. 복원 할 데이터가 포함 된 테이프를 삽입하십시오.
  2. Amanda 서버에 루트로 로그인합니다.
  3. 테이프 장치 이름 확인
  4. 테이프 되감기 ; mt -f / dev / nst0 되감기
  5. 데이터를 추출하기에 충분한 공간이있는 빈 디렉토리로 cd
  6. 복원 할 호스트 이름과 디스크 이름을 결정합니다.
  7. 실행 amrestore 명령:
amrestore / dev / nst0 hostname.zmanda.com / var
출력 예: [root@bugs restore]# amrestore /dev/nst0 hostname.zmanda.com /var 파일 5로 시작하는 Tape-1 테이프에서 복원 amrestore: 1: 파일 건너뛰기: 날짜 20070816104124 host hostname.zmanda.com disk / boot lev 0 comp N program /bin/tar amrestore: 2: 파일 건너뛰기: date 20070816104124 host localhost disk /etc lev 0 comp N program /bin/tar amrestore: 3: 파일 복원: date 20070816104124 host hostname.zmanda.com disk / var lev 0 comp N 프로그램 /bin/tar
  1. 아카이브 파일은 현재 디렉토리에 나타나야합니다.
[root@host 복원]# ls hostname.zmanda.com._var.20070816104124.0
  1. tar를 사용하여 아카이브 추출
tar -vxf 호스트 이름.zmanda.com._var.20070816104124.0
Example Output:
[root@bugs restore]# tar -vxf hostname.zmanda.com._var.20070816104124.0 | more
./
./account/
./amanda_restore_10/
./cache/
./cache/alchemist/
./cache/alchemist/apache/
./cache/alchemist/printconf.local/
./cache/alchemist/printconf.local/wm/
./cache/alchemist/printconf.rpm/
./cache/alchemist/printconf.rpm/wm/
./cache/foomatic/
./cache/gstreamer-0.8/
./cache/logwatch/
./cache/man/
./cache/man/X11R6/
./cache/man/X11R6/cat1/
./cache/man/X11R6/cat2/
./cache/man/X11R6/cat3/
./cache/man/X11R6/cat4/