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

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. 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 https://support.aerospike.com.

Question

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?

Answer

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.

Workaround

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.

Notes

Keywords

backup null set asbackup

Timestamp

10/05/2017