backup sql and regenerated thumbnails