There may be some "backup" system in our conscious memory. I do not think that "all our memories" are backed up. My guess is that there are some very clever conscious "filters" that help selecting memories "worth" remembering. Only these memories can actually be "restored".
Logically, the most precious form of "code" to be stored and backed up is your "intelligence". My definition of intelligence is an ability to imagine, learn, adapt and make reasonable choices even in unexpected circumstances.