Example #1
0
 def __init__(self, disk, backup_id, config):
     super(RestorationController, self).__init__(disk, backup_id, config)
     self.backupset = self._load_backupset()
     self._disk_layout = DiskLayout.with_config(self.disk, self.backup_dir, config,
                                                self.backupset.disk_layout)
     self._imager = PartitionImage.with_config(self.disk, self.backup_dir,
                                               self.backupset, config)
Example #2
0
 def __init__(self, disk, backup_id, config):
     super(RestorationController, self).__init__(disk, backup_id, config)
     self.backupset = self._load_backupset()
     self._disk_layout = DiskLayout.with_config(self.disk, self.backup_dir,
                                                config,
                                                self.backupset.disk_layout)
     self._imager = PartitionImage.with_config(self.disk, self.backup_dir,
                                               self.backupset, config)
Example #3
0
 def __init__(self, disk, backup_id, config):
     super(BackupController, self).__init__(disk, backup_id, config)
     try:
         self._disk_layout = DiskLayout.with_config(self.disk, self.backup_dir, config)
     except Exception as e:
         self._set_error(str(e))
         raise DiskImageException(str(e))
     self._handle_overwrite(self.config['overwrite'])
     self._create_backupset()
     self._imager = PartitionImage.with_config(self.disk, self.backup_dir, self.backupset, config)
Example #4
0
 def __init__(self, disk, backup_id, config):
     super(BackupController, self).__init__(disk, backup_id, config)
     try:
         self._disk_layout = DiskLayout.with_config(self.disk,
                                                    self.backup_dir, config)
     except Exception as e:
         self._set_error(str(e))
         raise DiskImageException(str(e))
     self._handle_overwrite(self.config['overwrite'])
     self._create_backupset()
     self._imager = PartitionImage.with_config(self.disk, self.backup_dir,
                                               self.backupset, config)