def do_backup(self, host, logger): host_backup = Backup(host, logger=logger) backup_lock.acquire() try: host_backup.setup() finally: backup_lock.release() return host_backup.do_backup()
def do_backup(self, host, logger): host_backup = Backup(host, logger=logger) backup_lock.acquire() try: host_backup.setup() finally: backup_lock.release() return host_backup.do_backup()
logger.info(ret) if 1: logger.info("* Creating Subvolume") ret = op.create_subvol(latest_dir) logger.info(ret) sys.exit(0) if options.subcommand == 'backup': from disks import Disks disks = Disks() di = disks.create_disk_info( options.drive ) from backup import Backup backup = Backup(di, options.source_dir) backup.do_backup() sys.exit(0) if options.subcommand == 'delete': from disks import Disks disks = Disks() di = disks.create_disk_info( options.drive ) from backup import Backup backup = Backup(di) backup.delete_backup(options.date) sys.exit(0) # vim:ts=3:sts=3:sw=3:noexpandtab
def do_backup(self, host, logger): host_backup = Backup(host, logger=logger) host_backup.setup() return host_backup.do_backup()
def do_backup(self, host, logger): host_backup = Backup(host, logger=logger) host_backup.setup() return host_backup.do_backup()