2 KiB
2 KiB
Backup Architecture details
- we use restic to produce small & encrypted backups
- backup is scheduled at
schedule: "10 23 * * *"
- Jira stores files on
/var/jira/export
, these files are backuped. By default jira produces two exports per day. - As jira provides a full xml export postgres is not needed.
Manual init the restic repository for the first time
- apply backup-and-restore pod:
kubectl apply -f src/main/resources/backup/backup-restore.yaml
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/init.sh
- remove backup-and-restore pod:
`kubectl delete pod backup-restore
Manual backup the restic repository for the first time
1.Create a jira export:
Jira > Settings > System -> Backup system
- Choose a filename
backup-filename.xml
. Your file will be stored to/var/backup/export
. - apply backup-and-restore pod:
kubectl apply -f src/main/resources/backup/backup-restore.yaml
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/backup.sh
- remove backup-and-restore pod:
kubectl delete pod backup-restore
Manual restore
- apply backup-and-restore pod:
kubectl apply -f src/main/resources/backup/backup-restore.yaml
- exec into pod and execute restore pod
kubectl exec -it backup-restore -- /usr/local/bin/restore.sh
- In case of already set up server:
- Import one of Jira exportet backups:
Jira > Settings > System > Restore System - Choose one of your bakcuped files located at
/var/jira/restic-restore/export/
.
E.g./var/jira/restic-restore/export/backup-filename.xml
.
- Import one of Jira exportet backups:
- In case of installation wizzard:
- Choose restore from backup
- Choose one of your bakcuped files located at
/var/jira/restic-restore/export/
.
E.g./var/jira/restic-restore/export/backup-filename.xml
- remove backup-and-restore pod:
kubectl delete pod backup-restore