[skip ci] update to 8.0.3; backup&restore cmd's use bb now

This commit is contained in:
Mirco 2024-09-20 12:12:28 +02:00
parent 85107e23ad
commit ad5fbfd173
2 changed files with 13 additions and 13 deletions

View file

@ -10,32 +10,32 @@
## Manual init the restic repository for the first time ## Manual init the restic repository for the first time
1. apply backup-and-restore pod: 1. apply backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=1` `kubectl -n forgejo scale deployment backup-restore --replicas=1`
2. exec into pod and execute restore pod (press tab to get your exact pod name) 2. exec into pod and execute restore pod (press tab to get your exact pod name)
`kubectl exec -it backup-restore-... -- /usr/local/bin/init.sh` `kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/init.bb`
3. remove backup-and-restore pod: 3. remove backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=0` `kubectl -n forgejo scale deployment backup-restore --replicas=0`
## Manual backup the restic repository for the first time ## Manual backup the restic repository for the first time
1. apply backup-and-restore pod: 1. apply backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=1` `kubectl -n forgejo scale deployment backup-restore --replicas=1`
2. exec into pod and execute backup pod (press tab to get your exact pod name) 2. exec into pod and execute backup pod (press tab to get your exact pod name)
`kubectl exec -it backup-restore-... -- /usr/local/bin/backup.sh` `kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/backup.bb`
3. remove backup-and-restore pod: 3. remove backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=0` `kubectl -n forgejo scale deployment backup-restore --replicas=0`
## Manual restore ## Manual restore
1. apply backup-and-restore pod: 1. apply backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=1` `kubectl -n forgejo scale deployment backup-restore --replicas=1`
2. Scale down forgejo deployment: 2. Scale down forgejo deployment:
`kubectl scale deployment forgejo --replicas=0` `kubectl -n forgejo scale deployment forgejo --replicas=0`
3. exec into pod and execute restore pod (press tab to get your exact pod name) 3. exec into pod and execute restore pod (press tab to get your exact pod name)
`kubectl exec -it backup-restore-... -- /usr/local/bin/restore.sh` `kubectl -n forgejo exec -it backup-restore-... -- /usr/local/bin/restore.bb`
4. Start forgejo again: 4. Start forgejo again:
`kubectl scale deployment forgejo --replicas=1` `kubectl -n forgejo scale deployment forgejo --replicas=1`
5. remove backup-and-restore pod: 5. remove backup-and-restore pod:
`kubectl scale deployment backup-restore --replicas=0` `kubectl -n forgejo scale deployment backup-restore --replicas=0`

View file

@ -69,11 +69,11 @@
(defn data-storage-by-volume-size (defn data-storage-by-volume-size
[total] [total]
total) total)
;;TODO: remove unneccessaries, fedaration is merged
(def federated-image-name "domaindrivenarchitecture/c4k-forgejo-federated") (def federated-image-name "domaindrivenarchitecture/c4k-forgejo-federated")
(def federated-image-version "latest") (def federated-image-version "latest")
(def non-federated-image-name "codeberg.org/forgejo/forgejo") (def non-federated-image-name "codeberg.org/forgejo/forgejo")
(def non-federated-image-version "8.0") (def non-federated-image-version "8.0.3")
(defn-spec generate-image-str string? (defn-spec generate-image-str string?
[config config?] [config config?]