diff --git a/backup/pvc/bin/restore.sh b/backup/pvc/bin/restore.sh index b9a71a48..f10e2e75 100755 --- a/backup/pvc/bin/restore.sh +++ b/backup/pvc/bin/restore.sh @@ -42,11 +42,11 @@ fi tar $OPTS -C "${JENKINS_HOME}" -xf "${BACKUP_DIR}/${BACKUP_NUMBER}.${EXT}" || ret=$? if [[ "$ret" -eq 0 ]]; then - _log "INFO" "[backup] backup ${BACKUP_NUMBER} was completed without warnings" + _log "INFO" "[restore] restore ${BACKUP_NUMBER} was completed without warnings" elif [[ "$ret" -eq 1 ]]; then - _log "INFO" "[backup] backup ${BACKUP_NUMBER} was completed with some warnings" + _log "INFO" "[restore] restore ${BACKUP_NUMBER} was completed with some warnings" else - _log "ERROR" "[backup] backup ${BACKUP_NUMBER} failed with error code: $ret" + _log "ERROR" "[restore] restore ${BACKUP_NUMBER} failed with error code: $ret" exit "$ret" fi