Rollback
Rollback
Reverting a system or data to a previously stable state before an issue occurred.
In Simple Terms
Rollback is a mechanism that returns a system to the correct state it was in before an operation, when that operation runs into an error. For example, if an error occurs mid-transfer at a bank, the transaction is reset so that the account balance is restored to what it was — preventing any data corruption. Separately, when an app update introduces a bug, switching back to the previous stable version is also referred to as a rollback.
Behind the Name
The term "rollback" combines "roll" and "back" — literally the idea of rolling something backward to its starting point. In IT, this captures the action of canceling an operation that encountered an error and returning the system to the safe, known state it was in before.
Take a Closer Look!
Rollback is a process in IT systems and databases that reverts data to its last known-good state when something goes wrong.
When a computer performs a group of related operations as a single unit (a transaction), an error partway through can leave data in an inconsistent, partially updated state.
To prevent this, rollback cancels all operations in the unit and returns everything to the clean state it was in at the start.
For example, imagine an e-commerce site where one step reduces the inventory count and the next step records the order — but the second step fails. Without rollback, the inventory would show one fewer item with no corresponding order. With rollback, the inventory reduction is also undone, keeping the data consistent.
This mechanism makes online transactions and critical data updates safe and reliable.
It is an essential technique across programming and server administration for maintaining system integrity.