1.8 KiB
1.8 KiB
Backup Architecture details
- we use restic to produce small & encrypted backups
- backup is scheduled at
schedule: "10 23 * * *"
- 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
Manual init the restic repository for the first time
- Scale backup-restore deployment up:
kubectl scale deployment backup-restore --replicas=1
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/init.sh
- Scale backup-restore deployment down:
kubectl scale deployment backup-restore --replicas=0
Manual backup the restic repository for the first time
- Scale Cloud deployment down:
kubectl scale deployment cloud --replicas=0
- Scale backup-restore deployment up:
kubectl scale deployment backup-restore --replicas=1
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/backup.sh
- Scale backup-restore deployment down:
kubectl scale deployment backup-restore --replicas=0
- Scale Cloud deployment up:
kubectl scale deployment cloud --replicas=1
Manual restore
- Scale Cloud deployment down:
kubectl scale deployment cloud --replicas=0
- Scale backup-restore deployment up:
kubectl scale deployment backup-restore --replicas=1
- apply backup-and-restore pod:
kubectl apply -f src/main/resources/backup/backup-restore-deployment.yaml
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/restore.sh
- Scale backup-restore deployment down:
kubectl scale deployment backup-restore --replicas=0
- Scale Cloud deployment up:
kubectl scale deployment cloud --replicas=1