def backup(self, backup_root): src_dir = '/tmp' src_file = 'system.cfg' dst_dir = HostControl.backup(self, backup_root) dst_file = '%s_%s.cfg' % (self.hostname, self.get_version()) self._safe_scp(src_dir, src_file, dst_dir, dst_file) return src_file
def backup(self, backup_root): dst_dir = HostControl.backup(self, backup_root) dst_file = '%s.cfg' % self.hostname src_dir = None src_file = self.get_config_filename() self._start_sftp_server() self._safe_sftp(src_dir, src_file, dst_dir, dst_file) return src_file
def backup(self, backup_root): dst_dir = HostControl.backup(self, backup_root) fileb = self._backup_binary(dst_dir) filec = self._backup_config(dst_dir) return '%s+%s' % (fileb, filec)