티스토리 뷰

10. 다음은 dump 명령을 이용하여 전체 백업과
전체 복원하는 절차이다. 다음 ( 괄호 )안에
들어갈 내용으로 알맞은 명령과 옵션을
적으시오.
가. 파일시스템 전체 백업
# dump ( ① ) ( ② ) fulldata.dump /dev/sdc5
나. 파일시스템 전체 복원
# ( ③ ) ( ④ ) fulldata.dump
■ 조 건
- /dev/sdc5 파티션은 /data 디렉터리로
마운트 되어있다.
- /dev/sdc5 파일시스템 전체 백업으로
수행한다.
- 복원과정도 반드시 전체 복원 방식으로
수행한다.

① -0 1점
② -f 1점
③ restore 1점
④ -rf 1점



#명령어 주요 옵션

dump
-0 : 전체 백업할 때 사용한다. 부분백업은 1~9
-f : 백업될 파일을 지정한다.
-u : dump작업 후에 /etc/dumpdates라는 파일에 정보를 기록한다.

restore
-r : 전체 복원시에 사용한다.
-f : 백업파일명을 지정한다.
-i : 대화식으로 파일을 선택하여 복원을 진행한다.




#dump 패키지 설치

root@PSDEV:/root] man dump
No manual entry for dump


필자의 환경은 dump 패키지가 설치 되지 않았다. 
따라서 아래와 같이, dump 패키지 설치 진행.


root@PSDEV:/root] yum install dump
Loaded plugins: fastestmirror, langpacks
base                                                                                                                                                                                                                                     | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                                                   | 2.9 kB  00:00:00     
updates                                                                                                                                                                                                                                  | 2.9 kB  00:00:00     
updates/7/x86_64/primary_db                                                                                                                                                                                                              |  12 MB  00:00:04     
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: centosg9.centos.org
Resolving Dependencies
--> Running transaction check
---> Package dump.x86_64 1:0.4-0.23.b44.el7 will be installed
--> Processing Dependency: rmt for package: 1:dump-0.4-0.23.b44.el7.x86_64
--> Running transaction check
---> Package rmt.x86_64 2:1.5.2-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================================================================================
 Package                                                   Arch                                                        Version                                                                  Repository                                                 Size
================================================================================================================================================================================================================================================================
Installing:
 dump                                                      x86_64                                                      1:0.4-0.23.b44.el7                                                       base                                                      148 k
Installing for dependencies:
 rmt                                                       x86_64                                                      2:1.5.2-13.el7                                                           base                                                      103 k

Transaction Summary
================================================================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 251 k
Installed size: 581 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): dump-0.4-0.23.b44.el7.x86_64.rpm                                                                                                                                                                                                  | 148 kB  00:00:00     
(2/2): rmt-1.5.2-13.el7.x86_64.rpm                                                                                                                                                                                                       | 103 kB  00:00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                           2.2 MB/s | 251 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:rmt-1.5.2-13.el7.x86_64                                                                                                                                                                                                                    1/2 
  Installing : 1:dump-0.4-0.23.b44.el7.x86_64                                                                                                                                                                                                               2/2 
  Verifying  : 2:rmt-1.5.2-13.el7.x86_64                                                                                                                                                                                                                    1/2 
  Verifying  : 1:dump-0.4-0.23.b44.el7.x86_64                                                                                                                                                                                                               2/2 

Installed:
  dump.x86_64 1:0.4-0.23.b44.el7                                                                                                                                                                                                                                

Dependency Installed:
  rmt.x86_64 2:1.5.2-13.el7                                                                                                                                                                                                                                     

Complete!
root@PSDEV:/root] 

 

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31