Is there any chance to get back the file which is accidentally Replaced
You will have to stop all writes on the device to avoid override, scan whole partition for existing files (to find all with same name, but different version) and hope it still exists and is not damaged.
This tool may help (there're of course others): Minitool