WEB开发网      濠电娀娼ч崐濠氬疾椤愶附鍋熸い鏍ㄧ〒闂勫嫰鏌﹀Ο渚Ц闁诲氦顕ч湁婵犲﹤楠告禍鍓х磼鏉堛劌绗氶柟宄版嚇閹晠宕归銈嗘濠电偞鍨堕幐鎾磻閹捐秮褰掓偐閻戞﹩妫勯梺鎼炲妼鐎涒晝绮嬪澶樻晝闁挎繂鏌婇敃鍌涚厵閻庢稒锚閻忥絾绻濇繝鍐ㄧ伌闁诡垰鍟村畷鐔碱敂閸♀晙绱樺┑鐐差嚟婵儳螞閸曨剚鍙忛柍鍝勬噹缁€澶嬬箾閹存繄锛嶆鐐灲閹綊宕惰濡插鏌涢妸銉ヮ劉缂佸倸绉归弫鎾绘晸閿燂拷 ---闂備焦瀵уú鈺呭箯閿燂拷
开发学院操作系统Linux/Unix AIX 6 加密文件系统(Encrypted File System),第... 阅读

AIX 6 加密文件系统(Encrypted File System),第 6 部分:备份与恢复

 2008-09-06 08:19:58 来源:WEB开发网 闂備線娼уΛ鎾箯閿燂拷闂備礁鎲¢崹鐢垫崲閹扮増鍎嶆い鎺戝€甸崑鎾斥槈濞嗗秳娌紓鍌氱▌閹凤拷濠电姭鎷冮崨顓濈捕闂侀潧娲ゅú銊╁焵椤掍胶鈯曢柕鍥╁仧缁辩偤鏁撻敓锟�闂備線娼уΛ鎾箯閿燂拷  闂備胶枪缁绘鈻嶉弴銏犳瀬闁绘劕鎼痪褔鏌曟繝蹇曠窗闁煎壊浜滈—鍐偓锝庡墮娴犙勭箾閸喎鐏ユい鏇樺劦椤㈡瑩鎮℃惔銇帮拷
核心提示: 对经过加密的文件进行恢复我们将介绍如何对经过加密的文件进行恢复,场景 1 我们尝试在名为 /jfs2 的加密文件系统中,AIX 6 加密文件系统(Encrypted File System),第 6 部分:备份与恢复(4),对示例 2 中所创建的存档文件进行恢复,如下所示:user1 成功

对经过加密的文件进行恢复

我们将介绍如何对经过加密的文件进行恢复。

场景 1

我们尝试在名为 /jfs2 的加密文件系统中,对示例 2 中所创建的存档文件进行恢复,如下所示:

user1 成功地复制了 /efs2 中的 efs_archive 和 tmp_archive。这两个文件都经过加密,尽管文件 tmp_acrhive 最初采用的是明文格式。

成功地对 efs_archive 进行恢复。可以访问和显示这两个原始文件。

成功地对 tmp_archive 进行恢复。可以访问和显示这两个原始文件。

示例 2 恢复加密文件系统中的文件

user1@guadalupe/]l -alU
total 240
drwxrwxrwxe 3 root system 256 May 07 22:15 .
drwxr-xr-x- 22 root system 4096 May 07 22:07 ..
-rw-r--r--e 1 user1 staff 51200 May 07 22:15 efs_archive
drwxr-xr-x- 2 root system 256 May 07 22:07 lost+found
-rw-r--r--e 1 user1 staff 51200 May 07 22:15 tmp_archive
user1@guadalupe/]restore -xvf efs_archive
Please mount volume 1 on efs_archive.
Press the Enter key to continue.
New volume on efs_archive:
Cluster size is 51200 bytes (100 blocks).
The volume number is 1.
The backup date is:Mon May 7 21:18:44 CDT 2007
Files are backed up by name.
The user is root.
x 4096 file_encrypted
x 11 file_in_clear
The total size is 4107 bytes.
The number of restored files is 2.
user1@guadalupe/]ls -alU
total 272
drwxrwxrwxe 3 root system 256 May 07 22:17 .
drwxr-xr-x- 22 root system 4096 May 07 22:07 ..
-rw-r--r--e 1 user1 staff 51200 May 07 22:15 efs_archive
-rw-r--r--e 1 user1 staff 15 May 07 19:35 file_encrypted
-rw-r--r--e 1 user1 staff 11 May 07 19:36 file_in_clear
drwxr-xr-x- 2 root system 256 May 07 22:07 lost+found
-rw-r--r--e 1 user1 staff 51200 May 07 22:15 tmp_archive
user1@guadalupe/]cat file_in_clear
clear text
user1@guadalupe/]cat file_encrypted
encrypted text
user1@guadalupe/]rm file*
user1@guadalupe/]restore -xvf tmp_archive
Please mount volume 1 on tmp_archive.
Press the Enter key to continue.
New volume on tmp_archive:
Cluster size is 51200 bytes (100 blocks).
The volume number is 1.
The backup date is:Mon May 7 21:23:03 CDT 2007
Files are backed up by name.
The user is root.
x 4096 file_encrypted
x 11 file_in_clear
The total size is 4107 bytes.
The number of restored files is 2.
user1@guadalupe/]ls -alU
total 272
drwxrwxrwxe 3 root system 256 May 07 22:20 .
drwxr-xr-x- 22 root system 4096 May 07 22:07 ..
-rw-r--r--e 1 user1 staff 51200 May 07 22:15 efs_archive
-rw-r--r--e 1 user1 staff 15 May 07 19:35 file_encrypted
-rw-r--r--e 1 user1 staff 11 May 07 19:36 file_in_clear
drwxr-xr-x- 2 root system 256 May 07 22:07 lost+found
user1@guadalupe/]cat file_in_clear
clear text
user1@guadalupe/]cat file_encrypted
encrypted text

上一页  1 2 3 4 5 6 7  下一页

Tags:AIX 加密 文件

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接