diff --git a/contrib/backup/functions b/contrib/backup/functions index eed91755e..06d6503dd 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -188,7 +188,7 @@ function restore_zammad () { fi echo "# Restoring PostgrSQL DB" - zcat ${BACKUP_DIR}/${RESTORE_DB_DATE}_zammad_db.${DB_FILE_EXT}.gz | su -c "psql -d ${DB_NAME}" postgres + zcat ${BACKUP_DIR}/${RESTORE_DB_DATE}_zammad_db.${DB_FILE_EXT}.gz | su -c "psql -d ${DB_NAME}" zammad elif [ "${DB_ADAPTER}" == "mysql2" ]; then echo "# Restoring MySQL DB" zcat ${BACKUP_DIR}/${RESTORE_DB_DATE}_zammad_db.${DB_FILE_EXT}.gz | mysql -u${DB_USER} -p${DB_PASS} ${DB_NAME}