Compare commits
No commits in common. "feature/todo" and "main" have entirely different histories.
feature/to
...
main
2 changed files with 42 additions and 1 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
## Forgejo Backup (TODO)
|
## Forgejo Backup (TODO)
|
||||||
- [ ] Forgejo postgres backup via databasus same bucket but key would be postgres
|
- [ ] Forgejo postgres backup via databasus same bucket but key would be postgres
|
||||||
|
- [ ] Test restore from restic snapshot up
|
||||||
|
|
||||||
|
|
||||||
## Set up runners
|
## Set up runners
|
||||||
|
|
||||||
## set up docker image registry
|
## set up docker image registry
|
||||||
|
|
||||||
## Migrate everything else one at a time based on what i use
|
## Migrate everything
|
||||||
|
|
||||||
|
|
||||||
# Migrate hyprland
|
# Migrate hyprland
|
||||||
|
|
|
||||||
39
databasus/TODO.md
Normal file
39
databasus/TODO.md
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# TODO
|
||||||
|
|
||||||
|
## Databasus — Migrate to Ceph + AWS Backups
|
||||||
|
|
||||||
|
> Files: `databasus/`
|
||||||
|
|
||||||
|
### Step 3 — Migrate PVC data (local → ceph)
|
||||||
|
```bash
|
||||||
|
# Scale down the app
|
||||||
|
kubectl scale deployment databasus --replicas=0
|
||||||
|
|
||||||
|
# Create new ceph PVC
|
||||||
|
kubectl apply -f databasus/databasus-storage.yaml
|
||||||
|
|
||||||
|
# Run migration job (copies /databasus-data from local PV → ceph PVC)
|
||||||
|
kubectl apply -f databasus/databasus-migration-job.yaml
|
||||||
|
kubectl wait --for=condition=complete job/databasus-migration --timeout=120s
|
||||||
|
|
||||||
|
# Verify data was copied
|
||||||
|
kubectl logs job/databasus-migration
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 4 — Deploy updated app
|
||||||
|
```bash
|
||||||
|
kubectl apply -f databasus/databasus-backup-secret.yaml
|
||||||
|
kubectl apply -f databasus/databasus.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 5 — Cleanup old local resources
|
||||||
|
```bash
|
||||||
|
kubectl delete pvc databasus-pvc-local
|
||||||
|
kubectl delete pv databasus-pv
|
||||||
|
kubectl delete job databasus-migration
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 6 — Verify
|
||||||
|
- Check app is running: `kubectl get pods -l app=databasus`
|
||||||
|
- Check backup sidecar logs: `kubectl logs -l app=databasus -c backup`
|
||||||
|
- Visit https://databasus.juntekim.com
|
||||||
Loading…
Add table
Reference in a new issue