Since CockroachDB considers the cluster version when running a backup, this page refers to versions in a “v22.2.x” format. For example, both v22.2.8 and v22.2.14 are considered as v22.2 clusters for backup purposes.
Support for restoring backups into a newer version
Cockroach Labs supports restoring a backup taken on a cluster on a specific major version into a cluster that is on the same version or the next major version. Therefore, when upgrading your cluster from version N to N+1, if you took a backup on major version N, you can restore it to your cluster on either major version N or N+1. Restoring backups outside major version N or N+1 is not supported. For example, backups taken on v22.1.x can be restored into v22.2.x. Backups taken on v22.2.x can be restored into v23.1.x. The following table outlines this support:| Backup taken on version | Restorable into version |
|---|---|
| 21.1.x | 21.1.x, 21.2.x |
| 21.2.x | 21.2.x, 22.1.x |
| 22.1.x | 22.1.x, 22.2.x |
| 22.2.x | 22.2.x, 23.1.x |
Cockroach Labs does not support restoring backups from a higher version into a lower version.

