NetBackup™ for Cassandra Administrator's Guide
Restore combinations
The following are supported restore combinations.
Table: Restore combination
Restore Combination. | Sample selection file | Sample rename file. |
---|---|---|
To restore all the key spaces and column families to the original cluster. | { "restoreSelections": {} } | { "overwrite": "true" } |
To restore all the key spaces and column families but rename one or more key spaces. Restore to the original cluster. | { "restoreSelections": {} } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_oldname", "newName": "ks_newname" }, "columnFamilies": [], "strategy": {} } ] } |
To restore all key spaces and column families and change the strategy and / or replication factor of one or more key spaces on the original cluster. | { "restoreSelections": {} } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_name" }, "columnFamilies": [ ], "strategy": { "name": "simpleStrategy", "replica": "5" } } ] } |
To restore all key spaces and column families to the original cluster and rename one or more key spaces along with change in the strategy or the replication factor. | { "restoreSelections": {} } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_name", "newName": "ks_newname" }, "columnFamilies": [], "strategy": { "name": "simpleStrategy", "replica": "9" } } ] } |
To restore one or more key spaces and all their column families to the original cluster. | { "restoreSelections": { "ks_name": [ ] } } | { "overwrite": "true" } |
To restore one or more key spaces and all their column families to the original cluster but with a different keyspace name. The selection should include all the key spaces that you want to rename. | { "restoreSelections": { "ks_name": [ ] } } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "old_ks_name", "newName": "new_ks_name" }, "columnFamilies": [], "strategy": {} } ] } |
To restore one or more key spaces and all their column families to the original cluster. Also, change the strategy of all these key spaces or specify a different replication factor. The selection should include all the key spaces that you want to rename. | { "restoreSelections": { "ks_name": [ ] } } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_oldname" }, "columnFamilies": [ ], "strategy": { "name": "simpleStrategy", "replica": "9" } } ] } |
To restore one or more key spaces and all their column families to the original cluster but with a different keyspace name. Also change the strategy of all these key spaces or specify a different replication factor. The selection should include all the key spaces that you want to rename. | { "restoreSelections": { "ks_name": [ ] } } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_oldname", "newName": "ks_newname" }, "columnFamilies": [], "strategy": { "name": "simpleStrategy", "replica": "9" } } ] } |
To restore one or more key spaces and specific column families in each of these key spaces to the original cluster. | { "restoreSelections": { "ks_name": [ "cf_name" ] } } | { "overwrite": "true" } |
To restore one or more key spaces and specific column families in each of these key spaces to its original cluster but with a different column family name for each of the column families which are restored. Each column family being renamed should be specified in the selection. The strategy or the replication factor cannot be changed when restoring specific column families. | { "restoreSelections": { "ks_name": [ "cf_name" ] } } | { "overwrite": "true", "alternateRecoveryOptions": [ { "keyspace": { "name": "ks_name" }, "columnFamilies": [ { "name": "cf_name", "newName": "cf_newname" } ], "strategy": {} } ] } |
Note: Whenever NetBackup restores a keyspace, it restores with durable writes set to true. If you want to change this attribute, you can change it in Cassandra, after the restore is complete. |