How do you view an Application's sync history and roll back to a prior revision?
Short answer
Use `argocd app history ` to list previously synced revisions with IDs, and `argocd app rollback ` to sync back to one. The durable GitOps approach is reverting in Git, but history rollback is useful for quick recovery to a known-good synced state.
Advertisement
AModel answer
Use `argocd app history <app>` to list previously synced revisions with IDs, and `argocd app rollback <app> <id>` to sync back to one. The durable GitOps approach is reverting in Git, but history rollback is useful for quick recovery to a known-good synced state.
Example
argocd app history web argocd app rollback web 12
Real-world example
After a bad sync, the operator rolls back to history id 12 to restore service, then reverts in Git.
Likely follow-ups
- Where is history stored? | Why also revert in Git after a rollback?
Related topics