Skip to content

Instantly share code, notes, and snippets.

@rmyers
Created November 26, 2013 15:19
Show Gist options
  • Save rmyers/7660204 to your computer and use it in GitHub Desktop.
Save rmyers/7660204 to your computer and use it in GitHub Desktop.
Backup agent changes
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