Skip to content
>devspeak
← glossary
level 2Bugs & Debugging

Rollback

also: roll back, rolled back, rolling back, rollbacks

Switching your live app back to the last version that worked, after a new deployment causes problems.

a bit more technical

Restoring a system to a previous known-good state, usually by redeploying the prior release. Code rollbacks are often quick. Database changes are harder, because data written since the release may not fit the old version.

picture it

A new store layout confuses every customer on opening day. That night, you put the shelves back where they were, then plan the redesign calmly.

why it matters

When a release breaks things for users, rolling back often stops the damage in minutes. Fixing forward under pressure can take hours and cause new bugs.

what your agent might say
agent
Error rates jumped right after the 3:10pm deploy. I recommend rolling back to the previous release first, then investigating the cause on staging.
how you might use it
you → your agent
Before we deploy this, tell me exactly how we'd roll back if it breaks, and whether the database change can be rolled back too.
common mistake

Assuming a rollback undoes everything. It restores the code, but data created or changed since the release usually stays, and may not fit the old code.