Re-adding missing uploads to the database

I wonder if this is the best method nowadays?

I’m trying to recover uploads that are on the filesystem but not in the database after a bad S3 migration (with the old rake:s3_migrate).