@@ -23,7 +23,7 @@ juju config s3-integrator endpoint=<s3 endpoint> bucket=<bucket name> path=<opti
23
23
juju run s3-integrator/leader sync-s3-credentials access-key=<access-key> secret-key=<secret-key>
24
24
```
25
25
26
- Integrate with Synapse with :
26
+ Integrate with Synapse using :
27
27
28
28
` juju integrate synapse:backup s3-integrator `
29
29
@@ -37,7 +37,7 @@ juju config synapse backup_passphrase=<secret passphase>
37
37
38
38
### Create the backup
39
39
40
- Create the backup with the next command :
40
+ Create the backup:
41
41
```
42
42
juju run synapse/leader create-backup
43
43
```
@@ -61,25 +61,28 @@ to also back up the cluster passwords. See:
61
61
- For [ postgresql-k8s] ( https://charmhub.io/postgresql-k8s/docs/h-migrate-cluster ) .
62
62
- For [ postgresql] ( https://charmhub.io/postgresql/docs/h-migrate-cluster ) .
63
63
64
+
64
65
## Restore
65
66
66
- The recommendation is to first restore PostgreSQL if necessary. Then deploying ,
67
- configuring and integrating Synapse with other charms as done in a normal deployment
68
- and finally restoring Synapse.
67
+ The recommendation is to first restore PostgreSQL if necessary. Then deploy ,
68
+ configure and integrate Synapse with other charms as done in a normal deployment.
69
+ Finally, restore Synapse.
69
70
70
71
The PostgreSQL and Synapse charm revisions should be the same ones as the ones used
71
72
for the backup. The configuration for Synapse before restoring the backup should also
72
73
match the configuration in the original application. This is specially important for
73
74
the configuration option ` server_name ` and any other configuration related to the filesystem.
74
75
76
+
75
77
### Restore PostgreSQL
76
78
79
+
77
80
If you use the PostgreSQL integration, follow the instructions given by PostgreSQL:
78
81
- For postgresql-k8s: [ local restore] ( https://charmhub.io/postgresql/docs/h-restore-backup ) , [ foreign backup] ( https://charmhub.io/postgresql/docs/h-migrate-cluster ) .
79
82
- for postgresql: [ local restore] ( https://charmhub.io/postgresql/docs/h-restore-backup ) , [ foreign backup] ( https://charmhub.io/postgresql/docs/h-migrate-cluster ) .
80
83
81
84
If you used the foreign backup, once the backup for PostgreSQL is restored, you should remove the S3 integration,
82
- as it was created in a different cluster, by running :
85
+ as it was created in a different cluster:
83
86
84
87
```
85
88
juju remove-relation s3-integrator postgresql
@@ -88,7 +91,7 @@ juju remove-relation s3-integrator postgresql
88
91
### Deploy Synapse
89
92
90
93
Synapse should be deployed, integrated with all necessary charms and configured. If necessary, Synapse should be integrated with the PostgreSQL charm that
91
- has already being restored.
94
+ has already been restored.
92
95
93
96
### Restore Synapse
94
97
0 commit comments