1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/doc/postgres_upgrade.md

31 lines
1.6 KiB
Markdown
Raw Normal View History

2019-10-08 16:57:58 +02:00
# Instructions for upgrading PostgreSQL
## Automatic upgrade
2019-10-14 11:07:18 +02:00
Fab-manager release 4.2.0 has upgraded its dependency to PostgreSQL from version 9.4 to version 9.6 as the previous won't be maintained from february 2020.
2020-02-26 10:19:43 +01:00
To keep using Fab-manager you need to upgrade your installation with the new version.
2019-10-08 16:57:58 +02:00
We've wrote a script to automate the process while keeping your data integrity, but there's some requirements to understand before running it.
2019-10-09 11:02:43 +02:00
- You need to install *curl*, *GNU awk* and *sudo* on your system before running the script.
Usually, `apt update && apt install curl gawk sudo`, ran as root, will do the trick but this may change, depending upon your system.
- Your current user must be part of the *docker* and *sudo* groups.
Using the root user is a possible alternative, but not recommended.
2019-10-08 16:57:58 +02:00
- A bit of free disk space is also required to perform the data migration.
The amount needed depends on your current database size, the script will check it and tell you if there's not enough available space.
2019-10-14 11:05:22 +02:00
- This script should run on any Linux or MacOS systems if you installed PostgreSQL using docker-compose.
2019-10-08 16:57:58 +02:00
Otherwise, you must perform the upgrade yourself manually.
Once you've understood all the points above, you can run the migration script with the following:
```bash
cd /apps/fabmanager
# do not run as root, elevation will be prompted if needed
2019-10-09 11:57:55 +02:00
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/postgre-upgrade.sh | bash
2019-10-08 16:57:58 +02:00
```
## Manual upgrade
For instructions regarding a manual upgrade, please refer to the official documentation:
2019-10-09 09:52:58 +02:00
- https://www.postgresql.org/docs/9.6/upgrading.html