Bulk restore original images

I want to delete all my full images from Smush Pro, and to restore the original files (.bak). I got 3.000 images in my system, so doing it manually would be a lot of work. Is there any chance to do it automatically?