Backup and restore a database
- Last Updated: July 13, 2026
- 1 minute read
- MarkLogic Server
- Documentation
When backing up MarkLogic to the file system, a dedicated volume should be allocated for each MarkLogic host. This can be done by adding additionalVolumes in the sample.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 sample.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.