aerospike恢复
所属分类 aerospike
浏览量 1335
https://www.aerospike.com/docs/tools/backup/asrestore.html
The asrestore utility restores backups created with asbackup.
写入备份数据的 写入策略
If the initial insertion of a record fails asrestore will retry inserting the record 10 times.
Between tries there is a 1 second pause and the error is written to the logs at the debug severity level.
If a record is not written after 10 tries, the restore is aborted with the error message "Too many errors, giving up".
如果一条记录的初始插入失败,asrestore将重试插入该记录10次。在尝试之间有1秒的暂停,错误将被写入调试严重级别的日志。
如果一条记录在10次尝试后没有被写入,那么恢复将被终止,并带有错误消息“错误太多,放弃”。
以下错误不影响重试
record exists (使用 unique 选项)
generation mismatch (使用 no-generation 选项)
invalid username or password
asrestore --usage
asrestore --host 1.2.3.4 --directory backup_2015_08_24
备份和恢复的 namespace 可以不一样
asrestore --host 1.2.3.4 --directory backup_2015_08_24 --namespace test,prod
--namespace $original-ns,$new-ns
-s set1,set2...
-B bin1,bin2...
Write Policy Options
-u or --unique
Existing records take precedence.
With this option, only records that do not exist in the namespace are restored, regardless of generation numbers.
If a record exists in the namespace, the record from the backup is ignored.
现有记录优先。使用此选项,只恢复名称空间中不存在的记录,而不考虑更新次数。如果名称空间中存在一条记录,则忽略来自备份的记录。
-g or --no-generation
Records from backups take precedence.
This option disables the generation check.
With this option, records from the backup always overwrite records that already exist in the namespace, regardless of generation numbers.
By using this option you may lose a more recent version of your data by overwriting it with an older version.
备份中的记录优先。
此选项禁用更次次数检查。
使用此选项,来自备份的记录总是覆盖名称空间中已经存在的记录,而不考虑记录更新次数。
使用此选项,可能会因为使用旧版本覆盖而丢失最新版本的数据。
-r or --replace
Replace records. This controls how records from the backup overwrite existing records in the namespace.
By default, restoring a record from a backup only replaces the bins contained in the backup;
all other bins of an existing record remain untouched.
With this option, the existing record is completely replaced; i.e., any bins that that are not contained in the backup are discarded.
替换记录。这控制来自备份的记录如何覆盖名称空间中的现有记录。
默认情况下,从备份中恢复记录只会替换备份中包含的列;现有记录的所有其他列保持不变。
使用此选项,将完全替换现有记录;会丢弃备份中不包含的列。
-v or --verbose disabled
Output considerably more information about the running restore.
-L or --indexes-last
Create indexes after restoring everything else.
By default, indexes are restored before everything else, which can prevent costly SSD reads required to build the indexes.
在还原所有其他内容之后创建索引。
默认情况下,索引首先被恢复,这可以防止构建索引所需的昂贵SSD读取。
-w or --wait
Wait for secondary indexes to finish building before proceeding.
Wait for restored UDFs to be distributed across the cluster.
在继续之前,等待次级索引完成构建。等待恢复的udf在集群中分发。
上一篇
下一篇
做局与破局
aerospike备份与恢复概述
aerospike备份
客户的游艇在哪里摘录
MySQL5.7.26用户管理
mysql5.7.26安装