def backup_target_nfs(self, name):
     self.check_guest()
     self.mount_backup('/mnt', 'nfs')
     tarname = os.path.join('/mnt', '%s.tar' % name)
     tarcmd = backup_target_command(self.target, tarname)
     print tarcmd
     os.system(tarcmd)
     os.system('umount /mnt')
Exemple #2
0
 def backup_target_nfs(self, name):
     self.check_guest()
     self.mount_backup('/mnt', 'nfs')
     tarname = os.path.join('/mnt', '%s.tar' % name)
     tarcmd = backup_target_command(self.target, tarname)
     print tarcmd
     os.system(tarcmd)
     os.system('umount /mnt')
 def backup_target_hostfs(self, name):
     self.check_guest()
     self.mount_backup('/mnt', 'hostfs')
     bkup_path = self.cfg.get('umlmachines', 'hostfs_backup_path')
     if bkup_path[0] == '/':
         bkup_path = bkup_path[1:]
     tarname = os.path.join('/mnt', bkup_path, name) + '.tar'
     tarcmd = backup_target_command(self.target, tarname)
     os.system(tarcmd)
     os.system('umount /mnt')
Exemple #4
0
 def backup_target_hostfs(self, name):
     self.check_guest()
     self.mount_backup('/mnt', 'hostfs')
     bkup_path = self.cfg.get('umlmachines', 'hostfs_backup_path')
     if bkup_path[0] == '/':
         bkup_path = bkup_path[1:]
     tarname = os.path.join('/mnt', bkup_path, name) + '.tar'
     tarcmd = backup_target_command(self.target, tarname)
     os.system(tarcmd)
     os.system('umount /mnt')