Aerospike Backup Control quickstart
This quickstart guides you through an end-to-end workflow using absctl (the Aerospike Backup Control CLI) to back up and restore a namespace using Docker. In approximately 5 minutes, you will practice a minimal setup by backing up data to local files and restoring them to your cluster.
Completing this exercise helps you master the basic command flow before you move on to advanced configurations like:
- cloud storage: Streaming directly to S3, GCS, or Azure.
- security: Implementing encryption and filtering.
- automation: Using YAML-based configurations.
What you will do
- Run
absctlfrom a Docker container. - Mount a local directory into the container to store backup files.
- Back up the
testnamespace into Aerospike backup (.asb) files. - Restore that backup from the same directory.
Prerequisites
- Docker Desktop installed and running
- A running Aerospike Database cluster with data in the
testnamespace
Back up a namespace
-
Create a local directory to store the backup files that
absctlwrites.Terminal window mkdir -p ./data -
Run
absctl backupto back up thetestnamespace.The following command starts the
absctlcontainer, mounts your local./datadirectory into the container, and then runs the backup command inside the container.Terminal window docker run -it --rm \-v ./data:/data/backup \aerospike.jfrog.io/ecosystem-container-preview-public-local/absctl:v1.0.0-1 \absctl backup -h host.docker.internal:3000 -n test -d /data/backup-v ./data:/data/backup: Mounts your./datadirectory to the/data/backupdirectory in the Docker container.-h host.docker.internal:3000: Connects to Aerospike running on your host machine.-n test: Specifies the namespace to back up.-d /data/backup: Writes backup files to the mounted directory.
-
Verify the backup completed successfully.
You should see a backup report similar to:
Backup report-------------Start Time: Mon, 03 Feb 2026 10:30:00 UTCDuration: 1.234sRecords Read: 100sIndex Read: 0UDFs Read: 0Bytes Written: 12345Files Written: 1Check that
.asbfiles exist in your local./datadirectory:Terminal window ls ./dataYou should see one or more
.asbfiles in the directory.
Restore a namespace
-
Run
absctl restoreto restore the backup to the same namespace.This command reads the backup files from the mounted
./datadirectory and writes the records back into thetestnamespace.Terminal window docker run -it --rm \-v ./data:/data/backup \aerospike.jfrog.io/ecosystem-container-preview-public-local/absctl:v1.0.0-1 \absctl restore -h host.docker.internal:3000 -n test -d /data/backup -
Verify the restore completed successfully.
You should see a restore report similar to:
Restore report--------------Start Time: Mon, 03 Feb 2026 10:35:00 UTCDuration: 2.345sRecords Read: 100sIndex Read: 0UDFs Read: 0Expired Records: 0Skipped Records: 0Ignored Records: 0Fresher Records: 0Existed Records: 0Inserted Records: 100In Doubt Errors: 0
This example restores back into the same namespace for simplicity. In a larger workflow, you can also restore to a different namespace or validate backup files before restoring them.
What’s next
- See absctl backup for the full backup command reference
- See absctl restore for the full restore command reference
- See Back up to cloud storage to store backups in AWS S3, GCP, or Azure
- Read the absctl installation page for other installation methods