FAQ - Can you restore a backup from a single bin namespace into a multiple bin namespace?
If a namespace has been configured as
single-bin true is it possible to change this into a multiple bin namespace by taking a backup of the data using asbackup and restoring into a namespace where the setting is
It is not possible to restore a backup taken from a
single-bin namespace directly into a multiple bin namespace. As bin names are redundant in a
single-bin namespace they are not stored, even if sent by the client. As such, a restore into a multiple-bin namespace will fail as there are no bin names for the records in the backup file.
There are two options when there is a business driver to migrate data from a
single-bin namespace to a multiple-bin namespace.
Option 1 is to use a custom application that reads the data from the
single-bin namespace, appends bin names and then writes this data into a multiple bin namespace.
Option 2 would be to take a backup of the single-bin namespace using
asbackup and then use text editing tools to append bin names before restoring the data. Files created using
asbackup are human readable.
Assistance in performing this migration can be provided by Aerospike as part of a Client Services engagement if required.
Single-bin restore migrate data