Add command do_register_restore_definition + some help functions needed by this command.