This is more complicated than it's often made out to be, and the confident claims you'll see online usually overstate the case.
Owning a disc does not automatically grant the right to copy it, and in the US the DMCA restricts circumventing the copy protection on games. Microsoft's terms of service also prohibit modified discs outright. Penalties in practice are usually account bans rather than legal action, but "technically allowed" isn't a safe summary.
If you want a backup or a digital copy, buying the title again digitally is the only unambiguous option.