I want to write a function 'backup(filename)'
to store all the working data (objects?) under current environment of Python, and 'restore(filename)'
to restore the data/object again. Just like R's save.image(file="workspace21.RData")
and load(file="workspace21.RData")
, which can snapshot the system.
How to write the "backup" & "restore" ? Or is there any package existed can do that ?