downgrade nc to 19
This commit is contained in:
parent
28de47db4d
commit
9f2977133a
2 changed files with 20 additions and 17 deletions
|
@ -4,44 +4,47 @@
|
||||||
|
|
||||||
* we use restic to produce small & encrypted backups
|
* we use restic to produce small & encrypted backups
|
||||||
* backup is scheduled at `schedule: "10 23 * * *"`
|
* backup is scheduled at `schedule: "10 23 * * *"`
|
||||||
* Jira stores files on `/var/jira`, these files are backuped. If you create a jira xml backup located in /var/jira this file will also be backed up.
|
* Cloud stores files on `/var/jira`, these files are backuped. If you create a jira xml backup located in /var/jira this file will also be backed up.
|
||||||
* postgres db is backed up as pgdump
|
* postgres db is backed up as pgdump
|
||||||
|
|
||||||
## 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 apply -f src/main/resources/backup/backup-restore.yaml`
|
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml`
|
||||||
|
1. Scale backup-restore deployment up:
|
||||||
|
`kubectl scale deployment backup-restore --replicas=1`
|
||||||
1. exec into pod and execute restore pod
|
1. exec into pod and execute restore pod
|
||||||
`kubectl exec -it backup-restore -- /usr/local/bin/init.sh`
|
`kubectl exec -it backup-restore -- /usr/local/bin/init.sh`
|
||||||
1. remove backup-and-restore pod:
|
1. Scale backup-restore deployment down:
|
||||||
`kubectl delete pod backup-restore
|
`kubectl 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. Scale Jira deployment down:
|
1. Scale Cloud deployment down:
|
||||||
`kubectl scale deployment jira --replicas=0`
|
`kubectl scale deployment cloud --replicas=0`
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl apply -f src/main/resources/backup/backup-restore.yaml`
|
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml`
|
||||||
1. exec into pod and execute restore pod
|
1. exec into pod and execute restore pod
|
||||||
`kubectl exec -it backup-restore -- /usr/local/bin/backup.sh`
|
`kubectl exec -it backup-restore -- /usr/local/bin/backup.sh`
|
||||||
1. remove backup-and-restore pod:
|
1. remove backup-and-restore pod:
|
||||||
`kubectl delete pod backup-restore`
|
`kubectl delete pod backup-restore`
|
||||||
1. Scale Jira deployment up:
|
1. Scale Cloud deployment up:
|
||||||
`kubectl scale deployment jira --replicas=1`
|
`kubectl scale deployment cloud --replicas=1`
|
||||||
|
|
||||||
|
|
||||||
## Manual restore
|
## Manual restore
|
||||||
|
|
||||||
1. Scale Jira deployment down:
|
1. Scale Cloud deployment down:
|
||||||
`kubectl scale deployment jira --replicas=0`
|
`kubectl scale deployment cloud --replicas=0`
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl apply -f src/main/resources/backup/backup-restore.yaml`
|
`kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml`
|
||||||
1. exec into pod and execute restore pod
|
1. exec into pod and execute restore pod
|
||||||
`kubectl exec -it backup-restore -- /usr/local/bin/restore.sh`
|
`kubectl exec -it backup-restore -- /usr/local/bin/restore.sh`
|
||||||
1. remove backup-and-restore pod:
|
1. remove backup-and-restore pod:
|
||||||
`kubectl delete pod backup-restore`
|
`kubectl delete pod backup-restore`
|
||||||
1. Scale Jira deployment up:
|
1. Scale Cloud deployment up:
|
||||||
`kubectl scale deployment jira --replicas=1`
|
`kubectl scale deployment cloud --replicas=1`
|
||||||
1. Update index of Jira:
|
1. Update index of Cloud:
|
||||||
Jira > Settings > System > Advanced > Indexing
|
Cloud > Settings > System > Advanced > Indexing
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM nextcloud:22
|
FROM nextcloud:19
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
|
|
Loading…
Reference in a new issue