ruby state backup