Refactored backup code, added Redis backup rpc method