The process by which information is transferred from sensory or short-term memory to long-term memory.