How would you backup session custom properties?

I have some logic in bindings on session custom properties.

How can I create a backup and restore, in case, disaster happen, or simple because I want to restore it to previous logic?