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)
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'])