docs: Reference PostgreSQL version in "Restoring backups" section.

This extends 8ede54fb1b, in the specific backups section, rather
than just in the overview.
This commit is contained in:
Alex Vandiver 2023-07-05 14:34:29 +00:00 committed by Tim Abbott
parent 9c675ce62d
commit e18d0e3331
1 changed files with 13 additions and 3 deletions

View File

@ -89,9 +89,16 @@ server's state on another machine perfectly.
### Restoring backups
First, [install a new Zulip server through Step 3][install-server]
with the same version of both the base OS and Zulip from your previous
installation. Then, run as root:
1. Install the same base OS as the backup was taken on. If you want to [upgrade
the OS][upgrade-os], you should do this after restoring the backup.
1. [Install a new Zulip server through Step 3][install-server], with the same
version of PostgreSQL that the backup was taken on, by passing the desired
version with [the `--postgresql-version` argument][installer-options]. If
you want to [upgrade the version of PostgreSQL][upgrade-pg], you should do this after
restoring the backup.
1. As root, import the backup:
```bash
/home/zulip/deployments/current/scripts/setup/restore-backup /path/to/backup
@ -99,6 +106,9 @@ installation. Then, run as root:
When that finishes, your Zulip server should be fully operational again.
[upgrade-os]: upgrade.md#upgrading-the-operating-system
[upgrade-pg]: upgrade.md#upgrading-postgresql
#### Changing the hostname
It's common, when testing backup restoration, to restore backups with a