백업을 시작한다. 새로 추가한 작업 WebserverBackup을 선택하고( 3) yes를 입력한다. 데이터베이스까지 모두 백업하느라 시간이 꽤 걸린다. 작업이 끝나면 메시지를 통해 백업 성공 여부를 확인할 수 있다.
*run Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" A job name must be specified. The defined Job resources are: 1: PuppetMasterBackup 2: vm01Backup 3: WebserverBackup 4: BackupCatalog 5: RestoreFiles Select Job resource (1-5): 3 Run Backup job JobName: WebserverBackup Level: Incremental Client: server01-fd FileSet: WebserverData Pool: ServerBackup (From Job resource) Storage: File (From Job resource) When: 2014-11-04 01:31:31 Priority: 10 OK to run? (yes/mod/no): yes
파일이 잘 저장되었는지 확인해보자. restore 명령을 해서 웹 서버 클라이언트인 vm001-fd를 선택하고( 3), Vol001 볼륨에 저장된 백업을 지정한다.
*restore ... Select item: (1-13): 5 Defined Clients: 1: losttemple-fd 2: vm01-fd 3: server01-fd Select the Client (1-3): 3 Automatically selected FileSet: WebserverData +-------+-------+----------+------------+---------------------+------------+ | JobId | Level | JobFiles | JobBytes | StartTime | VolumeName | +-------+-------+----------+------------+---------------------+------------+ | 10 | F | 3,891 | 58,470,834 | 2014-11-04 01:31:31 | Vol001 | +-------+-------+----------+------------+---------------------+------------+ You have selected the following JobId: 10 ...
볼륨에 /var/www/html과 /var/dump/mysql 디렉터리가 저장되어 있으며 /var/dump/mysql에는 각 데이터베이스에 해당하는 백업 파일이 존재한다. 성공이다!
cwd is: / $ ls var/ $ cd var cwd is: /var/ $ ls dump/ www/ $ cd dump cwd is: /var/dump/ $ ls mysql/ $ cd mysql cwd is: /var/dump/mysql/ $ ls jamesblog.sql linuzine.sql shinblog.sql $ . No files selected to be restored. *