The process by which DNA is duplicated before cell division.