Backup and restore a database
- Last Updated: September 4, 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"
After you update values.yaml, you can use /space as the backup directory to back up and restore a database by using the procedures described in the MarkLogic documentation.