Created
November 26, 2013 15:19
-
-
Save rmyers/7660204 to your computer and use it in GitHub Desktop.
Backup agent changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def execute_backup(self, context, backup_id, runner=RUNNER): | |
### snip | |
### | |
runner_opts = CONF.backup_runner_opts | |
extra_opts = runner_opts.get(runner.backup_type, '') | |
try: | |
with runner(filename=backup_id, | |
user=user, | |
password=password, | |
extra_opts=extra_opts)\ | |
as bkup: | |
LOG.info("Starting Backup %s", backup_id) | |
success, note, checksum, location = storage.save( | |
bkup.manifest, | |
bkup) | |
## | |
## snip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment