CedarBackup2.actions.purge

Package CedarBackup2 :: Package actions :: Module purge |
[hide private]
[frames] | no frames]

# Module purge

source code

Implements the standard 'purge' action.

Author: Kenneth J. Pronovici <pronovic@ieee.org>

Functions | [hide private]
executePurge(configPath, options, config) Executes the purge backup action. | source code

Variables | [hide private]
| logger = `<logging.Logger object>`
| __package__ = ``'``CedarBackup2.actions``'``

Function Details | [hide private]

### executePurge(configPath, options, config) | source code
Executes the purge backup action. For each configured directory, we create a purge item list, remove from the list anything that's younger than the configured retain days value, and then purge from the filesystem what's left. Parameters: `configPath` (String representing a path on disk.) - Path to configuration file on disk. `options` (Options object.) - Program command-line options. `config` (Config object.) - Program configuration. Raises: `ValueError` - Under many generic error conditions