How do I backup the records that do not belong to any set?

The Aerospike Knowledge Base has moved to Content on is being migrated to either or Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via


I have a namespace that has 1 billion records. I have 5 sets that cumulatively hold 999 million records. How do I backup only the records that do not belong to any set without backing up the entire namespace?


Asbackup does not have an option to backup records that do not belong to a set (records in the null set) without backing up the entire namespace. Records in Aerospike database can be stored in a namespace. If the use-case requires to have operations to be done on a group of items in the namespace, you should specify them to be in a set.

Additionally, note that the entire namespace would need to be scanned even if the requirement is only for a specific set.


The workaround in such cases would be to implement a UDF/Client application to update such null-set records and assign them to a set in order to take advantage of the per-set asbackup --set option.



backup null set asbackup