Unable to restore media library

I did a backup for the media files. Then deleted them using a plugin called Cleaner which deletes unused images from the library. When I restored from the snapshot, the files were not present under /uploads.
When I tried to restore a database from another snapshot, all the plugin settings were gone even snapshots. I had to do a new import to have them back again.