The backports version seem to be fully compatible with PostgreSQL 13.
##### Apache configuration
###### Apache configuration
1. if you use [PHP-FPM](https://www.php.net/manual/en/install.fpm.php)
you can use this snippet in a `VirtualHost` directive:
@ -218,7 +218,7 @@ The backports version seem to be fully compatible with PostgreSQL 13.
4. connect to `http://my.host/dbadmin`
#### 4. set the packages on hold
##### 4. set the packages on hold
Set these packages on hold so when you update the system they don't get
updated by accident.
@ -238,7 +238,7 @@ postgresql-client-common
postgresql-common
```
#### 5. restore issues and comments
##### 5. restore issues and comments
1. open the original database with adminer
1. get the repository id. Use the `repository` table to get it. Let's say it's `38`
@ -261,7 +261,7 @@ postgresql-common
{% include image.html file="adminer_gitea_comment_table_2.png" alt="Gitea comment table for issue 2 on Adminer" caption="Gitea comment table for issue 2 on Adminer" %}
#### 6. restore mirrors from bare repositories
##### 6. restore mirrors from bare repositories
1. once you have the repositories go into the `repositories` table
2. select the to-be mirrors repositories and set the `is_mirror` variable to `true`
@ -271,12 +271,12 @@ postgresql-common
{% include image.html file="adminer_gitea_mirror_table.png" alt="An example row of the mirror table" caption="An example row of the mirror table" %}
#### 7. restore users
##### 7. restore users
To restore users simply create new users using Gitea's admin interface and then copy-paste the data
in the rows.
#### 8. Database backups
##### 8. Database backups
I now use 15 minute separated backups using borgmatic. See also