Backing up and restoring access keys (tenant data)

Access keys can be backed up and restored by using the asnodeadmin tool. Only primary access keys can be directly backed up, not subaccess keys, but backing up a primary access key backs up all associated subaccess keys, too.

Access keys are not backed up when you back up the Node API user database (Backing up and restoring the node user database records), but they are if you back up the entire Redis database (Backing up and restoring a node database).

Back up access keys

Run the following command for each access key:

> asnodeadmin --access-key access_key_id --access-key-backup filename

Where filename is the AOF file to which the access key data is saved.

Restore access keys

Run the following command:

> asnodeadmin [-u username] --access-key access_key_id --access-key-restore filename
Use the -u username option to change the Node API user (and system user) associated with the restored access key.