15.4. non-rewinding tape devices에 쓰기
unrewinding tape 장치는 특정 명령의 실행을 완료한 후 현재 상태로 유지됩니다. 예를 들어 백업 후 취소되지 않은 테이프 장치에 더 많은 데이터를 추가할 수 있습니다.For example, after a backup, you could append more data to a non-rewinding tape device. 또한 예기치 않은 재생 목록을 피하기 위해 사용할 수도 있습니다.
사전 요구 사항
-
mt-st
패키지가 설치되어 있어야 합니다. 자세한 내용은 저하 드라이브 관리 도구 설치를 참조하십시오.For more information, see Installing tape drive management tool. 테이프 드라이브를 로드합니다.
mt -f /dev/nst0 load
# mt -f /dev/nst0 load
Copy to Clipboard Copied!
절차
non-rewinding tape device
/dev/nst0
:mt -f /dev/nst0 status
# mt -f /dev/nst0 status
Copy to Clipboard Copied! 테이프의 끝 또는 앞쪽에 있는 포인터를 지정합니다.
mt -f /dev/nst0 rewind
# mt -f /dev/nst0 rewind
Copy to Clipboard Copied! 테이프 장치에 데이터를 추가합니다.
mt -f /dev/nst0 eod tar -czf /dev/nst0 /source/directory/
# mt -f /dev/nst0 eod # tar -czf /dev/nst0 /source/directory/
Copy to Clipboard Copied! /source/directory/를
테이프 장치로 백업합니다.tar -czf /dev/nst0 /source/directory/
# tar -czf /dev/nst0 /source/directory/ tar: Removing leading `/' from member names /source/directory/ /source/directory/man_db.conf /source/directory/DIR_COLORS /source/directory/rsyslog.conf [...]
Copy to Clipboard Copied! 테이프 장치의 상태 보기:
mt -f /dev/nst0 status
# mt -f /dev/nst0 status
Copy to Clipboard Copied!
검증 단계
테이프 장치의 모든 파일 목록을 확인합니다.
tar -tzf /dev/nst0
# tar -tzf /dev/nst0 /source/directory/ /source/directory/man_db.conf /source/directory/DIR_COLORS /source/directory/rsyslog.conf [...]
Copy to Clipboard Copied!