Restore needed files, remove unneeded dat files.