def testBackupDatasetSSH(self): dataset = self.base_dataset + '/' + self.source_dataset dest = [{ 'dest': self.base_dataset + '/' + self.dest_dataset, 'transport': 'ssh:root@localhost' }] try: zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') except ZFSBackupError as e: self.fail("caught exception: " + e.message)
def testBackupDatasetIncrementalLocal(self): dataset = self.base_dataset + '/' + self.source_dataset dest = [{ 'dest': self.base_dataset + '/' + self.dest_dataset, 'transport': 'local' }] try: zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') time.sleep(1) zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') except ZFSBackupError as e: self.fail("caught exception " + e.message)
def testBackupDatasetMultipleLocal(self): dataset = self.base_dataset + '/' + self.source_dataset dest = [{ 'dest': self.base_dataset + '/' + self.dest_dataset, 'transport': 'local' }, { 'dest': self.base_dataset + '/destination2', 'transport': 'local' }] try: zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') except ZFSBackupError as e: self.fail("caught exception: " + e.message)
def testBackupDatasetMultipleIncrementalSSH(self): dataset = self.base_dataset + '/' + self.source_dataset dest = [{ 'dest': self.base_dataset + '/' + self.dest_dataset, 'transport': 'ssh:root@localhost' }, { 'dest': self.base_dataset + '/destination2', 'transport': 'ssh:root@localhost' }] try: zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') time.sleep(1) zfsbackup.backup_dataset(dataset, dest, '@zfsbackup-last') except ZFSBackupError as e: self.fail("caught exception: " + e.message)