You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c4k-nextcloud/doc/BackupAndRestore.md

1.7 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, 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

  1. apply backup-and-restore pod:
    kubectl apply -f src/main/resources/backup/backup-restore.yaml
  2. exec into pod and execute restore pod
    kubectl exec -it backup-restore -- /usr/local/bin/init.sh
  3. remove backup-and-restore pod:
    `kubectl delete pod backup-restore

Manual backup the restic repository for the first time

  1. Scale Jira deployment down:
    kubectl scale deployment jira --replicas=0
  2. apply backup-and-restore pod:
    kubectl apply -f src/main/resources/backup/backup-restore.yaml
  3. exec into pod and execute restore pod
    kubectl exec -it backup-restore -- /usr/local/bin/backup.sh
  4. remove backup-and-restore pod:
    kubectl delete pod backup-restore
  5. Scale Jira deployment up:
    kubectl scale deployment jira --replicas=1

Manual restore

  1. Scale Jira deployment down:
    kubectl scale deployment jira --replicas=0
  2. apply backup-and-restore pod:
    kubectl apply -f src/main/resources/backup/backup-restore.yaml
  3. exec into pod and execute restore pod
    kubectl exec -it backup-restore -- /usr/local/bin/restore.sh
  4. remove backup-and-restore pod:
    kubectl delete pod backup-restore
  5. Scale Jira deployment up:
    kubectl scale deployment jira --replicas=1
  6. Update index of Jira:
    Jira > Settings > System > Advanced > Indexing