Module CedarBackup2.extend.encrypt
Provides an extension to encrypt staging directories.
When this extension is executed, all backed-up files in the configured
Cedar Backup staging directory will be encrypted using gpg. Any directory
which has already been encrypted (as indicated by the
cback.encrypt
file) will be ignored.
This extension requires a new configuration section <encrypt>
and is intended to be run immediately after the standard stage action or
immediately before the standard store action. Aside from its own
configuration, it requires the options and staging configuration sections
in the standard Cedar Backup configuration file.
Author: Kenneth J. Pronovici <pronovic@ieee.org>
Classes |
EncryptConfig |
Class representing encrypt configuration. |
LocalConfig |
Class representing this extension's configuration document. |
Function Summary |
|
executeAction (configPath,
options,
config)
Executes the encrypt backup action. |
executeAction(configPath,
options,
config)
Executes the encrypt backup action.
-
- Parameters:
configPath -
Path to configuration file on disk.
(type=String representing a path on disk.)
options -
Program command-line options.
(type=Options object.)
config -
Program configuration.
(type=Config object.)
- Raises:
ValueError -
Under many generic error conditions
IOError -
If there are I/O problems reading or writing files
|
ENCRYPT_INDICATOR
-
- Type:
-
str
- Value:
|
GPG_COMMAND
-
- Type:
-
list
- Value:
|
logger
-
- Type:
-
Logger
- Value:
<logging.Logger instance at 0x402dce2c>
|
|
VALID_ENCRYPT_MODES
-
- Type:
-
list
- Value:
|