Description
Currently, ini.log logs the contents of INI files but not backup files. (Also need to check whether we log contents of runtime.ini used on Windows.)
sh -c for i in "$@"; do echo "file: $i"; cat "$i"; done – /opt/couchbase/etc/couchdb/default.ini /opt/couchbase/etc/couchdb/default.d/capi.ini /opt/couchbase/etc/couchdb/default.d/geocouch.ini /opt/couchbase/etc/couchdb/local.ini
cbupgrade attempts to read the contents of .rpmsave and .debsave files too:
https://github.com/couchbase/voltron/blob/4d5f652b80ba24c12e406e0e21e2b21dcf6be541/cbupgrade/cbupgrade#L310-L320
There is also cbupgrade, which is owned by the Tools team. That is run by the RPM after doing all filesystem modifications such as the above steps. It appears that it attempts to find things like local.ini.rpmsave and copy them back to the right location if they exist.
See CBSE-16807 and CBSE-16932.
We should save the contents of these .rpmsave files too when available (ip.rpmsave, ip_start.rpmsave, dist_cfg.rpmsave, config.dat.rpmsave, local.ini.rpmsave).