Gem backup and restore utility