Backup and restore a database
When backing up MarkLogic to the file system, a dedicated volume should be allocated for each MarkLogic host. This can be done by adding "additional volumes" in the values.yaml
file:
## Specify additional list of persistent volume claims additionalVolumeClaimTemplates: - metadata: name: "backup-dir" spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ## specify additional list of volumes additionalVolumes: - name: "backup-dir" emptyDir: {} ## specify additional list of volumeMounts additionalVolumeMounts: - name: "backup-dir" mountPath: "/space"
Once the values.yaml
file is modified, /space
can be used as the backup directory for backing up and restoring a database using the procedures described in the MarkLogic documentation.