Backing up AIX JFS2 Encrypted File Systems
Use AIX® JFS2 Encrypted File System (EFS) to back up files either in "clear text" or "raw" format. With "clear text" format, the file is decrypted by EFS as it is read. With "raw" format, the data is not decrypted. The default is "raw" format, but when you select the Decrypt Encrypted File System (EFS) files option in the Backup tab of the Preferences Editor, you get "clear text" backups.
About this task
If you attempt to restore an encrypted file to either a work station that does not support EFS, or a file system where EFS is not active, an error message is written and the file is skipped.
The benefits for backing up EFS using "clear text" encryption are as follows:
- This type of decryption is useful for backup-archive client encryption or another type of hardware encryption (for tape systems, for example)
- You can use "clear text" for long term archival of data, because the data is stored independent of the platform or encryption scheme
Consider the following information when backing up a file in "clear text":
- The user who started the backup-archive client must be able to decrypt the file
- The user can have read access to a file, but not have access to the key
- The user is running in root guard mode, and EFS has the concept of two types of root. Root admin is the traditional mode. A root in guard mode will not have access to the unencrypted data, unless the user is the owner or a member of the file's group.
- The user is running with a non-root user id and attempting an archive of a file to which they have read access, but the user is not the owner or member of the file's group. EFS will not allow the data to be decrypted.
Results
Consider the following information when backing up EFS in "raw" format:
- The IBM Spectrum Protect™ server will not honor the client encryption setting, which prevents double encryption, but only at the client. The server has no knowledge that the data is encrypted so any encryption done by a tape drive, for example, still occurs.
- The server will not honor the compression setting, so the client will not even try to compress the data.
- The backup-archive client does not automatically back up or restore the keystore files. When you are restoring encrypted files, you might also have to restore keystores in order to decrypt the data.
- To protect the keystore, ensure that the contents of the /var/efs directory are included in your periodic backups. For the keystore data, use a storage policy with an unlimited number of versions on the IBM Spectrum Protect server.
- You can use the existing client facilities and options to restore these keystore files.
- If these keystore files are placed in another location, an EFS command
like the following can be used to add this information to the kernel key ring:
efskeymgr -f/var/tsm/security/efs/bob/keystore - Encrypted file system (EFS) files backed up in "raw" mode (default) cannot be restored by a backup-archive client that is older than version 5.5, by a client on another operating system, or to a destination file system that does not support EFS or has it disabled.