0.2.0 includes migrations 0027 through 0033. Once that release
updates a data volume, an older image whose migration set ends before 0033
will refuse to start on it.
Before you update
- Read the release notes and migration impact for the new version.
- Record the current image version and source commit from
/healthz. - Create and verify a cold backup.
- Keep the old image tag and the protected environment file available.
Update the container
1
Pull the new image
2
Stop and remove the old container
3
Start the new image on the same volume
4
Verify the result
Roll back
Rolling back restores data from before the update. The restored volume will not contain writes made after that backup.1
Stop the new container
2
Restore into a fresh volume
Follow Restore a cold
backup.
Do not unpack the archive over the migrated volume.
3
Start the old image
Mount the
$RESTORE_VOLUME created by the restore steps and use the exact
release tag tied to the backup. This example rolls back to 0.2.0. Keep the
command in the same shell.4
Verify the rollback
Check
/healthz, sign in, open known documents and versions, and make a
new edit. Keep the migrated volume until you have confirmed the restore.