如何备份Couch-base (NoSQL)中指定存储桶中的所有数据和索引?
发布于 2018-01-24 22:29:28
使用cbbackupmgr命令行工具。它备份和恢复存储区数据、视图创建脚本、索引创建脚本、存储区配置等
您可以在bin文件夹中找到此实用程序。例如,它在Linux上:
root@15ca2cdf844e:/opt/couchbase/bin# cbbackupmgr
cbbackupmgr [<command>] [<args>]
backup Backup a Couchbase cluster
compact Compact an incremental backup
config Create a new backup configuration
help Get extended help for a subcommand
list List the archive contents
merge Merge incremental backups together
remove Delete a backup permanently
restore Restore an incremental backup
Optional Flags:
--version Prints version information
-h,--help Prints the help message
root@15ca2cdf844e:/opt/couchbase/bin#您可以在Couchbase documentation中找到有关它的更多信息。
更新:如果您希望包含/排除特定的存储桶,则需要查看cbbackupmgr config。参见documentation on cbbackupmgr config。
https://stackoverflow.com/questions/48418449
复制相似问题