Add backup feature

Add backup feature to the core.