由于文件中的小改动,补丁无法应用

patch can not apply to due to small changes in the file

我正在尝试通过 couchdb/local.ini 文件上的 diff/patch save/restore 我的 CouchDB 配置:

 [couchdb]
 ;max_document_size = 4294967296 ; bytes
 uuid = eb3e8ea0e717f24a61fb2be26daa1f55
+file_compression = snappy

 [httpd]
 ;port = 5984

唉,补丁无法应用它,因为 uuid 在每次重新安装时都会发生变化。解决此问题的最佳方法是什么?

或者如果您有更好的方法来处理 CouchDB 配置备份?

只有在没有人有好的答案时才使用我的解决方案,这不是最优雅的方法!

您可以编写自己的脚本,如果您希望将备份版本恢复到配置中,您可以运行。