Esempio n. 1
0
 def tar_dumpdir(self):
     """
     Archive the instance action scripts
     """
     LOG.debug(_('Tarring up instance dumpdir: %s') % self.dumpdir)
     ovz_utils.tar(self.dumpdir_name, self.dumpdir_tarfile,
                   self.dumpdir_parent)
     LOG.debug(_('Tarred up instance dumpdir: %s') % self.dumpdir)
Esempio n. 2
0
 def tar_instance(self):
     """
     Not an optimal way to do this but if you aren't using the root user
     to rsync the files from host to host you need to preserve the
     permissions and ownerships thus tar is your only hope.
     """
     # Create our batch volume operations object
     LOG.debug(_('Tarring up instance: %s') % self.instance['id'])
     ovz_utils.tar(self.instance['id'], self.instance_tarfile,
                   self.instance_parent)
     LOG.debug(_('Tarred up instance: %s') % self.instance['id'])
Esempio n. 3
0
 def tar_instance(self):
     """
     Not an optimal way to do this but if you aren't using the root user
     to rsync the files from host to host you need to preserve the
     permissions and ownerships thus tar is your only hope.
     """
     # Create our batch volume operations object
     LOG.debug(_('Tarring up instance: %s') % self.container.ovz_id)
     sed_regex = 's/%(ctid)s/%(uuid)s/' % {
         'ctid': self.container.ovz_id,
         'uuid': self.container.uuid,
     }
     ovz_utils.tar(self.container.ovz_id, self.instance_tarfile,
                   working_dir=self.instance_parent,
                   extra=['--transform', sed_regex])
     LOG.debug(_('Tarred up instance: %s') % self.container.ovz_id)