You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/latest/deploy/backup/graphdb.md
+37-5Lines changed: 37 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,11 @@ Before you start, ensure you have the following:
22
22
{{% param pre_reqs %}}.
23
23
24
24
25
-
Before you start, confirm you are in the right context and namespace:
25
+
Before you start, you will need to do the following:
26
26
27
-
{{% param "k8s_cluster_ns" %}}
28
-
29
-
## Steps
27
+
1. Confirm you are in the right context and namespace:
30
28
31
-
To back up the database, follow these steps:
29
+
{{% param "k8s_cluster_ns" %}}
32
30
33
31
1. Check the logs for the alpha and zero pods, either in Lens or with [`kubectl logs`](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs).
34
32
Ensure there are no errors.
@@ -46,6 +44,36 @@ To back up the database, follow these steps:
46
44
47
45
For details, read the Kubernetes topic [Get Shell to a Running Container](https://kubernetes.io/docs/tasks/debug/debug-application/get-shell-running-container/).
48
46
47
+
## Steps
48
+
49
+
To back up the database, you will need to first trigger a backup, and then retrieve the backup using `kubectl`.
50
+
51
+
### Backup
52
+
53
+
To back up the database, you can use either of the following methods:
54
+
55
+
#### BAAS Console
56
+
57
+
This method will use BAAS's web console to trigger a backup.
58
+
59
+
1. Navigate to `<baas-url>/console` in your browser of choice.
60
+
61
+
1. Login to the BAAS Console with your Keycloak credentials.
62
+
63
+
1. Click "Backups" > "Local Export".
64
+
65
+
{{< callout type="info" >}}
66
+
Database backups support S3/Minio and includes an option to list backups in a specific destination. For this guide we will be performing a local backup.
67
+
{{< /callout >}}
68
+
69
+
1. Enter your designated backup location along with the backup name, or use the default provided.
70
+
71
+
1. Click "Start Export" and wait for the operation to finish. A dialogue should appear saying "Export Completed Successfully".
72
+
73
+
#### Alpha Pod Shell
74
+
75
+
This option will use the shell opened in the prerequisites to trigger a backup.
76
+
49
77
1. Make a POST request to your Keycloak `/token` endpoint to get an `access_token` value.
In each step replace `{{< param application_name >}}-baas-alpha-0` with `{{< param application_name >}}-baas-alpha-<REPLICA-NUMBER>`, where `<REPLICA-NUMBER>` is the current Alpha replica being restored.
0 commit comments