AIX 6 加密文件系统(Encrypted File System),第 6 部分:备份与恢复
2008-09-06 08:19:58 来源:WEB开发网对经过加密的文件进行恢复
我们将介绍如何对经过加密的文件进行恢复。
场景 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
更多精彩
赞助商链接