absctl quick start
Back up and restore an Aerospike namespace using absctl with Docker. This guide takes approximately 5 minutes.
Prerequisites
- Docker Desktop installed and running
- A running Aerospike Database cluster with data to back up
Back up a namespace
-
Create a local directory to store backup files.
Terminal window mkdir -p ./data -
Run
absctl backupto back up 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 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 ./data
Restore a namespace
-
Run
absctl restoreto restore the backup to the same namespace.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
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