Backup and restore a database
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Documentation
When backing up MarkLogic to the file system, allocate a dedicated volume for each MarkLogic host. To do this, add additionalVolumes 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.