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: docs/netbox-enterprise/nbe-backups.md
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,31 @@ Save it somewhere safe for future restores.
128
128
129
129
For more details on backing up NetBox databases, see [the official NetBox documentation](https://netboxlabs.com/docs/netbox/en/stable/administration/replicating-netbox/).
130
130
131
+
#### Diode and Hydra Secrets (NetBox 1.10 and Up)
132
+
133
+
To ensure that Diode OAuth login information is not lost, you will also need to save the Diode and Hydra secrets from the cluster.
134
+
135
+
Run this set of commands:
136
+
137
+
```shell
138
+
NETBOX_NAMESPACE="kotsadm"&& \
139
+
kubectl get secrets \
140
+
--namespace "${NETBOX_NAMESPACE}" \
141
+
--no-headers \
142
+
--output name \
143
+
| grep secret/diode \
144
+
|whileread -r SECRET;do \
145
+
echo"---"&& \
146
+
kubectl apply view-last-applied \
147
+
"${SECRET}" \
148
+
--namespace "${NETBOX_NAMESPACE}" \
149
+
-o yaml; \
150
+
done \
151
+
> netbox-enterprise-diode-secrets.yaml
152
+
```
153
+
154
+
Save it alongside your `netbox-enterprise.pgsql` for future restores.
0 commit comments