Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)